|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.beans.graph.DefaultGraphSelectionModel
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
linkSelectionAllowed
|
private EventListenerList |
listenerList
|
private boolean |
multiSelectionAllowed
|
private boolean |
nodeSelectionAllowed
|
private static String |
RESOURCE
|
private Vector |
selectedLinks
|
private Vector |
selectedNodes
|
private static String |
versionID
|
Constructor Summary | |
DefaultGraphSelectionModel()
|
Method Summary | |
void |
add(GraphLink pSelectedLink)
|
void |
add(GraphNode pSelectedNode)
|
void |
addGraphSelectionModelListener(GraphSelectionModelListener listener)
|
Enumeration |
allSelectedLinks()
|
Enumeration |
allSelectedNodes()
|
void |
clearSelection()
|
void |
fireGraphSelectionModelChanged(int change,
GraphSelectionModel source,
GraphNode pNode,
GraphLink pLink)
|
GraphLink |
getLastSelectedLink()
Answer the last selected link. |
GraphNode |
getLastSelectedNode()
Answer the last selected node. |
int |
getLinksSelectedCount()
|
int |
getNodesSelectedCount()
|
Vector |
getSelectedLinks()
Gets the object for the association that plays role: selectedLinks. |
Vector |
getSelectedNodes()
Gets the object for the association that plays role: selectedNodes. |
boolean |
isLinkSelectionAllowed()
Gets the value of the attribute: linkSelectionAllowed. |
boolean |
isMultiSelectionAllowed()
Gets the value of the attribute: multiSelectionAllowed. |
boolean |
isNodeSelectionAllowed()
Gets the value of the attribute: nodeSelectionAllowed. |
boolean |
isSelected(GraphLink pLink)
|
boolean |
isSelected(GraphNode pNode)
|
void |
remove(GraphLink pLink)
|
void |
remove(GraphNode pNode)
|
void |
removeGraphSelectionModelListener(GraphSelectionModelListener listener)
|
void |
setLinkSelectionAllowed(boolean a_LinkSelectionAllowed)
Sets the value of the attribute: linkSelectionAllowed. |
void |
setMultiSelectionAllowed(boolean a_MultiSelectionAllowed)
Sets the value of the attribute: multiSelectionAllowed. |
void |
setNodeSelectionAllowed(boolean a_NodeSelectionAllowed)
Sets the value of the attribute: nodeSelectionAllowed. |
void |
setSelectedLinks(Vector a_SelectedLinks)
Sets the object for the association that plays role: selectedLinks. |
void |
setSelectedNodes(Vector a_SelectedNodes)
Sets the object for the association that plays role: selectedNodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String versionID
private boolean nodeSelectionAllowed
private boolean linkSelectionAllowed
private boolean multiSelectionAllowed
private Vector selectedNodes
private Vector selectedLinks
private EventListenerList listenerList
Constructor Detail |
public DefaultGraphSelectionModel()
Method Detail |
public boolean isNodeSelectionAllowed()
public void setNodeSelectionAllowed(boolean a_NodeSelectionAllowed) throws WTPropertyVetoException
a_NodeSelectionAllowed
-
WTPropertyVetoException
public boolean isLinkSelectionAllowed()
public void setLinkSelectionAllowed(boolean a_LinkSelectionAllowed) throws WTPropertyVetoException
a_LinkSelectionAllowed
-
WTPropertyVetoException
public boolean isMultiSelectionAllowed()
public void setMultiSelectionAllowed(boolean a_MultiSelectionAllowed) throws WTPropertyVetoException
a_MultiSelectionAllowed
-
WTPropertyVetoException
public Vector getSelectedNodes()
public void setSelectedNodes(Vector a_SelectedNodes) throws WTPropertyVetoException
a_SelectedNodes
-
WTPropertyVetoException
public Vector getSelectedLinks()
public void setSelectedLinks(Vector a_SelectedLinks) throws WTPropertyVetoException
a_SelectedLinks
-
WTPropertyVetoException
public void fireGraphSelectionModelChanged(int change, GraphSelectionModel source, GraphNode pNode, GraphLink pLink)
change
- source
- pNode
- pLink
- public boolean isSelected(GraphNode pNode)
isSelected
in interface GraphSelectionModel
pNode
-
public boolean isSelected(GraphLink pLink)
isSelected
in interface GraphSelectionModel
pLink
-
public int getNodesSelectedCount()
getNodesSelectedCount
in interface GraphSelectionModel
public int getLinksSelectedCount()
getLinksSelectedCount
in interface GraphSelectionModel
public void clearSelection()
clearSelection
in interface GraphSelectionModel
public void add(GraphNode pSelectedNode)
add
in interface GraphSelectionModel
pSelectedNode
- public void remove(GraphNode pNode)
remove
in interface GraphSelectionModel
pNode
- public void add(GraphLink pSelectedLink)
add
in interface GraphSelectionModel
pSelectedLink
- public void remove(GraphLink pLink)
remove
in interface GraphSelectionModel
pLink
- public Enumeration allSelectedNodes()
allSelectedNodes
in interface GraphSelectionModel
public Enumeration allSelectedLinks()
allSelectedLinks
in interface GraphSelectionModel
public void addGraphSelectionModelListener(GraphSelectionModelListener listener)
addGraphSelectionModelListener
in interface GraphSelectionModel
listener
- public void removeGraphSelectionModelListener(GraphSelectionModelListener listener)
removeGraphSelectionModelListener
in interface GraphSelectionModel
listener
- public GraphNode getLastSelectedNode()
getLastSelectedNode
in interface GraphSelectionModel
public GraphLink getLastSelectedLink()
getLastSelectedLink
in interface GraphSelectionModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |