|
|||||||||
| 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.NodeLocs
public abstract class NodeLocs
This class of modules assigns locations to nodes in a drawn tree. Most modules use subclasses of this (e.g., NodeLocsVH, NodeLocsCircle).
| Field Summary |
|---|
| 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 | |
|---|---|
NodeLocs()
|
|
| Method Summary | |
|---|---|
abstract void |
calculateNodeLocs(TreeDisplay treeDisplay,
Tree tree,
int drawnRoot,
java.awt.Rectangle rect)
calculates the locations for a tree drawn within the given rectangle. |
boolean |
compatibleWithOrientation(int orientation)
returns whether compatible with given orientation (e.g., UP, RIGHT, CIRCULAR, etc.) |
int |
getDefaultOrientation()
gets the module's default tree display orientation. |
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. |
java.awt.Dimension |
getPreferredSize()
|
boolean |
isSubstantive()
returns whether this module does substantive calculations affecting analysis results, or only a graphical/UI/input-output module |
void |
setDefaultOrientation(TreeDisplay treeDisplay)
sets the TreeDisplay's orientation to be the default desired by the module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NodeLocs()
| Method Detail |
|---|
public abstract void calculateNodeLocs(TreeDisplay treeDisplay,
Tree tree,
int drawnRoot,
java.awt.Rectangle rect)
public java.lang.String getFunctionIconPath()
MesquiteModule
getFunctionIconPath in interface FunctionExplainablegetFunctionIconPath in class MesquiteModulepublic boolean compatibleWithOrientation(int orientation)
public void setDefaultOrientation(TreeDisplay treeDisplay)
public int getDefaultOrientation()
public java.awt.Dimension getPreferredSize()
public java.lang.String getDutyName()
MesquiteModule
getDutyName in class MesquiteModulepublic java.lang.Class getDutyClass()
MesquiteModule
getDutyClass in class MesquiteModulepublic boolean isSubstantive()
MesquiteModule
isSubstantive in class MesquiteModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||