|
JGraph |
|||||||||
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 Point2D |
currentPoint
|
protected Rectangle2D |
marqueeBounds
|
protected Cursor |
previousCursor
|
protected Point2D |
startPoint
|
Constructor Summary | |
---|---|
BasicMarqueeHandler()
|
Method Summary | |
---|---|
Point2D |
getCurrentPoint()
Returns the currentPoint. |
Rectangle2D |
getMarqueeBounds()
Returns the marqueeBounds. |
Cursor |
getPreviousCursor()
Returns the previousCursor. |
Point2D |
getStartPoint()
Returns the startPoint. |
void |
handleMarqueeEvent(MouseEvent e,
JGraph graph,
Rectangle2D bounds)
Hook for subclassers. |
boolean |
isForceMarqueeEvent(MouseEvent event)
|
boolean |
isMarqueeTriggerEvent(MouseEvent e,
JGraph graph)
Hook for subclassers. |
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. |
void |
overlay(Graphics g)
|
void |
paint(Graphics g)
Called after the component was repainted (ie. after autoscroll). |
void |
setCurrentPoint(Point2D currentPoint)
Sets the currentPoint. |
void |
setMarqueeBounds(Rectangle2D marqueeBounds)
Sets the marqueeBounds. |
void |
setPreviousCursor(Cursor previousCursor)
Sets the previousCursor. |
void |
setStartPoint(Point2D 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 Rectangle2D marqueeBounds
protected Point2D startPoint
protected Point2D currentPoint
Constructor Detail |
---|
public BasicMarqueeHandler()
Method Detail |
---|
public boolean isForceMarqueeEvent(MouseEvent event)
public void mouseReleased(MouseEvent e)
public void handleMarqueeEvent(MouseEvent e, JGraph graph, Rectangle2D bounds)
public void mouseDragged(MouseEvent e)
public void paint(Graphics g)
public void overlay(Graphics g)
public void mousePressed(MouseEvent e)
public boolean isMarqueeTriggerEvent(MouseEvent e, JGraph graph)
public void mouseMoved(MouseEvent e)
public Point2D getCurrentPoint()
public Rectangle2D getMarqueeBounds()
public Cursor getPreviousCursor()
public Point2D getStartPoint()
public void setCurrentPoint(Point2D currentPoint)
currentPoint
- The currentPoint to setpublic void setMarqueeBounds(Rectangle2D marqueeBounds)
marqueeBounds
- The marqueeBounds to setpublic void setPreviousCursor(Cursor previousCursor)
previousCursor
- The previousCursor to setpublic void setStartPoint(Point2D startPoint)
startPoint
- The startPoint to set
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |