org.rosuda.klimt
Class NodeMarker

java.lang.Object
  extended by org.rosuda.ibase.Notifier
      extended by org.rosuda.klimt.NodeMarker

public class NodeMarker
extends Notifier

NodeMarker - marker specific for nodes. currently it supports selection of a single node


Field Summary
protected  SNode currentNode
          currently selected node or null if none
static int NM_Change
          event sent on change
 
Constructor Summary
NodeMarker()
           
 
Method Summary
 SNode getNode()
          retrieve currently selected node
 void setNode(SNode n)
          change currently selected node (and notify dependent objects if real change occured)
 
Methods inherited from class org.rosuda.ibase.Notifier
addDepend, beginBatch, delDepend, endBatch, NotifyAll, NotifyAll, NotifyAll, NotifyAll, startCascadedNotifyAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NM_Change

public static final int NM_Change
event sent on change

See Also:
Constant Field Values

currentNode

protected SNode currentNode
currently selected node or null if none

Constructor Detail

NodeMarker

public NodeMarker()
Method Detail

getNode

public SNode getNode()
retrieve currently selected node


setNode

public void setNode(SNode n)
change currently selected node (and notify dependent objects if real change occured)

Parameters:
n - new node or null if no node should be selected