|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmesquite.lib.MenuOwner
mesquite.lib.EmployerEmployee
mesquite.lib.MesquiteModule
mesquite.lib.duties.DrawTreeCoordinator
public abstract class DrawTreeCoordinator
A class that supervises the drawing of one or more tree. It creates TreeDisplay objects and probably hires DrawTree modules. Old and clunky, it either makes a single TreeDisplay, or multiple ones. Example module: BasicTreeDrawCoordinator
| Field Summary | |
|---|---|
protected java.util.Vector |
assistantTasks
|
protected int |
numDisplays
|
protected TreeDisplay |
treeDisplay
|
protected TreeDisplay[] |
treeDisplays
|
| Fields inherited from class mesquite.lib.MesquiteModule |
|---|
author, browserString, checkMethodsAtStartup, hiredAsDefaultInScripting, lastResult, lastResultString, logWindow, mesquiteDirectory, mesquiteDirectoryPath, mesquiteTrunk, moduleInfo, prefsDirectory, proj, textEdgeCompensationHeight, textEdgeCompensationWidth, totalFinalized, userDirectory |
| Fields inherited from class mesquite.lib.EmployerEmployee |
|---|
employees, employer, startupBailOut, stringPos, suppressHireQueries, totalCreated, totalDisposed, useOtherChoices |
| Fields inherited from interface mesquite.lib.MesquiteListener |
|---|
ANNOTATION_ADDED, ANNOTATION_CHANGED, ANNOTATION_DELETED, ASSOCIATED_CHANGED, BRANCHES_REARRANGED, BRANCHLENGTHS_CHANGED, COMMAND_CANCELLED, DATA_CHANGED, ELEMENT_CHANGED, ITEMS_ADDED, NAMES_CHANGED, OBJECT_DESTROYED, PARTS_ADDED, PARTS_CHANGED, PARTS_DELETED, PARTS_MOVED, SELECTION_CHANGED, TAXA_SUBSTITUTED, TEXTFIELD_EDITED, UNKNOWN, VALUE_CHANGED |
| Fields inherited from interface mesquite.lib.HNode |
|---|
MOUSEDOWN, MOUSEEXIT, MOUSEMOVE |
| Constructor Summary | |
|---|---|
DrawTreeCoordinator()
|
|
| Method Summary | |
|---|---|
void |
addAssistantTask(TreeDisplayAssistant mb)
Add tree display assistant |
abstract TreeDisplay |
createOneTreeDisplay(Taxa taxa,
MesquiteWindow window)
Create one tree display in the given window. |
abstract TreeDisplay[] |
createTreeDisplays(int numDisplays,
Taxa[] taxa,
MesquiteWindow window)
Create a vector of tree displays, each with a different Taxa object. |
abstract TreeDisplay[] |
createTreeDisplays(int numDisplays,
Taxa taxa,
MesquiteWindow window)
Create a vector of tree displays. |
java.lang.Class |
getDutyClass()
Returns duty Class the module belongs to; should be defined not by module itself but by abstract class representing duty |
java.lang.String |
getDutyName()
Returns the name of the duty; set by the duty-defining library classes. |
java.lang.String |
getFunctionIconPath()
returns an icon to accompany the explanation of what the module does. |
abstract DrawNamesTreeDisplay |
getNamesTask()
return the module responsible for drawing terminal taxon names. |
abstract java.awt.Dimension |
getPreferredSize()
Returns the preferred size (if any) of the tree drawing |
boolean |
getSearchableAsModule()
|
boolean |
isSubstantive()
returns whether this module does substantive calculations affecting analysis results, or only a graphical/UI/input-output module |
void |
removeAssistantTask(TreeDisplayAssistant mb)
Remove tree display assistant |
abstract void |
setBranchColor(java.awt.Color c)
sets branch color |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TreeDisplay treeDisplay
protected TreeDisplay[] treeDisplays
protected java.util.Vector assistantTasks
protected int numDisplays
| Constructor Detail |
|---|
public DrawTreeCoordinator()
| Method Detail |
|---|
public boolean getSearchableAsModule()
getSearchableAsModule in class EmployerEmployeepublic java.lang.String getFunctionIconPath()
MesquiteModule
getFunctionIconPath in interface FunctionExplainablegetFunctionIconPath in class MesquiteModulepublic java.lang.Class getDutyClass()
MesquiteModule
getDutyClass in class MesquiteModulepublic java.lang.String getDutyName()
MesquiteModule
getDutyName in class MesquiteModulepublic abstract java.awt.Dimension getPreferredSize()
public abstract DrawNamesTreeDisplay getNamesTask()
public abstract TreeDisplay createOneTreeDisplay(Taxa taxa,
MesquiteWindow window)
public abstract TreeDisplay[] createTreeDisplays(int numDisplays,
Taxa taxa,
MesquiteWindow window)
public abstract TreeDisplay[] createTreeDisplays(int numDisplays,
Taxa[] taxa,
MesquiteWindow window)
public abstract void setBranchColor(java.awt.Color c)
public void addAssistantTask(TreeDisplayAssistant mb)
public void removeAssistantTask(TreeDisplayAssistant mb)
public boolean isSubstantive()
MesquiteModule
isSubstantive in class MesquiteModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||