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