GraphLab Project

graphlab.plugins.main.select
Class RectangularSelect

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

public class RectangularSelect
extends AbstractAction

Author:
azin azadi

Field Summary
 
Fields inherited from class graphlab.platform.core.AbstractAction
blackboard
 
Constructor Summary
RectangularSelect(BlackBoard bb)
          constructor
 
Method Summary
static SubGraph calculateSelected(GraphModel g, java.awt.Rectangle bounds)
           
static boolean isVertexInRect(VertexModel v, GraphModel g, java.awt.Rectangle viewBounds)
           
 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
 

Constructor Detail

RectangularSelect

public RectangularSelect(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

calculateSelected

public static SubGraph calculateSelected(GraphModel g,
                                         java.awt.Rectangle bounds)

isVertexInRect

public static boolean isVertexInRect(VertexModel v,
                                     GraphModel g,
                                     java.awt.Rectangle viewBounds)

GraphLab Project