|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.EdgeView.EdgeHandle
public static class EdgeView.EdgeHandle
Field Summary | |
---|---|
protected int |
currentIndex
Holds the index of the current (editing) label or point. |
protected int |
currentLabel
Holds the index of the current (editing) label or point. |
protected Point2D |
currentPoint
|
protected EdgeView |
edge
|
protected Rectangle2D[] |
extraLabelLocations
|
protected boolean |
firstOverlayCall
|
protected JGraph |
graph
|
protected boolean |
isEdgeConnectable
|
protected boolean |
label
|
protected Rectangle2D |
loc
|
protected EdgeView |
orig
|
protected Rectangle2D[] |
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()
|
boolean |
isAddPointEvent(MouseEvent event)
Returning true signifies a mouse event adds a new point to an edge. |
boolean |
isConstrainedMoveEvent(MouseEvent e)
|
protected boolean |
isEditing()
|
boolean |
isRemovePointEvent(MouseEvent event)
Returning true signifies a mouse event removes a given point. |
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,
Point2D 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 int currentLabel
protected int currentIndex
protected Point2D currentPoint
protected transient Rectangle2D[] r
protected transient Rectangle2D loc
protected transient Rectangle2D[] extraLabelLocations
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, Point2D point)
public boolean isConstrainedMoveEvent(MouseEvent e)
public boolean isAddPointEvent(MouseEvent event)
public boolean isRemovePointEvent(MouseEvent event)
protected boolean isSourceEditing()
protected boolean isTargetEditing()
protected boolean isEditing()
public void mouseMoved(MouseEvent event)
mouseMoved
in interface CellHandle
public void mousePressed(MouseEvent event)
CellHandle
mousePressed
in interface CellHandle
public 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
protected ConnectionSet createConnectionSet(EdgeView view, Object edge, boolean verbose)
protected void invalidate()
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |