graphlab.gui.core.graph
Class GraphRectRegionSelect

java.lang.Object
  extended by graphlab.gui.core.graph.GraphRectRegionSelect
All Implemented Interfaces:
PaintHandler<GraphView>, Notifiable

public abstract class GraphRectRegionSelect
extends java.lang.Object
implements Notifiable, PaintHandler<GraphView>

Author:
azin azadi

Constructor Summary
GraphRectRegionSelect(BlackBoard bb)
           
 
Method Summary
 void doJob(java.lang.String name)
          the event ocurred, i notify you to do your job!
 java.awt.Rectangle getCurrentRect()
           
 boolean isEnable()
           
abstract  void onDrop(GraphDropData data)
           
abstract  void onMouseMoved(GraphMouseMoveData data)
           
 void paint(java.awt.Graphics g, GraphView destinationComponent)
           
 void startSelectingRegion()
          starts the process of selecting a 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphRectRegionSelect

public GraphRectRegionSelect(BlackBoard bb)
Method Detail

getCurrentRect

public java.awt.Rectangle getCurrentRect()

startSelectingRegion

public void startSelectingRegion()
starts the process of selecting a 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


doJob

public void doJob(java.lang.String name)
Description copied from interface: Notifiable
the event ocurred, i notify you to do your job!

Specified by:
doJob in interface Notifiable

onMouseMoved

public abstract void onMouseMoved(GraphMouseMoveData data)

onDrop

public abstract void onDrop(GraphDropData data)

paint

public void paint(java.awt.Graphics g,
                  GraphView destinationComponent)
Specified by:
paint in interface PaintHandler<GraphView>

isEnable

public boolean isEnable()
Specified by:
isEnable in interface Notifiable