org.jgraph.graph
public class BasicMarqueeHandler extends Object
Field Summary | |
---|---|
protected Point2D | currentPoint |
protected Rectangle2D | marqueeBounds |
protected Cursor | previousCursor |
protected Point2D | startPoint |
Method Summary | |
---|---|
Point2D | getCurrentPoint()
Returns the currentPoint.
|
static JGraph | getGraphForEvent(MouseEvent event) |
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(JGraph graph, Graphics g, boolean clear)
Draw the current state of the handler. |
void | paint(JGraph graph, Graphics g)
Called after the component was repainted (after autoscroll). |
protected void | processMouseDraggedEvent(MouseEvent e)
Called from mouse dragged to update the marquee state during a repaint. |
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.
|
Returns: Point
Returns: Returns the source of the event as a graph.
Returns: Rectangle
Returns: Cursor
Returns: Point
Parameters: g
Parameters: currentPoint The currentPoint to set
Parameters: marqueeBounds The marqueeBounds to set
Parameters: previousCursor The previousCursor to set
Parameters: startPoint The startPoint to set