|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface of the scripting support for the MainView.
| Method Summary | |
void |
alert(java.lang.String message)
Modal dialog with no title |
void |
alert(java.lang.String message,
java.lang.String title)
displays a modal dialog with a message |
void |
changeZoomMode(java.lang.String newMode)
Sets the zoom mode for the MainView. |
void |
clearComposites()
|
void |
closeAllDescendents()
Close all descendants of the selected node(s). |
void |
closeSelectedNodes()
Closes the selected node(s) (hides the children if showing). |
void |
createComposites(java.lang.String[] arcTypes)
|
void |
filterAllArcs(boolean filter)
Filters or unfilters all arcs from the display |
void |
filterAllArtifactDataTypes(boolean filter)
Filters or unfilters all artifact types from the data. |
void |
filterAllNodes(boolean filter)
Filters or unfilters all nodes from the display |
void |
filterAllRelationshipDataTypes(boolean filter)
Filters or unfilters all relationship types from the data. |
void |
filterArcsByType(java.lang.String type,
boolean filter)
Filters or unfilters arcs of String type from the display |
void |
filterArtifactDataType(java.lang.String type,
boolean filter)
Filters or unfilters artifacts of a specific type from the data. |
void |
filterNodesByType(java.lang.String type,
boolean filter)
Filters or unfilters nodes of String type from the display. |
void |
filterRelationshipDataType(java.lang.String type,
boolean filter)
Filters or unfilters relationships of a specific type from the data. |
void |
filterSelectedNodes()
Filter the selected node(s). |
void |
focusOnHome()
Zoom back to the root node. |
void |
layoutChildren(java.lang.String newLayoutMode)
Layout children of the selected node(s). |
void |
layoutSelected(java.lang.String newLayoutMode)
Layout selected node(s). |
void |
navigateToNode(java.lang.String name)
Causes the view to navigate to the node with the given name. |
void |
openAllDescendents()
Open all descendants of the selected node(s). |
void |
openSelectedNodes()
Shows the children (if any) of the selected node(s). |
void |
pause(long time)
Pauses any further script operation for time ms. |
java.lang.String |
prompt(java.lang.String message,
java.lang.String title)
displays a modal dialog with an input field |
void |
redoAction()
Redo the action that was previously undone. |
void |
refresh()
Causes the display to refresh. |
void |
selectAllChildren()
Select all children of the selected node(s). |
void |
selectAllDescendents()
Select all descendants of the selected node(s). |
void |
selectConnectedNodes()
|
void |
selectInverseSiblings()
De-selects the currently selected nodes, and selects their unselected siblings instead. |
void |
selectNodesByName(java.lang.String name,
boolean selectAllOccurances,
boolean clearPreviouslySelected,
boolean exactMatch,
boolean caseSensitive)
Selects the nodes identified by name. |
void |
selectNodesByType(java.lang.String type,
boolean clearPreviouslySelected)
Selects all nodes of a specific type |
void |
selectRoots()
|
void |
setHierarchy(java.lang.String[] cprels)
Change the child-parent relationships. |
void |
setLabelMode(java.lang.String mode)
Change the display of labels. |
void |
showDialog(java.lang.String message)
displays a non-modal dialog with a message |
void |
showDialog(java.lang.String message,
java.lang.String title)
displays a non-modal dialog with a message and title |
void |
takeSnapShot(boolean askForComments)
Take a snapShot of the MainView and add it to the Filmstrip. |
void |
undoAction()
Undo an action. |
void |
unFilterAllArtifacts()
Unfilter all the previously filtered artifacts. |
| Method Detail |
public void selectNodesByName(java.lang.String name,
boolean selectAllOccurances,
boolean clearPreviouslySelected,
boolean exactMatch,
boolean caseSensitive)
name.
name - - String name of the node.selectAllOccurances - - boolean whether to select all occurances of nodes
with this name, or just the first one come acrossclearPreviouslySelected - - boolean whether to clear previous selection.exactMatch - Whether or not match the name exactlycaseSensitive - Whether or not to consider case in the match.public void selectRoots()
public void selectNodesByType(java.lang.String type,
boolean clearPreviouslySelected)
type - clearPreviouslySelected - public void selectInverseSiblings()
public void openSelectedNodes()
public void closeSelectedNodes()
public void openAllDescendents()
public void closeAllDescendents()
public void setHierarchy(java.lang.String[] cprels)
cprels - new child-parent relationships.public void setLabelMode(java.lang.String mode)
.SCALE_BY_NODE_SIZE produces the fastest drawing time
mode - - one of ShrimpConstants.FIXED, ShrimpConstants.SCALE_BY_NODE_SIZE, or ShrimpConstants.SCALE_BY_LEVELpublic void takeSnapShot(boolean askForComments)
askForComments - - boolean whether to ask for comments.public void selectAllChildren()
public void selectAllDescendents()
public void layoutChildren(java.lang.String newLayoutMode)
newLayoutMode - - String new layout mode @see ca.uvic.csr.shrimp.ShrimpConstantspublic void layoutSelected(java.lang.String newLayoutMode)
newLayoutMode - - String new layout mode @see ca.uvic.csr.shrimp.ShrimpConstantspublic void filterSelectedNodes()
public void filterAllArcs(boolean filter)
filter - - boolean, show or hide all arcspublic void filterAllNodes(boolean filter)
filter - - boolean, show or hide all nodes
public void filterArcsByType(java.lang.String type,
boolean filter)
type - - String type of the arcs.filter - - boolean whether to show or hide the arcs.
public void filterNodesByType(java.lang.String type,
boolean filter)
type - - String type of the nodes.filter - - boolean whether to show or hide the nodes.
public void filterArtifactDataType(java.lang.String type,
boolean filter)
type - filter - show or hide artifacts of the given type
public void filterRelationshipDataType(java.lang.String type,
boolean filter)
type - filter - show or hide relationships of the given typepublic void filterAllArtifactDataTypes(boolean filter)
filter - show or hide all artifactspublic void filterAllRelationshipDataTypes(boolean filter)
filter - show or hide all relationshipspublic void unFilterAllArtifacts()
public void focusOnHome()
public void redoAction()
public void undoAction()
public void changeZoomMode(java.lang.String newMode)
newMode - - String new mode @see ca.uvic.csr.shrimp.ShrimpConstantspublic void navigateToNode(java.lang.String name)
name - public void showDialog(java.lang.String message)
message - - String new message to display
public void showDialog(java.lang.String message,
java.lang.String title)
message - - String new message to displaytitle - - String the title of the dialogpublic void alert(java.lang.String message)
message - - String new message to display
public void alert(java.lang.String message,
java.lang.String title)
message - - String new message to displaytitle - - String the title of the dialog
public java.lang.String prompt(java.lang.String message,
java.lang.String title)
message - - String new message to displaytitle - - String the title of the dialog
public void pause(long time)
time ms.
time - - long time in ms.public void refresh()
public void selectConnectedNodes()
public void createComposites(java.lang.String[] arcTypes)
public void clearComposites()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||