Class RenderableMsaSequence
- java.lang.Object
-
- org.forester.archaeopteryx.phylogeny.data.RenderableMsaSequence
-
- All Implemented Interfaces:
RenderablePhylogenyData,PhylogenyData
public final class RenderableMsaSequence extends java.lang.Object implements RenderablePhylogenyData
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_WIDTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBufferasSimpleText()java.lang.StringBufferasText()java.lang.Objectclone()PhylogenyDatacopy()Creates a new PhylogenyData object with identical values as this PhylogenyData.static RenderableMsaSequencecreateInstance(java.lang.String seq, java.lang.String type, Configuration configuration)java.awt.DimensiongetOriginalSize()java.lang.ObjectgetParameter()doublegetRenderingFactorWidth()java.awt.DimensiongetRenderingSize()intgetTotalLength()booleanisEqual(PhylogenyData data)Compares this PhylogenyData to PhylogenyData data.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).voidsetParameter(double parameter)voidsetRenderingFactorWidth(double rendering_factor_width)voidsetRenderingHeight(float height)java.lang.StringBuffertoNHX()voidtoPhyloXML(java.io.Writer writer, int level, java.lang.String indentation)Writes a phyloXML representation of this phylogeny data.
-
-
-
Field Detail
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
asSimpleText
public java.lang.StringBuffer asSimpleText()
- Specified by:
asSimpleTextin interfacePhylogenyData
-
asText
public java.lang.StringBuffer asText()
- Specified by:
asTextin interfacePhylogenyData
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
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- Returns:
- a ~deep~ copy of this PhylogenyData
-
getOriginalSize
public java.awt.Dimension getOriginalSize()
- Specified by:
getOriginalSizein interfaceRenderablePhylogenyData
-
getParameter
public java.lang.Object getParameter()
- Specified by:
getParameterin interfaceRenderablePhylogenyData
-
getRenderingFactorWidth
public double getRenderingFactorWidth()
-
getRenderingSize
public java.awt.Dimension getRenderingSize()
- Specified by:
getRenderingSizein interfaceRenderablePhylogenyData
-
getTotalLength
public int getTotalLength()
-
isEqual
public boolean isEqual(PhylogenyData data)
Description copied from interface:PhylogenyDataCompares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqualin interfacePhylogenyData- 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 parameter)
- Specified by:
setParameterin interfaceRenderablePhylogenyData
-
setRenderingFactorWidth
public void setRenderingFactorWidth(double rendering_factor_width)
-
setRenderingHeight
public void setRenderingHeight(float height)
- Specified by:
setRenderingHeightin interfaceRenderablePhylogenyData
-
toNHX
public java.lang.StringBuffer toNHX()
- Specified by:
toNHXin interfacePhylogenyData
-
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- Throws:
java.io.IOException
-
createInstance
public static RenderableMsaSequence createInstance(java.lang.String seq, java.lang.String type, Configuration configuration)
-
-