|
|||||||||
| 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.DataWindowAssistant
mesquite.lib.duties.DataWindowAssistantI
mesquite.align.lib.BlockMover
public abstract class BlockMover
| Field Summary | |
|---|---|
protected AlignTool |
moveTool
|
| 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 | |
|---|---|
BlockMover()
|
|
| Method Summary | |
|---|---|
void |
addPopUpMenuItems()
|
boolean |
allowSplits()
|
boolean |
canMoveLeft()
|
boolean |
canMoveRight()
|
java.lang.Object |
doCommand(java.lang.String commandName,
java.lang.String arguments,
CommandChecker checker)
A request for the MesquiteModule to perform a command. |
abstract java.awt.Point |
getCellToolHotSpot()
|
abstract java.lang.String |
getCellToolImageFileName()
|
CompatibilityTest |
getCompatibilityTest()
Returns CompatibilityTest so other modules know if this is compatible with some object. |
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 |
getExplanation()
returns an explanation of what the module does. |
abstract java.lang.String |
getExplanationForTool()
|
abstract java.lang.String |
getFullDescriptionForTool()
|
java.lang.String |
getName()
Returns the name of the module |
boolean |
getOptionDown()
|
Snapshot |
getSnapshot(MesquiteFile file)
Return Mesquite commands that will put the module (approximately) back into its current state. |
abstract java.awt.Point |
getSplitToolHotSpot()
|
abstract java.lang.String |
getSplitToolImageFileName()
|
abstract java.lang.String |
getToolName()
|
boolean |
isPrerelease()
returns whether this module is a prerelease version. |
boolean |
isSubstantive()
returns whether this module does substantive calculations affecting analysis results, or only a graphical/UI/input-output module |
void |
setOptionTools()
|
void |
setTableAndData(MesquiteTable table,
CharacterData data)
method called by data window to inform assistant that data have changed |
boolean |
startJob(java.lang.String arguments,
java.lang.Object condition,
boolean hiredByName)
startJob is called automatically when an employee is hired. |
boolean |
wholeSelectedBlock()
|
boolean |
wholeSequenceToLeft()
|
boolean |
wholeSequenceToRight()
|
| Methods inherited from class mesquite.lib.duties.DataWindowAssistantI |
|---|
getDefaultModule |
| Methods inherited from class mesquite.lib.duties.DataWindowAssistant |
|---|
colorsLegendGoAway, focusInCell, getCellExplanation, getCellString, getDisplayModString, getFunctionIconPath, hasDisplayModifications, isActive, setActive, tableSelectionChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AlignTool moveTool
| Constructor Detail |
|---|
public BlockMover()
| Method Detail |
|---|
public java.lang.Class getDutyClass()
MesquiteModule
getDutyClass in class DataWindowAssistantIpublic java.lang.String getDutyName()
MesquiteModule
getDutyName in class DataWindowAssistantI
public boolean startJob(java.lang.String arguments,
java.lang.Object condition,
boolean hiredByName)
MesquiteModuleThe MesquiteModule should override this method, to add code to initialize things it needs, and to hire relevant necessary employees. startJob must return true if the module was successfully started; false otherwise. Thus, if the module needs a data matrix but the file has none, it returns false and the hiring process is undone.
Most modules will ignore the arguments and condition.
startJob in class MesquiteModulepublic boolean isSubstantive()
MesquiteModule
isSubstantive in class MesquiteModulepublic boolean isPrerelease()
MesquiteModule
isPrerelease in class MesquiteModulepublic abstract java.lang.String getToolName()
public abstract java.lang.String getCellToolImageFileName()
public abstract java.awt.Point getCellToolHotSpot()
public abstract java.lang.String getSplitToolImageFileName()
public abstract java.awt.Point getSplitToolHotSpot()
public abstract java.lang.String getExplanationForTool()
public abstract java.lang.String getFullDescriptionForTool()
public void addPopUpMenuItems()
public void setOptionTools()
public boolean allowSplits()
public boolean canMoveLeft()
public boolean canMoveRight()
public boolean wholeSelectedBlock()
public boolean wholeSequenceToLeft()
public boolean wholeSequenceToRight()
public boolean getOptionDown()
public CompatibilityTest getCompatibilityTest()
getCompatibilityTest in class DataWindowAssistantI
public void setTableAndData(MesquiteTable table,
CharacterData data)
DataWindowAssistant
setTableAndData in class DataWindowAssistantpublic Snapshot getSnapshot(MesquiteFile file)
MesquiteModule
getSnapshot in class MesquiteModule
public java.lang.Object doCommand(java.lang.String commandName,
java.lang.String arguments,
CommandChecker checker)
MesquiteModule
doCommand in interface CommandabledoCommand in class MesquiteModulepublic java.lang.String getName()
MesquiteModule
getName in interface HNodegetName in interface ListablegetName in class MesquiteModulepublic java.lang.String getExplanation()
getExplanation in interface ExplainablegetExplanation in class MesquiteModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||