Package org.forester.phylogeny.data
Class NodeVisualData
- java.lang.Object
-
- org.forester.phylogeny.data.NodeVisualData
-
- All Implemented Interfaces:
PhylogenyData
public final class NodeVisualData extends java.lang.Object implements PhylogenyData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeVisualData.FontTypestatic classNodeVisualData.NodeFillstatic classNodeVisualData.NodeShape
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPTX_VISUALIZATION_REFstatic intDEFAULT_SIZEstatic java.lang.StringFONT_COLOR_REFstatic java.lang.StringFONT_COLOR_TYPEstatic java.lang.StringFONT_REFstatic java.lang.StringFONT_SIZE_REFstatic java.lang.StringFONT_SIZE_TYPEstatic java.lang.StringFONT_STYLE_BOLDstatic java.lang.StringFONT_STYLE_BOLD_ITALICstatic java.lang.StringFONT_STYLE_ITALICstatic java.lang.StringFONT_STYLE_PLAINstatic java.lang.StringFONT_STYLE_REFstatic java.lang.StringFONT_STYLE_TYPEstatic java.lang.StringFONT_TYPEstatic java.lang.StringNODE_COLOR_REFstatic java.lang.StringNODE_COLOR_TYPEstatic java.lang.StringNODE_FILL_GRADIENTstatic java.lang.StringNODE_FILL_NONEstatic java.lang.StringNODE_FILL_SOLIDstatic java.lang.StringNODE_FILL_TYPE_REFstatic java.lang.StringNODE_FILL_TYPE_TYPEstatic java.lang.StringNODE_SHAPE_CIRCLEstatic java.lang.StringNODE_SHAPE_RECTANGLEstatic java.lang.StringNODE_SHAPE_REFstatic java.lang.StringNODE_SHAPE_TYPEstatic java.lang.StringNODE_SIZE_REFstatic java.lang.StringNODE_SIZE_TYPEstatic java.lang.StringNODE_TRANSPARENCY_REFstatic java.lang.StringNODE_TRANSPARENCY_TYPE
-
Constructor Summary
Constructors Constructor Description NodeVisualData()NodeVisualData(java.lang.String font_name, NodeVisualData.FontType font_style, byte font_size, java.awt.Color font_color, NodeVisualData.NodeShape shape, NodeVisualData.NodeFill fill_type, java.awt.Color node_color, float size, float transparency)
-
Method Summary
All 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.NodeVisualData.NodeFillgetFillType()java.awt.FontgetFont()java.awt.ColorgetFontColor()java.lang.StringgetFontName()bytegetFontSize()NodeVisualData.FontTypegetFontStyle()intgetFontStyleInt()java.awt.ColorgetNodeColor()NodeVisualData.NodeShapegetShape()floatgetSize()floatgetTransparency()booleanisEmpty()booleanisEqual(PhylogenyData data)Compares this PhylogenyData to PhylogenyData data.voidparseProperty(Property prop)voidsetFillType(java.lang.String fill)voidsetFillType(NodeVisualData.NodeFill fill_type)voidsetFontColor(java.awt.Color font_color)voidsetFontName(java.lang.String font_name)voidsetFontSize(int font_size)voidsetFontStyle(int font_style)voidsetFontStyle(java.lang.String font_style)voidsetFontStyle(NodeVisualData.FontType font_style)voidsetNodeColor(java.awt.Color node_color)voidsetShape(java.lang.String shape)voidsetShape(NodeVisualData.NodeShape shape)voidsetSize(float size)voidsetTransparency(float transparency)java.lang.StringBuffertoNHX()voidtoPhyloXML(java.io.Writer writer, int level, java.lang.String indentation)Writes a phyloXML representation of this phylogeny data.java.lang.StringtoString()
-
-
-
Field Detail
-
APTX_VISUALIZATION_REF
public static final java.lang.String APTX_VISUALIZATION_REF
- See Also:
- Constant Field Values
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
-
FONT_COLOR_REF
public static final java.lang.String FONT_COLOR_REF
- See Also:
- Constant Field Values
-
FONT_COLOR_TYPE
public static final java.lang.String FONT_COLOR_TYPE
- See Also:
- Constant Field Values
-
FONT_REF
public static final java.lang.String FONT_REF
- See Also:
- Constant Field Values
-
FONT_SIZE_REF
public static final java.lang.String FONT_SIZE_REF
- See Also:
- Constant Field Values
-
FONT_SIZE_TYPE
public static final java.lang.String FONT_SIZE_TYPE
- See Also:
- Constant Field Values
-
FONT_STYLE_BOLD
public static final java.lang.String FONT_STYLE_BOLD
- See Also:
- Constant Field Values
-
FONT_STYLE_BOLD_ITALIC
public static final java.lang.String FONT_STYLE_BOLD_ITALIC
- See Also:
- Constant Field Values
-
FONT_STYLE_ITALIC
public static final java.lang.String FONT_STYLE_ITALIC
- See Also:
- Constant Field Values
-
FONT_STYLE_PLAIN
public static final java.lang.String FONT_STYLE_PLAIN
- See Also:
- Constant Field Values
-
FONT_STYLE_REF
public static final java.lang.String FONT_STYLE_REF
- See Also:
- Constant Field Values
-
FONT_STYLE_TYPE
public static final java.lang.String FONT_STYLE_TYPE
- See Also:
- Constant Field Values
-
FONT_TYPE
public static final java.lang.String FONT_TYPE
- See Also:
- Constant Field Values
-
NODE_COLOR_REF
public static final java.lang.String NODE_COLOR_REF
- See Also:
- Constant Field Values
-
NODE_COLOR_TYPE
public static final java.lang.String NODE_COLOR_TYPE
- See Also:
- Constant Field Values
-
NODE_FILL_GRADIENT
public static final java.lang.String NODE_FILL_GRADIENT
- See Also:
- Constant Field Values
-
NODE_FILL_NONE
public static final java.lang.String NODE_FILL_NONE
- See Also:
- Constant Field Values
-
NODE_FILL_SOLID
public static final java.lang.String NODE_FILL_SOLID
- See Also:
- Constant Field Values
-
NODE_FILL_TYPE_REF
public static final java.lang.String NODE_FILL_TYPE_REF
- See Also:
- Constant Field Values
-
NODE_FILL_TYPE_TYPE
public static final java.lang.String NODE_FILL_TYPE_TYPE
- See Also:
- Constant Field Values
-
NODE_SHAPE_CIRCLE
public static final java.lang.String NODE_SHAPE_CIRCLE
- See Also:
- Constant Field Values
-
NODE_SHAPE_RECTANGLE
public static final java.lang.String NODE_SHAPE_RECTANGLE
- See Also:
- Constant Field Values
-
NODE_SHAPE_REF
public static final java.lang.String NODE_SHAPE_REF
- See Also:
- Constant Field Values
-
NODE_SHAPE_TYPE
public static final java.lang.String NODE_SHAPE_TYPE
- See Also:
- Constant Field Values
-
NODE_SIZE_REF
public static final java.lang.String NODE_SIZE_REF
- See Also:
- Constant Field Values
-
NODE_SIZE_TYPE
public static final java.lang.String NODE_SIZE_TYPE
- See Also:
- Constant Field Values
-
NODE_TRANSPARENCY_REF
public static final java.lang.String NODE_TRANSPARENCY_REF
- See Also:
- Constant Field Values
-
NODE_TRANSPARENCY_TYPE
public static final java.lang.String NODE_TRANSPARENCY_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NodeVisualData
public NodeVisualData()
-
NodeVisualData
public NodeVisualData(java.lang.String font_name, NodeVisualData.FontType font_style, byte font_size, java.awt.Color font_color, NodeVisualData.NodeShape shape, NodeVisualData.NodeFill fill_type, java.awt.Color node_color, float size, float transparency)
-
-
Method Detail
-
asSimpleText
public final java.lang.StringBuffer asSimpleText()
- Specified by:
asSimpleTextin interfacePhylogenyData
-
asText
public final java.lang.StringBuffer asText()
- Specified by:
asTextin interfacePhylogenyData
-
copy
public final 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
-
getFillType
public final NodeVisualData.NodeFill getFillType()
-
getFont
public final java.awt.Font getFont()
-
getFontColor
public final java.awt.Color getFontColor()
-
getFontName
public final java.lang.String getFontName()
-
getFontSize
public final byte getFontSize()
-
getFontStyle
public final NodeVisualData.FontType getFontStyle()
-
getFontStyleInt
public final int getFontStyleInt()
-
getNodeColor
public final java.awt.Color getNodeColor()
-
getShape
public final NodeVisualData.NodeShape getShape()
-
getSize
public final float getSize()
-
getTransparency
public final float getTransparency()
-
isEmpty
public final boolean isEmpty()
-
isEqual
public final 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
-
parseProperty
public void parseProperty(Property prop)
-
setFillType
public final void setFillType(NodeVisualData.NodeFill fill_type)
-
setFillType
public final void setFillType(java.lang.String fill)
-
setFontColor
public final void setFontColor(java.awt.Color font_color)
-
setFontName
public final void setFontName(java.lang.String font_name)
-
setFontSize
public final void setFontSize(int font_size)
-
setFontStyle
public final void setFontStyle(NodeVisualData.FontType font_style)
-
setFontStyle
public final void setFontStyle(int font_style)
-
setFontStyle
public final void setFontStyle(java.lang.String font_style)
-
setNodeColor
public final void setNodeColor(java.awt.Color node_color)
-
setShape
public final void setShape(NodeVisualData.NodeShape shape)
-
setShape
public final void setShape(java.lang.String shape)
-
setSize
public final void setSize(float size)
-
setTransparency
public final void setTransparency(float transparency)
-
toNHX
public final java.lang.StringBuffer toNHX()
- Specified by:
toNHXin interfacePhylogenyData
-
toPhyloXML
public final 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
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-