com.gomjabbar.graph.swing
Class GraphSelectionModel

java.lang.Object
  |
  +--com.gomjabbar.graph.swing.GraphSelectionModel

public class GraphSelectionModel
extends java.lang.Object


Field Summary
static boolean MULTIPLE_SELECTION
           
static boolean SINGLE_SELECTION
           
 
Constructor Summary
GraphSelectionModel(JGraphContainer parent, boolean multiple_selection)
           
 
Method Summary
 void addGraphListener(GraphListener gl)
           
 boolean allowsMultipleSelection()
           
 JGraphContainer getParent()
           
 java.lang.Object[] getSelectedItems()
           
 boolean isSelected(java.lang.Object item)
           
 void removeGraphListener(GraphListener gl)
           
protected  void setParent(JGraphContainer parent)
           
 void setSelected(java.lang.Object[] items, boolean selected)
           
 void setSelected(java.lang.Object item, boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_SELECTION

public static final boolean SINGLE_SELECTION

MULTIPLE_SELECTION

public static final boolean MULTIPLE_SELECTION
Constructor Detail

GraphSelectionModel

public GraphSelectionModel(JGraphContainer parent,
                           boolean multiple_selection)
Method Detail

allowsMultipleSelection

public boolean allowsMultipleSelection()

setParent

protected void setParent(JGraphContainer parent)

getParent

public JGraphContainer getParent()

addGraphListener

public void addGraphListener(GraphListener gl)

removeGraphListener

public void removeGraphListener(GraphListener gl)

setSelected

public void setSelected(java.lang.Object item,
                        boolean selected)

setSelected

public void setSelected(java.lang.Object[] items,
                        boolean selected)

getSelectedItems

public java.lang.Object[] getSelectedItems()

isSelected

public boolean isSelected(java.lang.Object item)