| |
|
| com.jgraph.pad.graph.JGraphpadMarqueeHandler
JGraphpadMarqueeHandler | public class JGraphpadMarqueeHandler extends BasicMarqueeHandler (Code) | | Marquee handler that implements popup menus and folding (by icon). This
implements the event processing order for all graphs in the following way:
- If a folding icon is under the mouse pointer all processing is blocked
until the mouse is released. On release, the group's collapsed state is
toggled and the group is selected.
- If the right mouse button is used without holding down the shift key
then a popup menu is displayed. If there is a cell under the mouse pointer
which is not selected, then the cell is selected on mouse down. If the mouse
is right-clicked on the background then the selection is cleared before the
popup is displayed.
|
NODENAME_CELLPOPUPMENU | public static String NODENAME_CELLPOPUPMENU(Code) | | Defines the nodename used to configure the cellpopupmenu.
|
NODENAME_GRAPHPOPUPMENU | public static String NODENAME_GRAPHPOPUPMENU(Code) | | Defines the nodename used to configure the graphpopupmenu.
|
editor | protected JGraphEditor editor(Code) | | References the enclosing editor. The editor is used to configure and
create the popup menus.
|
groupView | protected CellView groupView(Code) | | Holds the group view if the interaction started on a folding icon.
|
JGraphpadMarqueeHandler | public JGraphpadMarqueeHandler(JGraphEditor editor)(Code) | | Constructs a new editor using the specified editor to configure and
create popup menus.
Parameters: editor - The enclosing editor. |
getGroupByFoldingHandle | protected CellView getGroupByFoldingHandle(JGraph graph, Point2D pt)(Code) | | Returns the cell view at the specified location if the location is over
the cell view's folding icon.
Parameters: graph - The graph to get the cell views from. Parameters: pt - The location to check for a folding icon. Returns the topmost cell view who's folding icon is under themouse pointer. |
isForceMarqueeEvent | public boolean isForceMarqueeEvent(MouseEvent event)(Code) | | Extends the parent's implementation to implement the event processing
order.
Parameters: event - The object that describes the event. |
mousePressed | public void mousePressed(MouseEvent event)(Code) | | 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.
Parameters: event - The object that describes the event. |
|
|
|