Inheritance diagram for org.jgraph.graph.BasicMarqueeHandler:
Public Member Functions | |
boolean | isForceMarqueeEvent (MouseEvent event) |
void | mouseReleased (MouseEvent e) |
void | handleMarqueeEvent (MouseEvent e, JGraph graph, Rectangle2D bounds) |
void | mouseDragged (MouseEvent e) |
void | paint (JGraph graph, Graphics g) |
void | overlay (JGraph graph, Graphics g, boolean clear) |
void | mousePressed (MouseEvent e) |
boolean | isMarqueeTriggerEvent (MouseEvent e, JGraph graph) |
void | mouseMoved (MouseEvent e) |
Point2D | getCurrentPoint () |
Rectangle2D | getMarqueeBounds () |
Cursor | getPreviousCursor () |
Point2D | getStartPoint () |
void | setCurrentPoint (Point2D currentPoint) |
void | setMarqueeBounds (Rectangle2D marqueeBounds) |
void | setPreviousCursor (Cursor previousCursor) |
void | setStartPoint (Point2D startPoint) |
Static Public Member Functions | |
static JGraph | getGraphForEvent (MouseEvent event) |
Protected Member Functions | |
void | processMouseDraggedEvent (MouseEvent e) |
Protected Attributes | |
transient Cursor | previousCursor = null |
Rectangle2D | marqueeBounds |
Point2D | startPoint |
Point2D | currentPoint |
|
Returns the currentPoint.
|
|
|
|
Returns the marqueeBounds.
|
|
Returns the previousCursor.
|
|
Returns the startPoint.
|
|
Hook for subclassers. Current implementation checks if graph selection is enabled. This is called from mouseReleased to execute the marquee selection. |
|
Reimplemented in manas.event.MyMarqueeHandler. |
|
Hook for subclassers. Current implementation checks if graph selection is enabled. This is called from mousePressed before initiating the marquee selection. |
|
Includes the specified startPoint in the marquee selection. Calls overlay. Reimplemented in manas.event.MyMarqueeHandler. |
|
Empty. Reimplemented in manas.event.MyMarqueeHandler. |
|
Start the marquee at the specified startPoint. This invokes expandMarqueeToPoint to initialize marquee selection. |
|
Stops the current marquee selection. Reimplemented in manas.event.MyMarqueeHandler. |
|
Draw the current state of the handler. This is called twice by the overlay method and also by the paint method. The caller's intention is that the overlay method draws exactly the current state of the handler so that it may be used for XOR paint. The drag method calls overlay, changes the state, and calls overlay again to use this. However, since it is not always possible to clear the screen with an exact repaint the caller passes a flag to indicate if the graphics object should be cleared with this call (eg. if a subsequent call follows).
|
|
Called after the component was repainted (after autoscroll). This is used to indicate that the graphics is no more dirty. |
|
Called from mouse dragged to update the marquee state during a repaint. |
|
Sets the currentPoint.
|
|
Sets the marqueeBounds.
|
|
Sets the previousCursor.
|
|
Sets the startPoint.
|
|
|
|
|
|
|
|
|