Package org.forester.phylogeny.data
Class NodeVisualData
java.lang.Object
org.forester.phylogeny.data.NodeVisualData
- All Implemented Interfaces:
PhylogenyData
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorDescriptionNodeVisualData
(String font_name, NodeVisualData.FontType font_style, byte font_size, Color font_color, NodeVisualData.NodeShape shape, NodeVisualData.NodeFill fill_type, Color node_color, float size, float transparency) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringBuffer
final StringBuffer
asText()
final PhylogenyData
copy()
Creates a new PhylogenyData object with identical values as this PhylogenyData.final NodeVisualData.NodeFill
final Font
getFont()
final Color
final String
final byte
final NodeVisualData.FontType
final int
final Color
final NodeVisualData.NodeShape
getShape()
final float
getSize()
final float
final boolean
isEmpty()
final boolean
isEqual
(PhylogenyData data) Compares this PhylogenyData to PhylogenyData data.void
parseProperty
(Property prop) final void
setFillType
(String fill) final void
setFillType
(NodeVisualData.NodeFill fill_type) final void
setFontColor
(Color font_color) final void
setFontName
(String font_name) final void
setFontSize
(int font_size) final void
setFontStyle
(int font_style) final void
setFontStyle
(String font_style) final void
setFontStyle
(NodeVisualData.FontType font_style) final void
setNodeColor
(Color node_color) final void
final void
setShape
(NodeVisualData.NodeShape shape) final void
setSize
(float size) final void
setTransparency
(float transparency) final StringBuffer
toNHX()
final void
toPhyloXML
(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.final String
toString()
-
Field Details
-
APTX_VISUALIZATION_REF
- See Also:
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE- See Also:
-
FONT_COLOR_REF
- See Also:
-
FONT_COLOR_TYPE
- See Also:
-
FONT_REF
- See Also:
-
FONT_SIZE_REF
- See Also:
-
FONT_SIZE_TYPE
- See Also:
-
FONT_STYLE_BOLD
- See Also:
-
FONT_STYLE_BOLD_ITALIC
- See Also:
-
FONT_STYLE_ITALIC
- See Also:
-
FONT_STYLE_PLAIN
- See Also:
-
FONT_STYLE_REF
- See Also:
-
FONT_STYLE_TYPE
- See Also:
-
FONT_TYPE
- See Also:
-
NODE_COLOR_REF
- See Also:
-
NODE_COLOR_TYPE
- See Also:
-
NODE_FILL_GRADIENT
- See Also:
-
NODE_FILL_NONE
- See Also:
-
NODE_FILL_SOLID
- See Also:
-
NODE_FILL_TYPE_REF
- See Also:
-
NODE_FILL_TYPE_TYPE
- See Also:
-
NODE_SHAPE_CIRCLE
- See Also:
-
NODE_SHAPE_RECTANGLE
- See Also:
-
NODE_SHAPE_REF
- See Also:
-
NODE_SHAPE_TYPE
- See Also:
-
NODE_SIZE_REF
- See Also:
-
NODE_SIZE_TYPE
- See Also:
-
NODE_TRANSPARENCY_REF
- See Also:
-
NODE_TRANSPARENCY_TYPE
- See Also:
-
-
Constructor Details
-
NodeVisualData
public NodeVisualData() -
NodeVisualData
public NodeVisualData(String font_name, NodeVisualData.FontType font_style, byte font_size, Color font_color, NodeVisualData.NodeShape shape, NodeVisualData.NodeFill fill_type, Color node_color, float size, float transparency)
-
-
Method Details
-
asSimpleText
- Specified by:
asSimpleText
in interfacePhylogenyData
-
asText
- Specified by:
asText
in interfacePhylogenyData
-
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
-
getFillType
-
getFont
-
getFontColor
-
getFontName
-
getFontSize
public final byte getFontSize() -
getFontStyle
-
getFontStyleInt
public final int getFontStyleInt() -
getNodeColor
-
getShape
-
getSize
public final float getSize() -
getTransparency
public final float getTransparency() -
isEmpty
public final boolean isEmpty() -
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
-
parseProperty
-
setFillType
-
setFillType
-
setFontColor
-
setFontName
-
setFontSize
public final void setFontSize(int font_size) -
setFontStyle
-
setFontStyle
public final void setFontStyle(int font_style) -
setFontStyle
-
setNodeColor
-
setShape
-
setShape
-
setSize
public final void setSize(float size) -
setTransparency
public final void setTransparency(float transparency) -
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
-
toString
-