graphlab.graph.ui
Class GraphRectRegionSelect
java.lang.Object
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
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 |
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
GraphRectRegionSelect
public GraphRectRegionSelect(BlackBoard bb)
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()