GraphLab Project

graphlab.plugins.main.select
Class ClearSelection

java.lang.Object
  extended by graphlab.platform.core.AbstractAction
      extended by graphlab.plugins.main.select.ClearSelection
All Implemented Interfaces:
Action, Listener

public class ClearSelection
extends AbstractAction

Author:
Azin Azadi

Field Summary
static java.lang.String lastTimeGraphWasClear
          indicates that wheter the last time GraphSelectPointData fired, it was originally cleared or not (it was cleared by this object) the initially use was for AddVertex, because it only adds vertices on graphselectpoints and if the selection was empty, so AddVertex and ClearSelection are both listening to GraphSelectPoint, so if ClearSelection fired before AddVertex it clears the selection and then AddVertex adds the Vertex but it shouldn't do that, because at the click time the selection wasn'nt clear and it is a mistake (bug) from users point of view,....
 
Fields inherited from class graphlab.platform.core.AbstractAction
blackboard
 
Constructor Summary
ClearSelection(BlackBoard bb)
          constructor
 
Method Summary
static void clearSelected(BlackBoard bb)
           
 void performAction(java.lang.String eventName, java.lang.Object value)
          like Action
 
Methods inherited from class graphlab.platform.core.AbstractAction
disable, enable, getBlackBoard, getLastListenedEventKey, isEnable, keyChanged, listen4Event, setBlackBoard, unListenEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastTimeGraphWasClear

public static final java.lang.String lastTimeGraphWasClear
indicates that wheter the last time GraphSelectPointData fired, it was originally cleared or not (it was cleared by this object) the initially use was for AddVertex, because it only adds vertices on graphselectpoints and if the selection was empty, so AddVertex and ClearSelection are both listening to GraphSelectPoint, so if ClearSelection fired before AddVertex it clears the selection and then AddVertex adds the Vertex but it shouldn't do that, because at the click time the selection wasn'nt clear and it is a mistake (bug) from users point of view,....

See Also:
Constant Field Values
Constructor Detail

ClearSelection

public ClearSelection(BlackBoard bb)
constructor

Parameters:
bb - the blackboard of the action
Method Detail

performAction

public void performAction(java.lang.String eventName,
                          java.lang.Object value)
Description copied from class: AbstractAction
like Action

Specified by:
performAction in interface Action
Specified by:
performAction in class AbstractAction

clearSelected

public static void clearSelected(BlackBoard bb)

GraphLab Project