|
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.pad.graph.JGraphpadMarqueeHandler
Marquee handler that implements popup menus and folding (by icon). This implements the event processing order for all graphs in the following way:
| Field Summary | |
protected JGraphEditor |
editor
References the enclosing editor. |
protected org.jgraph.graph.CellView |
groupView
Holds the group view if the interaction started on a folding icon. |
static String |
NODENAME_CELLPOPUPMENU
Defines the nodename used to configure the cellpopupmenu. |
static String |
NODENAME_GRAPHPOPUPMENU
Defines the nodename used to configure the graphpopupmenu. |
| Fields inherited from class org.jgraph.graph.BasicMarqueeHandler |
currentPoint, marqueeBounds, previousCursor, startPoint |
| Constructor Summary | |
JGraphpadMarqueeHandler(JGraphEditor editor)
Constructs a new editor using the specified editor to configure and create popup menus. |
|
| Method Summary | |
protected org.jgraph.graph.CellView |
getGroupByFoldingHandle(org.jgraph.JGraph graph,
Point2D pt)
Returns the cell view at the specified location if the location is over the cell view's folding icon. |
protected Node |
getPopupMenuConfiguration(MouseEvent event)
Returns the popup menu configuration for the specified event. |
boolean |
isForceMarqueeEvent(MouseEvent event)
Extends the parent's implementation to implement the event processing order. |
void |
mousePressed(MouseEvent event)
Overrides the parent's implementation to either block processing if a group view is scheduled to be collapsed/expanded or immediately select the cell under the mouse pointer if it is not selected. |
void |
mouseReleased(MouseEvent e)
Overrides the parent's implementation to display a popup menu using getPopupMenuConfiguration(MouseEvent) to obtain the
configuration or toggle the collapsed state of groupView and
select the respective cell. |
| Methods inherited from class org.jgraph.graph.BasicMarqueeHandler |
getCurrentPoint, getGraphForEvent, getMarqueeBounds, getPreviousCursor, getStartPoint, handleMarqueeEvent, isMarqueeTriggerEvent, mouseDragged, mouseMoved, overlay, paint, 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 |
public static String NODENAME_GRAPHPOPUPMENU
public static String NODENAME_CELLPOPUPMENU
protected JGraphEditor editor
protected org.jgraph.graph.CellView groupView
| Constructor Detail |
public JGraphpadMarqueeHandler(JGraphEditor editor)
editor - The enclosing editor.| 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 mouseReleased(MouseEvent e)
getPopupMenuConfiguration(MouseEvent) to obtain the
configuration or toggle the collapsed state of groupView and
select the respective cell. The state of the handler is reset after event
processing.
e - The object that describes the event.protected Node getPopupMenuConfiguration(MouseEvent event)
NODENAME_CELLPOPUPMENU or NODENAME_GRAPHPOPUPMENU
configuration based on the selection state of the graph.
event - The event that triggered the display of the popup menu.
event.
protected org.jgraph.graph.CellView getGroupByFoldingHandle(org.jgraph.JGraph graph,
Point2D pt)
graph - The graph to get the cell views from.pt - The location to check for a folding icon.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||