wt.clients.beans.graph
Interface GraphSelectionModel

All Known Implementing Classes:
DefaultGraphSelectionModel

public interface GraphSelectionModel


Method Summary
 void add(GraphLink pSelectedLink)
           
 void add(GraphNode pSelectedNode)
           
 void addGraphSelectionModelListener(GraphSelectionModelListener listener)
           
 Enumeration allSelectedLinks()
           
 Enumeration allSelectedNodes()
           
 void clearSelection()
           
 GraphLink getLastSelectedLink()
          Answer the last selected link.
 GraphNode getLastSelectedNode()
          Answer the last selected node.
 int getLinksSelectedCount()
           
 int getNodesSelectedCount()
           
 boolean isSelected(GraphLink pLink)
           
 boolean isSelected(GraphNode pNode)
           
 void remove(GraphLink pLink)
           
 void remove(GraphNode pNode)
           
 void removeGraphSelectionModelListener(GraphSelectionModelListener listener)
           
 

Method Detail

isSelected

public boolean isSelected(GraphNode pNode)
Parameters:
pNode -
Returns:
boolean

isSelected

public boolean isSelected(GraphLink pLink)
Parameters:
pLink -
Returns:
boolean

getNodesSelectedCount

public int getNodesSelectedCount()
Returns:
int

getLinksSelectedCount

public int getLinksSelectedCount()
Returns:
int

clearSelection

public void clearSelection()

add

public void add(GraphNode pSelectedNode)
Parameters:
pSelectedNode -

remove

public void remove(GraphNode pNode)
Parameters:
pNode -

add

public void add(GraphLink pSelectedLink)
Parameters:
pSelectedLink -

remove

public void remove(GraphLink pLink)
Parameters:
pLink -

allSelectedNodes

public Enumeration allSelectedNodes()
Returns:
Enumeration

allSelectedLinks

public Enumeration allSelectedLinks()
Returns:
Enumeration

addGraphSelectionModelListener

public void addGraphSelectionModelListener(GraphSelectionModelListener listener)
Parameters:
listener -

removeGraphSelectionModelListener

public void removeGraphSelectionModelListener(GraphSelectionModelListener listener)
Parameters:
listener -

getLastSelectedNode

public GraphNode getLastSelectedNode()
Answer the last selected node. The node must still be selected. If the current selected node is unselected, the method would return the previous last selected node.

Returns:
null if no node is selected

getLastSelectedLink

public GraphLink getLastSelectedLink()
Answer the last selected link. The link must still be selected. If the current selected link is unselected, the method would return the previous last selected link.

Returns:
null if no link is selected