Package org.jgraph.graph
Interface CellHandle
-
- All Known Implementing Classes:
BasicGraphUI.RootHandle,EdgeView.EdgeHandle,VertexView.SizeHandle
public interface CellHandleDefines the requirements for objects that may be used as handles. Handles are used to interactively manipulate a cell's appearance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmouseDragged(java.awt.event.MouseEvent event)Messaged when the user drags the selection.voidmouseMoved(java.awt.event.MouseEvent event)Messaged when the mouse is moved.voidmousePressed(java.awt.event.MouseEvent event)Messaged when a mouse button is pressed.voidmouseReleased(java.awt.event.MouseEvent event)Messaged when the drag operation has terminated with a drop.voidoverlay(java.awt.Graphics g)Paint the handle on the given graphics object during mouse operations.voidpaint(java.awt.Graphics g)Paint the handle on the given graphics object once.
-
-
-
Method Detail
-
paint
void paint(java.awt.Graphics g)
Paint the handle on the given graphics object once.- Parameters:
g- the graphics object to paint the handle on
-
overlay
void overlay(java.awt.Graphics g)
Paint the handle on the given graphics object during mouse operations.- Parameters:
g- the graphics object to paint the handle on
-
mouseMoved
void mouseMoved(java.awt.event.MouseEvent event)
Messaged when the mouse is moved.- Parameters:
event- the mouse event to be processed
-
mousePressed
void mousePressed(java.awt.event.MouseEvent event)
Messaged when a mouse button is pressed.- Parameters:
event- the mouse event to be processed
-
mouseDragged
void mouseDragged(java.awt.event.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.- Parameters:
event- the drag event to be processed
-
mouseReleased
void mouseReleased(java.awt.event.MouseEvent event)
Messaged when the drag operation has terminated with a drop.- Parameters:
event- the drop event to be processed
-
-