Class RenderableDomainArchitecture
- java.lang.Object
-
- org.forester.phylogeny.data.DomainArchitecture
-
- org.forester.archaeopteryx.phylogeny.data.RenderableDomainArchitecture
-
- All Implemented Interfaces:
RenderablePhylogenyData,PhylogenyData
public final class RenderableDomainArchitecture extends DomainArchitecture implements RenderablePhylogenyData
-
-
Field Summary
-
Fields inherited from class org.forester.phylogeny.data.DomainArchitecture
NHX_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description RenderableDomainArchitecture(DomainArchitecture domain_structure)RenderableDomainArchitecture(DomainArchitecture domain_structure, java.lang.String node_name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBufferasSimpleText()java.lang.StringBufferasText()PhylogenyDatacopy()Creates a new PhylogenyData object with identical values as this PhylogenyData.ProteinDomaingetDomain(int i)java.util.SortedMap<java.math.BigDecimal,ProteinDomain>getDomains()intgetNumberOfDomains()java.awt.DimensiongetOriginalSize()java.lang.ObjectgetParameter()floatgetRenderingFactorWidth()java.awt.DimensiongetRenderingSize()intgetTotalLength()booleanisEqual(PhylogenyData data)Returns true if the names and the order of the domains match (domain and linker lengths are ignored).voidrender(float x1, float y1, java.awt.Graphics2D g, TreePanel tree_panel, boolean to_pdf)This can be used to render phylogeny data as graphics (for example, display of the domain structure).static voidsetColorMap(java.util.Map<java.lang.String,java.awt.Color> domain_colors)voidsetParameter(double e_value_threshold_exp)voidsetRenderingFactorWidth(float rendering_factor_width)voidsetRenderingHeight(float rendering_height)java.lang.StringBuffertoNHX()voidtoPhyloXML(java.io.Writer writer, int level, java.lang.String indentation)Writes a phyloXML representation of this phylogeny data.-
Methods inherited from class org.forester.phylogeny.data.DomainArchitecture
addDomain, setTotalLength, toString
-
-
-
-
Constructor Detail
-
RenderableDomainArchitecture
public RenderableDomainArchitecture(DomainArchitecture domain_structure)
-
RenderableDomainArchitecture
public RenderableDomainArchitecture(DomainArchitecture domain_structure, java.lang.String node_name)
-
-
Method Detail
-
setColorMap
public static void setColorMap(java.util.Map<java.lang.String,java.awt.Color> domain_colors)
-
asSimpleText
public java.lang.StringBuffer asSimpleText()
- Specified by:
asSimpleTextin interfacePhylogenyData- Overrides:
asSimpleTextin classDomainArchitecture
-
asText
public java.lang.StringBuffer asText()
- Specified by:
asTextin interfacePhylogenyData- Overrides:
asTextin classDomainArchitecture
-
copy
public PhylogenyData copy()
Description copied from interface:PhylogenyDataCreates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
copyin interfacePhylogenyData- Overrides:
copyin classDomainArchitecture- Returns:
- a ~deep~ copy of this PhylogenyData
-
getDomain
public ProteinDomain getDomain(int i)
- Overrides:
getDomainin classDomainArchitecture
-
getDomains
public java.util.SortedMap<java.math.BigDecimal,ProteinDomain> getDomains()
- Overrides:
getDomainsin classDomainArchitecture
-
getNumberOfDomains
public int getNumberOfDomains()
- Overrides:
getNumberOfDomainsin classDomainArchitecture
-
getOriginalSize
public java.awt.Dimension getOriginalSize()
- Specified by:
getOriginalSizein interfaceRenderablePhylogenyData
-
getParameter
public java.lang.Object getParameter()
- Specified by:
getParameterin interfaceRenderablePhylogenyData
-
getRenderingFactorWidth
public float getRenderingFactorWidth()
-
getRenderingSize
public java.awt.Dimension getRenderingSize()
- Specified by:
getRenderingSizein interfaceRenderablePhylogenyData
-
getTotalLength
public int getTotalLength()
- Overrides:
getTotalLengthin classDomainArchitecture
-
isEqual
public boolean isEqual(PhylogenyData data)
Description copied from class:DomainArchitectureReturns true if the names and the order of the domains match (domain and linker lengths are ignored).- Specified by:
isEqualin interfacePhylogenyData- Overrides:
isEqualin classDomainArchitecture- Returns:
- in general, true if and only if all fiels are exactly identical, false otherwise
-
render
public void render(float x1, float y1, java.awt.Graphics2D g, TreePanel tree_panel, boolean to_pdf)Description copied from interface:RenderablePhylogenyDataThis can be used to render phylogeny data as graphics (for example, display of the domain structure). In most Renderable implementations this will do nothing (i.e. just return).- Specified by:
renderin interfaceRenderablePhylogenyDatag- the Graphics to render to
-
setParameter
public void setParameter(double e_value_threshold_exp)
- Specified by:
setParameterin interfaceRenderablePhylogenyData
-
setRenderingFactorWidth
public void setRenderingFactorWidth(float rendering_factor_width)
-
setRenderingHeight
public void setRenderingHeight(float rendering_height)
- Specified by:
setRenderingHeightin interfaceRenderablePhylogenyData
-
toNHX
public java.lang.StringBuffer toNHX()
- Specified by:
toNHXin interfacePhylogenyData- Overrides:
toNHXin classDomainArchitecture
-
toPhyloXML
public void toPhyloXML(java.io.Writer writer, int level, java.lang.String indentation) throws java.io.IOExceptionDescription copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXMLin interfacePhylogenyData- Overrides:
toPhyloXMLin classDomainArchitecture- Throws:
java.io.IOException
-
-