|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.EdgeView.EdgeHandle
public class EdgeView.EdgeHandle
Field Summary | |
---|---|
protected Point |
currentPoint
|
protected EdgeView |
edge
|
protected boolean |
firstOverlayCall
|
protected JGraph |
graph
|
protected boolean |
isEdgeConnectable
|
protected boolean |
label
|
protected Rectangle |
loc
|
protected EdgeView |
orig
|
protected Rectangle[] |
r
|
protected EdgeView |
relevantEdge
|
protected boolean |
source
|
protected boolean |
target
|
Constructor Summary | |
---|---|
EdgeView.EdgeHandle(EdgeView edge,
GraphContext ctx)
|
Method Summary | |
---|---|
protected ConnectionSet |
createConnectionSet(EdgeView view,
Object edge,
boolean verbose)
|
protected void |
invalidate()
|
protected boolean |
isEditing()
|
protected boolean |
isSourceEditing()
|
protected boolean |
isTargetEditing()
|
void |
mouseDragged(MouseEvent event)
Messagedwhen the user drags the selection. |
void |
mouseMoved(MouseEvent event)
Invoked when the mouse pointer has been moved on a component (with no buttons down). |
void |
mousePressed(MouseEvent event)
Messaged when a drag gesture is recogniced. |
void |
mouseReleased(MouseEvent e)
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. |
protected void |
paintPort(Graphics g,
CellView p)
|
protected void |
reloadPoints(EdgeView edge)
|
protected boolean |
snap(boolean source,
Point point)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JGraph graph
protected EdgeView edge
protected EdgeView orig
protected boolean label
protected boolean source
protected boolean target
protected Point currentPoint
protected transient Rectangle[] r
protected transient 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(Graphics g)
CellHandle
paint
in interface CellHandle
g
- the graphics object to paint the handle onpublic void overlay(Graphics g)
CellHandle
overlay
in interface CellHandle
g
- the graphics object to paint the handle onprotected void paintPort(Graphics g, CellView p)
protected boolean snap(boolean source, Point point)
protected boolean isSourceEditing()
protected boolean isTargetEditing()
protected boolean isEditing()
public void mouseMoved(MouseEvent event)
mouseMoved
in interface CellHandle
event
- the point for which the cursor is returnedpublic void mousePressed(MouseEvent event)
CellHandle
mousePressed
in interface CellHandle
event
- the drag gesture event to be processedpublic void mouseDragged(MouseEvent event)
CellHandle
mouseDragged
in interface CellHandle
event
- the drag event to be processedpublic void mouseReleased(MouseEvent e)
CellHandle
mouseReleased
in interface CellHandle
e
- the drop event to be processedprotected ConnectionSet createConnectionSet(EdgeView view, Object edge, boolean verbose)
protected void invalidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |