|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectexe.GAIGSphylogenetic_forest
public class GAIGSphylogenetic_forest
GAIGSphylogenetic_forest.java provides an
GAIGS-renderable data structure for a forest of GAIGSphylogenetic
trees. Essentially the forest is a vector of such trees with the
layout of individual trees scattered semi-intelligently via setting
the bounds of the individual trees.
| Field Summary | |
|---|---|
protected double |
font_size
Holds the minimum font size for this forest when drawn in the new GAIGS XML format. |
| Fields inherited from interface exe.GAIGSdatastr |
|---|
DEFAULT_COLOR, DEFAULT_FONT_SIZE, DEFAULT_NAME, DEFAULT_X1, DEFAULT_X2, DEFAULT_Y1, DEFAULT_Y2 |
| Constructor Summary | |
|---|---|
GAIGSphylogenetic_forest()
Construct a forest using all the default values. |
|
GAIGSphylogenetic_forest(java.lang.String name,
java.lang.String color,
double x1,
double y1,
double x2,
double y2,
double fontSize)
Set all instance variables. |
|
| Method Summary | |
|---|---|
boolean |
addElement(GAIGSphylogenetic_tree t)
|
void |
colorRoot(int treeIndex,
java.lang.String color)
|
GAIGSphylogenetic_tree |
elementAt(int index)
|
java.lang.String |
getName()
Get the value of the name. |
void |
prepareForRefinedTrees()
|
boolean |
remove(GAIGSphylogenetic_tree t)
|
void |
setBounds(double x1,
double y1,
double x2,
double y2)
Sets the bounds in which this forest is to be drawn. |
void |
setFontSize(double size)
Sets the minimum font size to keep the fonts in this GAIGSphylogenetic_forest readable. |
void |
setLeaves(int leafCount)
|
void |
setName(java.lang.String name)
Set the value of the name to be displayed. |
void |
setTreeBounds()
x/y gaps not right. |
java.lang.String |
toXML()
Creates and returns GAIGS XML code for the current state of the forest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double font_size
| Constructor Detail |
|---|
public GAIGSphylogenetic_forest()
public GAIGSphylogenetic_forest(java.lang.String name,
java.lang.String color,
double x1,
double y1,
double x2,
double y2,
double fontSize)
name - Display name of this structure.color - Color for items unless locally overridden.x1 - Left display bound.y1 - Bottom display bound.x2 - Top display bound.y2 - Right display bound.fontSize - Font size for display.| Method Detail |
|---|
public void setLeaves(int leafCount)
public void setName(java.lang.String name)
setName in interface GAIGSdatastrname - The display name.public java.lang.String getName()
getName in interface GAIGSdatastr
public void setBounds(double x1,
double y1,
double x2,
double y2)
x1 - Sets the left-most bound on the horizontal axis.y1 - Sets the lower bound on the vertical axis.x2 - Sets the right-most bound on the horizontal axis.y2 - Sets the upper bound on the vertical axis.public void setFontSize(double size)
GAIGSphylogenetic_forest readable. Used to upsize
the font when drawing this
GAIGSphylogenetic_forest in a portion of the
viewing window in the new GAIGS XML format.
size - Indicates the minimum font size for the fonts in
this GAIGSphylogenetic_forest.public boolean remove(GAIGSphylogenetic_tree t)
t - a tree to be removed from the forest
public boolean addElement(GAIGSphylogenetic_tree t)
t - a tree to be added to the forest. Since the forest is
a vector of trees, the addition of t to the forest will occur
as the last element of the underlying vector.
public GAIGSphylogenetic_tree elementAt(int index)
index - an index in the underlying vector of phylogenetic trees
public void setTreeBounds()
public void colorRoot(int treeIndex,
java.lang.String color)
public void prepareForRefinedTrees()
public java.lang.String toXML()
toXML in interface GAIGSdatastr
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||