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
ConstructorDescriptionRenderableDomainArchitecture
(DomainArchitecture domain_structure) RenderableDomainArchitecture
(DomainArchitecture domain_structure, String node_name) -
Method Summary
Modifier and TypeMethodDescriptionasText()
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.getDomain
(int i) int
float
int
boolean
isEqual
(PhylogenyData data) Returns true if the names and the order of the domains match (domain and linker lengths are ignored).void
render
(float x1, float y1, 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 void
setColorMap
(Map<String, Color> domain_colors) void
setParameter
(double e_value_threshold_exp) void
setRenderingFactorWidth
(float rendering_factor_width) void
setRenderingHeight
(float rendering_height) toNHX()
void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.Methods inherited from class org.forester.phylogeny.data.DomainArchitecture
addDomain, setTotalLength, toString
-
Constructor Details
-
RenderableDomainArchitecture
-
RenderableDomainArchitecture
-
-
Method Details
-
setColorMap
-
asSimpleText
- Specified by:
asSimpleText
in interfacePhylogenyData
- Overrides:
asSimpleText
in classDomainArchitecture
-
asText
- Specified by:
asText
in interfacePhylogenyData
- Overrides:
asText
in classDomainArchitecture
-
copy
Description copied from interface:PhylogenyData
Creates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
copy
in interfacePhylogenyData
- Overrides:
copy
in classDomainArchitecture
- Returns:
- a ~deep~ copy of this PhylogenyData
-
getDomain
- Overrides:
getDomain
in classDomainArchitecture
-
getDomains
- Overrides:
getDomains
in classDomainArchitecture
-
getNumberOfDomains
public int getNumberOfDomains()- Overrides:
getNumberOfDomains
in classDomainArchitecture
-
getOriginalSize
- Specified by:
getOriginalSize
in interfaceRenderablePhylogenyData
-
getParameter
- Specified by:
getParameter
in interfaceRenderablePhylogenyData
-
getRenderingFactorWidth
public float getRenderingFactorWidth() -
getRenderingSize
- Specified by:
getRenderingSize
in interfaceRenderablePhylogenyData
-
getTotalLength
public int getTotalLength()- Overrides:
getTotalLength
in classDomainArchitecture
-
isEqual
Description copied from class:DomainArchitecture
Returns true if the names and the order of the domains match (domain and linker lengths are ignored).- Specified by:
isEqual
in interfacePhylogenyData
- Overrides:
isEqual
in classDomainArchitecture
- Returns:
- in general, true if and only if all fiels are exactly identical, false otherwise
-
render
Description copied from interface:RenderablePhylogenyData
This 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:
render
in interfaceRenderablePhylogenyData
g
- the Graphics to render to
-
setParameter
public void setParameter(double e_value_threshold_exp) - Specified by:
setParameter
in interfaceRenderablePhylogenyData
-
setRenderingFactorWidth
public void setRenderingFactorWidth(float rendering_factor_width) -
setRenderingHeight
public void setRenderingHeight(float rendering_height) - Specified by:
setRenderingHeight
in interfaceRenderablePhylogenyData
-
toNHX
- Specified by:
toNHX
in interfacePhylogenyData
- Overrides:
toNHX
in classDomainArchitecture
-
toPhyloXML
Description copied from interface:PhylogenyData
Writes a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXML
in interfacePhylogenyData
- Overrides:
toPhyloXML
in classDomainArchitecture
- Throws:
IOException
-