org.jgraph.graph
Interface CellHandle
- BasicGraphUI.RootHandle, EdgeView.EdgeHandle, VertexView.SizeHandle
public interface CellHandle
Defines the requirements for objects that may be used as handles.
Handles are used to interactively manipulate a cell's appearance.
void | mouseDragged(MouseEvent event) - Messaged when the user drags the selection.
|
void | mouseMoved(MouseEvent event) - Messaged when the mouse is moved.
|
void | mousePressed(MouseEvent event) - Messaged when a mouse button is pressed.
|
void | mouseReleased(MouseEvent event) - Messaged when the drag operation has
terminated with a drop.
|
void | overlay(Graphics g) - Paint the handle on the given graphics object during mouse
operations.
|
void | paint(Graphics g) - Paint the handle on the given graphics object once.
|
mouseDragged
public void mouseDragged(MouseEvent event)
Messaged when the user drags the selection.
The Controller is responsible to determine whether the mouse is
inside the parent graph or not.
event
- the drag event to be processed
mouseMoved
public void mouseMoved(MouseEvent event)
Messaged when the mouse is moved.
event
- the mouse event to be processed
mousePressed
public void mousePressed(MouseEvent event)
Messaged when a mouse button is pressed.
event
- the mouse event to be processed
mouseReleased
public void mouseReleased(MouseEvent event)
Messaged when the drag operation has
terminated with a drop.
event
- the drop event to be processed
overlay
public void overlay(Graphics g)
Paint the handle on the given graphics object during mouse
operations.
g
- the graphics object to paint the handle on
paint
public void paint(Graphics g)
Paint the handle on the given graphics object once.
g
- the graphics object to paint the handle on
Copyright (C) 2001-2008 Gaudenz Alder. All rights reserved.