|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.graph.BasicMarqueeHandler
A simple implementation of a marquee handler for JGraph.
Field Summary | |
protected java.awt.Point |
currentPoint
|
protected java.awt.Rectangle |
lastVisibleRect
|
protected java.awt.Rectangle |
marqueeBounds
|
protected java.awt.Cursor |
previousCursor
|
protected java.awt.Point |
startPoint
|
Constructor Summary | |
BasicMarqueeHandler()
|
Method Summary | |
boolean |
isForceMarqueeEvent(java.awt.event.MouseEvent event)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Includes the specified startPoint in the marquee selection. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Empty. |
void |
mousePressed(java.awt.event.MouseEvent e)
Start the marquee at the specified startPoint. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Stops the current marquee selection. |
protected void |
overlay(java.awt.Graphics g)
|
void |
paint(java.awt.Graphics g)
Called after the component was repainted (ie. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.awt.Cursor previousCursor
protected java.awt.Rectangle marqueeBounds
protected java.awt.Rectangle lastVisibleRect
protected java.awt.Point startPoint
protected java.awt.Point currentPoint
Constructor Detail |
public BasicMarqueeHandler()
Method Detail |
public boolean isForceMarqueeEvent(java.awt.event.MouseEvent event)
public void mouseReleased(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void paint(java.awt.Graphics g)
protected void overlay(java.awt.Graphics g)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |