|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MainViewScriptingBean
This is the interface of the scripting support for the MainView.
Method Summary | |
---|---|
void |
alert(java.lang.String message)
Displays a 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()
Removes the composite arcs. |
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)
Creates composite arcs for the given types. |
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()
Zooms 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 the children of the selected node(s). |
void |
selectAllDescendents()
Select all the descendants of the selected node(s). |
void |
selectConnectedNodes()
Selects all nodes that are connected to the currently selected nodes. |
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()
Selects the root nodes. |
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 the given 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 |
---|
void selectNodesByName(java.lang.String name, boolean selectAllOccurances, boolean clearPreviouslySelected, boolean exactMatch, boolean caseSensitive)
name
.
name
- - String name of the node.selectAllOccurances
- - whether to select all occurances of nodes with this name or just the first oneclearPreviouslySelected
- - boolean whether to clear previous selection.exactMatch
- Whether or not match the name exactlycaseSensitive
- Whether or not to consider case in the match.void selectRoots()
void selectNodesByType(java.lang.String type, boolean clearPreviouslySelected)
type
- see the node filter dialog to see the available node typesclearPreviouslySelected
- void selectInverseSiblings()
void openSelectedNodes()
void closeSelectedNodes()
void openAllDescendents()
void closeAllDescendents()
void setHierarchy(java.lang.String[] cprels)
cprels
- new child-parent relationships which defines the nested hierarchyvoid setLabelMode(java.lang.String mode)
ScriptingConstants.SCALE_BY_NODE_SIZE
produces the fastest drawing time
mode
- - one of ScriptingConstants.FIXED
,
ScriptingConstants.SCALE_BY_NODE_SIZE
, or ScriptingConstants.SCALE_BY_LEVEL
void takeSnapShot(boolean askForComments)
askForComments
- - whether to ask for comments.void selectAllChildren()
void selectAllDescendents()
void layoutChildren(java.lang.String newLayoutMode)
newLayoutMode
- - String new layout mode @see ca.uvic.csr.shrimp.ScriptingConstantsScriptingConstants.GRID_BY_TYPE
,
ScriptingConstants.SPRING
,
ScriptingConstants.TREE_HORIZONTAL
,
ScriptingConstants.TREE_VERTICAL
,
ScriptingConstants.TREEMAP
,
ScriptingConstants.RADIAL
void layoutSelected(java.lang.String newLayoutMode)
newLayoutMode
- - String new layout mode @see ca.uvic.csr.shrimp.ScriptingConstantsScriptingConstants.GRID_BY_TYPE
,
ScriptingConstants.SPRING
,
ScriptingConstants.TREE_HORIZONTAL
,
ScriptingConstants.TREE_VERTICAL
,
ScriptingConstants.TREEMAP
,
ScriptingConstants.RADIAL
void filterSelectedNodes()
void filterAllArcs(boolean filter)
filter
- show or hide all arcsvoid filterAllNodes(boolean filter)
filter
- show or hide all nodesvoid filterArcsByType(java.lang.String type, boolean filter)
type
- String type of the arcs - see the arc filter dialog for the available arc typesfilter
- - boolean whether to show or hide the arcs.void filterNodesByType(java.lang.String type, boolean filter)
type
- type of the nodes - see the node filter dialog for the available arc typesfilter
- whether to show or hide the nodes.void filterArtifactDataType(java.lang.String type, boolean filter)
type
- filter
- show or hide artifacts of the given typevoid filterRelationshipDataType(java.lang.String type, boolean filter)
type
- filter
- show or hide relationships of the given typevoid filterAllArtifactDataTypes(boolean filter)
filter
- show or hide all artifactsvoid filterAllRelationshipDataTypes(boolean filter)
filter
- show or hide all relationshipsvoid unFilterAllArtifacts()
void focusOnHome()
void redoAction()
void undoAction()
void changeZoomMode(java.lang.String newMode)
newMode
- the new zoom modeScriptingConstants.ZOOM
,
ScriptingConstants.MAGNIFY
,
ScriptingConstants.FISHEYE
void navigateToNode(java.lang.String name)
name
- the name of the node to navigate tovoid showDialog(java.lang.String message)
message
- the message to displayvoid showDialog(java.lang.String message, java.lang.String title)
message
- the message to displaytitle
- title for the dialogvoid alert(java.lang.String message)
message
- the message to displayvoid alert(java.lang.String message, java.lang.String title)
message
- - String new message to displaytitle
- - String the title of the dialogjava.lang.String prompt(java.lang.String message, java.lang.String title)
message
- the message to displaytitle
- the title of the dialog
void pause(long time)
time
ms.
time
- the time in ms.void refresh()
void selectConnectedNodes()
void createComposites(java.lang.String[] arcTypes)
arcTypes
- void clearComposites()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |