|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.graph.EdgeView.EdgeHandle
Field Summary | |
protected EdgeView |
edge
|
protected boolean |
firstOverlayCall
|
protected JGraph |
graph
|
protected int |
index
|
protected boolean |
isEdgeConnectable
|
protected static int |
LABEL_INDEX
|
protected java.awt.Rectangle |
loc
|
protected static int |
NO_INDEX
|
protected java.awt.Rectangle[] |
r
|
protected EdgeView |
relevantEdge
|
Constructor Summary | |
EdgeView.EdgeHandle(EdgeView edge,
GraphContext ctx)
|
Method Summary | |
protected void |
invalidate()
|
protected boolean |
isSourceEditing()
|
protected boolean |
isTargetEditing()
|
void |
mouseDragged(java.awt.event.MouseEvent event)
Messagedwhen the user drags the selection. |
void |
mouseMoved(java.awt.event.MouseEvent event)
Invoked when the mouse pointer has been moved on a component (with no buttons down). |
void |
mousePressed(java.awt.event.MouseEvent event)
Messaged when a drag gesture is recogniced. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Messaged when the drag operation has terminated with a drop. |
void |
overlay(java.awt.Graphics g)
Paint the handle on the given graphics object during mouse operations. |
void |
paint(java.awt.Graphics g)
Paint the handle on the given graphics object once. |
protected void |
paintPort(java.awt.Graphics g,
PortView p)
|
protected void |
reloadPoints(EdgeView edge)
|
protected boolean |
snap(boolean source,
java.awt.Point point)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final transient int NO_INDEX
protected static final transient int LABEL_INDEX
protected JGraph graph
protected EdgeView edge
protected transient int index
protected transient java.awt.Rectangle[] r
protected transient java.awt.Rectangle loc
protected boolean firstOverlayCall
protected boolean isEdgeConnectable
protected EdgeView relevantEdge
Constructor Detail |
public EdgeView.EdgeHandle(EdgeView edge, GraphContext ctx)
Method Detail |
protected void reloadPoints(EdgeView edge)
public void paint(java.awt.Graphics g)
CellHandle
paint
in interface CellHandle
g
- the graphics object to paint the handle onpublic void overlay(java.awt.Graphics g)
CellHandle
overlay
in interface CellHandle
g
- the graphics object to paint the handle onprotected void paintPort(java.awt.Graphics g, PortView p)
protected boolean isSourceEditing()
protected boolean snap(boolean source, java.awt.Point point)
protected boolean isTargetEditing()
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface CellHandle
public void mousePressed(java.awt.event.MouseEvent event)
CellHandle
mousePressed
in interface CellHandle
public void mouseDragged(java.awt.event.MouseEvent event)
CellHandle
mouseDragged
in interface CellHandle
event
- the drag event to be processedpublic void mouseReleased(java.awt.event.MouseEvent e)
CellHandle
mouseReleased
in interface CellHandle
protected void invalidate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |