currentIndex
protected int currentIndex
Holds the index of the current (editing) label or point.
currentLabel
protected int currentLabel
Holds the index of the current (editing) label or point.
currentPoint
protected Point2D currentPoint
edgeModified
protected boolean edgeModified
Indicates whether the edge has been modified during the last mouse
pressed and dragged operations.
editing
protected boolean editing
True if the cell is being edited.
extraLabelLocations
protected Rectangle2D[] extraLabelLocations
firstOverlayCall
protected boolean firstOverlayCall
initialLabelLocation
protected Point2D initialLabelLocation
Holds the initial location of the label.
isEdgeConnectable
protected boolean isEdgeConnectable
label
protected boolean label
loc
protected Rectangle2D loc
r
protected Rectangle2D[] r
relevantEdge
protected EdgeView relevantEdge
source
protected boolean source
target
protected boolean target
getRelativeLabelPosition
protected Point2D getRelativeLabelPosition(EdgeView edge,
Point2D p)
invalidate
protected void invalidate()
isAddPointEvent
public boolean isAddPointEvent(MouseEvent event)
Returning true signifies a mouse event adds a new point to an edge.
isConstrainedMoveEvent
public boolean isConstrainedMoveEvent(MouseEvent e)
isEditing
protected boolean isEditing()
isRemovePointEvent
public boolean isRemovePointEvent(MouseEvent event)
Returning true signifies a mouse event removes a given point.
isSourceEditing
protected boolean isSourceEditing()
isTargetEditing
protected boolean isTargetEditing()
mouseMoved
public void mouseMoved(MouseEvent event)
Invoked when the mouse pointer has been moved on a component (with no
buttons down).
- mouseMoved in interface CellHandle
paintPort
protected void paintPort(Graphics g,
CellView p)
processNestedMap
protected void processNestedMap(Map nested,
boolean clone)
reloadPoints
protected void reloadPoints(EdgeView edge)
snap
protected boolean snap(boolean source,
Point2D point)