|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jgraph.graph.BasicMarqueeHandler
com.jgraph.editor.factory.JGraphEditorToolbox.MarqueeRedirector
A class that redirects marquee events to the marquee handler it replaces
or to the selection tool of the enclosing toolbox depending on the return
value of BasicMarqueeHandler.isForceMarqueeEvent(MouseEvent) of
the JGraphEditorToolbox.previousMarqueeHandler.
| Field Summary | |
protected boolean |
redirect
Indicates whether the initial isForceMarqueeEvent returned true. |
| Fields inherited from class org.jgraph.graph.BasicMarqueeHandler |
currentPoint, marqueeBounds, previousCursor, startPoint |
| Constructor Summary | |
JGraphEditorToolbox.MarqueeRedirector()
|
|
| Method Summary | |
boolean |
isForceMarqueeEvent(MouseEvent event)
Returns true if the tool wants to take control of an interaction, ie. |
void |
mouseDragged(MouseEvent event)
Overrides the basic marquee handler by redirecting to the previous marquee handler or selection tool's mouseDragged method. |
void |
mouseMoved(MouseEvent event)
Overrides the basic marquee handler to display the selection tool cursor and redirect to the selection tool. |
void |
mousePressed(MouseEvent event)
Overrides the basic marquee handler by redirecting to the previous marquee handler or selection tool's mousePressed method. |
void |
mouseReleased(MouseEvent event)
Overrides the basic marquee handler by redirecting to the previous marquee handler or selection tool's mouseReleased method. |
void |
overlay(org.jgraph.JGraph graph,
Graphics g,
boolean clear)
Overrides the overlay method to redirect to the selection tool. |
void |
paint(org.jgraph.JGraph graph,
Graphics g)
Overrides the paint method to redirect to the selection tool. |
| Methods inherited from class org.jgraph.graph.BasicMarqueeHandler |
getCurrentPoint, getGraphForEvent, getMarqueeBounds, getPreviousCursor, getStartPoint, handleMarqueeEvent, isMarqueeTriggerEvent, processMouseDraggedEvent, setCurrentPoint, setMarqueeBounds, setPreviousCursor, setStartPoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean redirect
| Constructor Detail |
public JGraphEditorToolbox.MarqueeRedirector()
| Method Detail |
public boolean isForceMarqueeEvent(MouseEvent event)
event - The object that describes the event.
public void mousePressed(MouseEvent event)
event - The object that describes the event.public void mouseDragged(MouseEvent event)
event - The object that describes the event.public void mouseReleased(MouseEvent event)
event - The object that describes the event.public void mouseMoved(MouseEvent event)
event - The object that describes the event.
public void paint(org.jgraph.JGraph graph,
Graphics g)
graph - The graph to perform the preview in.g - The graphics object to be used for painting.
public void overlay(org.jgraph.JGraph graph,
Graphics g,
boolean clear)
graph - The graph to perform the preview in.g - The graphics object to be used for painting.clear - Specifies if the canvas should be cleared.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||