All Packages Class Hierarchy This Package Previous Next Index
Class mesquite.lib.TreeDisplayExtra
java.lang.Object
|
+----mesquite.lib.TreeDisplayExtra
- public abstract class TreeDisplayExtra
- extends java.lang.Object
- implements mesquite.lib.Listable
A class used for additional graphical and calculations elements to be drawn and calculated within
TreeDisplayes -- tree legends, trace characters, etc. The TreeDisplayExtra is notified when the cursor
is moved over a branch and so on, and when the tree is drawn the TreeDisplayExtra is notified via drawOnTree so that
it can add its items to the tree.
-
ownerModule
-
-
totalCreated
-
-
treeDisplay
-
-
TreeDisplayExtra(MesquiteModule, TreeDisplay)
-
-
addPanelPlease(Panel)
-
-
cursorEnterBranch(Tree, int, Graphics)
- to inform TreeDisplayExtra that cursor has just entered branch N
-
cursorEnterTaxon(Tree, int, Graphics)
- to inform TreeDisplayExtra that cursor has just entered name of terminal taxon M
-
cursorExitBranch(Tree, int, Graphics)
- to inform TreeDisplayExtra that cursor has just exited branch N
-
cursorExitTaxon(Tree, int, Graphics)
- to inform TreeDisplayExtra that cursor has just exited name of terminal taxon M
-
cursorTouchBranch(Tree, int, Graphics)
- to inform TreeDisplayExtra that cursor has just touched branch N
-
cursorTouchTaxon(Tree, int, Graphics)
- to inform TreeDisplayExtra that cursor has just touched name of terminal taxon M
-
dispose()
-
-
drawOnTree(Tree, int, Graphics)
- draw on the tree passed
-
findBranch(Tree, int, int, int)
-
-
getCladeLabelAddition(String, int)
- Returns any strings to be appended to clade label.
-
getCladeLabelColor(String, int)
- Returns the color the extra wants the clade label colored.
-
getCladeLabelUnderlined(String, int)
- Returns true if this extra wants the clade to have its label underlined
-
getName()
-
-
getOwnerModule()
-
-
getPanels()
-
-
getTaxonColor(Taxon)
- Returns the color the extra wants the taxon name colored.
-
getTaxonStringAddition(Taxon)
- Returns any strings to be appended to taxon name.
-
getTaxonUnderlined(Taxon)
- Returns true if this extra wants the taxon to have its name underlined
-
getTreeDisplay()
-
-
printOnTree(Tree, int, Graphics)
- print on the tree passed
-
removePanelPlease(Panel)
-
-
setTree(Tree, CommandRecord)
- notifies the TreeDisplayExtra that the tree has changed, so it knows to redo calculations, and so on
-
textAtNode(Tree, int)
- return a text version of information at node
-
textForLegend()
- return a text version of any legends or other explanatory information
-
turnOff()
-
-
writeOnTree(Tree, int)
- return a text version of information on tree
treeDisplay
public mesquite.lib.TreeDisplay treeDisplay
ownerModule
public mesquite.lib.MesquiteModule ownerModule
totalCreated
public static long totalCreated
TreeDisplayExtra
public TreeDisplayExtra(mesquite.lib.MesquiteModule ownerModule,
mesquite.lib.TreeDisplay treeDisplay)
getOwnerModule
public mesquite.lib.MesquiteModule getOwnerModule()
getName
public java.lang.String getName()
getTreeDisplay
public mesquite.lib.TreeDisplay getTreeDisplay()
dispose
public void dispose()
setTree
public abstract void setTree(mesquite.lib.Tree tree,
mesquite.lib.CommandRecord commandRec)
- notifies the TreeDisplayExtra that the tree has changed, so it knows to redo calculations, and so on
drawOnTree
public abstract void drawOnTree(mesquite.lib.Tree tree,
int drawnRoot,
java.awt.Graphics g)
- draw on the tree passed
printOnTree
public abstract void printOnTree(mesquite.lib.Tree tree,
int drawnRoot,
java.awt.Graphics g)
- print on the tree passed
writeOnTree
public java.lang.String writeOnTree(mesquite.lib.Tree tree,
int node)
- return a text version of information on tree
getTaxonUnderlined
public boolean getTaxonUnderlined(mesquite.lib.Taxon taxon)
- Returns true if this extra wants the taxon to have its name underlined
getTaxonColor
public java.awt.Color getTaxonColor(mesquite.lib.Taxon taxon)
- Returns the color the extra wants the taxon name colored.
getTaxonStringAddition
public java.lang.String getTaxonStringAddition(mesquite.lib.Taxon taxon)
- Returns any strings to be appended to taxon name.
getCladeLabelUnderlined
public boolean getCladeLabelUnderlined(java.lang.String label,
int N)
- Returns true if this extra wants the clade to have its label underlined
getCladeLabelColor
public java.awt.Color getCladeLabelColor(java.lang.String label,
int N)
- Returns the color the extra wants the clade label colored.
getCladeLabelAddition
public java.lang.String getCladeLabelAddition(java.lang.String label,
int N)
- Returns any strings to be appended to clade label.
textAtNode
public java.lang.String textAtNode(mesquite.lib.Tree tree,
int node)
- return a text version of information at node
textForLegend
public java.lang.String textForLegend()
- return a text version of any legends or other explanatory information
findBranch
public int findBranch(mesquite.lib.Tree tree,
int drawnRoot,
int x,
int y)
cursorEnterBranch
public void cursorEnterBranch(mesquite.lib.Tree tree,
int N,
java.awt.Graphics g)
- to inform TreeDisplayExtra that cursor has just entered branch N
cursorExitBranch
public void cursorExitBranch(mesquite.lib.Tree tree,
int N,
java.awt.Graphics g)
- to inform TreeDisplayExtra that cursor has just exited branch N
cursorTouchBranch
public void cursorTouchBranch(mesquite.lib.Tree tree,
int N,
java.awt.Graphics g)
- to inform TreeDisplayExtra that cursor has just touched branch N
cursorEnterTaxon
public void cursorEnterTaxon(mesquite.lib.Tree tree,
int M,
java.awt.Graphics g)
- to inform TreeDisplayExtra that cursor has just entered name of terminal taxon M
cursorExitTaxon
public void cursorExitTaxon(mesquite.lib.Tree tree,
int M,
java.awt.Graphics g)
- to inform TreeDisplayExtra that cursor has just exited name of terminal taxon M
cursorTouchTaxon
public void cursorTouchTaxon(mesquite.lib.Tree tree,
int M,
java.awt.Graphics g)
- to inform TreeDisplayExtra that cursor has just touched name of terminal taxon M
addPanelPlease
public void addPanelPlease(java.awt.Panel p)
removePanelPlease
public void removePanelPlease(java.awt.Panel p)
getPanels
protected java.util.Vector getPanels()
turnOff
public void turnOff()
All Packages Class Hierarchy This Package Previous Next Index