org.jgraph.graph
Class EdgeView.EdgeHandle
java.lang.Object
|
+--org.jgraph.graph.EdgeView.EdgeHandle
- All Implemented Interfaces:
- CellHandle, Serializable
- Enclosing class:
- EdgeView
- public class EdgeView.EdgeHandle
- extends Object
- implements CellHandle, Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
protected JGraph graph
edge
protected EdgeView edge
orig
protected EdgeView orig
label
protected boolean label
source
protected boolean source
target
protected boolean target
currentPoint
protected Point2D currentPoint
r
protected transient Rectangle2D[] r
loc
protected transient Rectangle2D loc
firstOverlayCall
protected boolean firstOverlayCall
isEdgeConnectable
protected boolean isEdgeConnectable
relevantEdge
protected EdgeView relevantEdge
EdgeView.EdgeHandle
public EdgeView.EdgeHandle(EdgeView edge,
GraphContext ctx)
reloadPoints
protected void reloadPoints(EdgeView edge)
paint
public void paint(Graphics g)
- Description copied from interface:
CellHandle
- Paint the handle on the given graphics object once.
- Specified by:
paint
in interface CellHandle
- Following copied from interface:
org.jgraph.graph.CellHandle
- Parameters:
g
- the graphics object to paint the handle on
overlay
public void overlay(Graphics g)
- Description copied from interface:
CellHandle
- Paint the handle on the given graphics object during mouse
operations.
- Specified by:
overlay
in interface CellHandle
- Following copied from interface:
org.jgraph.graph.CellHandle
- Parameters:
g
- the graphics object to paint the handle on
paintPort
protected void paintPort(Graphics g,
CellView p)
snap
protected boolean snap(boolean source,
Point2D point)
isSourceEditing
protected boolean isSourceEditing()
isTargetEditing
protected boolean isTargetEditing()
isEditing
protected boolean isEditing()
mouseMoved
public void mouseMoved(MouseEvent event)
- Invoked when the mouse pointer has been moved on a component
(with no buttons down).
- Specified by:
mouseMoved
in interface CellHandle
- Following copied from interface:
org.jgraph.graph.CellHandle
- Parameters:
p
- the point for which the cursor is returned
mousePressed
public void mousePressed(MouseEvent event)
- Description copied from interface:
CellHandle
- Messaged when a drag gesture is recogniced.
- Specified by:
mousePressed
in interface CellHandle
- Following copied from interface:
org.jgraph.graph.CellHandle
- Parameters:
e
- the drag gesture event to be processed
mouseDragged
public void mouseDragged(MouseEvent event)
- Description copied from interface:
CellHandle
- Messagedwhen the user drags the selection.
The Controller is responsible to determine whether the mouse is
inside the parent graph or not.
- Specified by:
mouseDragged
in interface CellHandle
- Following copied from interface:
org.jgraph.graph.CellHandle
- Parameters:
e
- the drag event to be processed
mouseReleased
public void mouseReleased(MouseEvent e)
- Description copied from interface:
CellHandle
- Messaged when the drag operation has
terminated with a drop.
- Specified by:
mouseReleased
in interface CellHandle
- Following copied from interface:
org.jgraph.graph.CellHandle
- Parameters:
e
- the drop event to be processed
createConnectionSet
protected ConnectionSet createConnectionSet(EdgeView view,
Object edge,
boolean verbose)
invalidate
protected void invalidate()
Copyright (C) 2001-2004 JGraph.org. All rights reserved.