Class RenderableMsaSequence
java.lang.Object
org.forester.archaeopteryx.phylogeny.data.RenderableMsaSequence
- All Implemented Interfaces:
RenderablePhylogenyData
,PhylogenyData
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionasText()
clone()
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.static RenderableMsaSequence
createInstance
(String seq, String type, Configuration configuration) double
int
boolean
isEqual
(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.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).void
setParameter
(double parameter) void
setRenderingFactorWidth
(double rendering_factor_width) void
setRenderingHeight
(float height) toNHX()
void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.
-
Field Details
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH- See Also:
-
-
Method Details
-
asSimpleText
- Specified by:
asSimpleText
in interfacePhylogenyData
-
asText
- Specified by:
asText
in interfacePhylogenyData
-
clone
-
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
- Returns:
- a ~deep~ copy of this PhylogenyData
-
getOriginalSize
- Specified by:
getOriginalSize
in interfaceRenderablePhylogenyData
-
getParameter
- Specified by:
getParameter
in interfaceRenderablePhylogenyData
-
getRenderingFactorWidth
public double getRenderingFactorWidth() -
getRenderingSize
- Specified by:
getRenderingSize
in interfaceRenderablePhylogenyData
-
getTotalLength
public int getTotalLength() -
isEqual
Description copied from interface:PhylogenyData
Compares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqual
in interfacePhylogenyData
- 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 parameter) - Specified by:
setParameter
in interfaceRenderablePhylogenyData
-
setRenderingFactorWidth
public void setRenderingFactorWidth(double rendering_factor_width) -
setRenderingHeight
public void setRenderingHeight(float height) - Specified by:
setRenderingHeight
in interfaceRenderablePhylogenyData
-
toNHX
- Specified by:
toNHX
in interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyData
Writes a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXML
in interfacePhylogenyData
- Throws:
IOException
-
createInstance
public static RenderableMsaSequence createInstance(String seq, String type, Configuration configuration)
-