GraphLab Project

graphlab.graph.ui
Class GraphRectRegionSelect

java.lang.Object
  extended by graphlab.graph.ui.GraphRectRegionSelect
All Implemented Interfaces:
PaintHandler<AbstractGraphRenderer>, Listener

public abstract class GraphRectRegionSelect
extends java.lang.Object
implements Listener, PaintHandler<AbstractGraphRenderer>

Author:
azin azadi

Field Summary
protected  AbstractGraphRenderer gv
           
static boolean isSelecting
           
protected  java.awt.Rectangle rect
           
protected  int x
           
protected  int xx
           
protected  int y
           
protected  int yy
           
 
Constructor Summary
GraphRectRegionSelect(BlackBoard bb)
           
 
Method Summary
 java.awt.Rectangle getCurrentRect()
           
 boolean isEnable()
           
 void keyChanged(java.lang.String eventKey, java.lang.Object value)
          Event occured, Go and call the listeners to do the Job
abstract  void onDrop(GraphEvent data)
           
abstract  void onMouseMoved(GraphEvent data)
           
 void paint(java.awt.Graphics g, java.lang.Object destinationComponent, java.lang.Boolean drawExtras)
           
 void startSelectingRegion()
          starts the process of selecting a0 rectangular region by the user on the graph this will listen for press the mouse button and drag it on the graph this will finished whenever the mouse released
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rect

protected java.awt.Rectangle rect

x

protected int x

y

protected int y

gv

protected AbstractGraphRenderer gv

xx

protected int xx

yy

protected int yy

isSelecting

public static boolean isSelecting
Constructor Detail

GraphRectRegionSelect

public GraphRectRegionSelect(BlackBoard bb)
Method Detail

getCurrentRect

public java.awt.Rectangle getCurrentRect()

startSelectingRegion

public void startSelectingRegion()
starts the process of selecting a0 rectangular region by the user on the graph this will listen for press the mouse button and drag it on the graph this will finished whenever the mouse released


keyChanged

public void keyChanged(java.lang.String eventKey,
                       java.lang.Object value)
Description copied from interface: Listener
Event occured, Go and call the listeners to do the Job

Specified by:
keyChanged in interface Listener

onMouseMoved

public abstract void onMouseMoved(GraphEvent data)

onDrop

public abstract void onDrop(GraphEvent data)

paint

public void paint(java.awt.Graphics g,
                  java.lang.Object destinationComponent,
                  java.lang.Boolean drawExtras)
Specified by:
paint in interface PaintHandler<AbstractGraphRenderer>

isEnable

public boolean isEnable()

GraphLab Project