public class ConnectionStartHandle extends AbstractConnectionHandle
Handle
which allows to connect the start of a
ConnectionFigure
to another figure.connectors
listenerList, view
Constructor and Description |
---|
ConnectionStartHandle(ConnectionFigure owner)
Constructs the connection handle for the given start figure.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canConnect(Connector existingEnd,
Connector targetEnd) |
protected void |
connect(Connector c)
Sets the start of the connection.
|
protected void |
disconnect()
Disconnects the start figure.
|
protected int |
getBezierNodeIndex() |
protected java.awt.geom.Point2D.Double |
getLocation()
Returns the start point of the connection.
|
protected Connector |
getTarget()
Returns the connector of the change.
|
protected void |
setLocation(java.awt.geom.Point2D.Double p)
Sets the start point of the connection.
|
basicGetBounds, createSecondaryHandles, draw, findConnector, getBezierFigure, getBezierNode, getOwner, getSource, getToolTipText, isCombinableWith, repaintConnectors, setPotentialTarget, trackEnd, trackStart, trackStep
addHandleListener, areaInvalidated, attributeChanged, contains, dispose, drawCircle, drawDiamond, drawRectangle, figureAdded, figureChanged, figureHandlesChanged, figureRemoved, figureRequestRemove, fireAreaInvalidated, fireHandleRequestRemove, fireHandleRequestSecondaryHandles, fireUndoableEditHappened, getBounds, getCursor, getDrawingArea, getEditor, getHandlesize, getView, invalidate, keyPressed, keyReleased, keyTyped, removeHandleListener, setToolTipText, setView, trackDoubleClick, updateBounds, viewTransformChanged
public ConnectionStartHandle(ConnectionFigure owner)
protected void connect(Connector c)
connect
in class AbstractConnectionHandle
protected void disconnect()
disconnect
in class AbstractConnectionHandle
protected Connector getTarget()
AbstractConnectionHandle
getTarget
in class AbstractConnectionHandle
protected void setLocation(java.awt.geom.Point2D.Double p)
setLocation
in class AbstractConnectionHandle
protected java.awt.geom.Point2D.Double getLocation()
getLocation
in class AbstractConnectionHandle
protected boolean canConnect(Connector existingEnd, Connector targetEnd)
canConnect
in class AbstractConnectionHandle
protected int getBezierNodeIndex()
getBezierNodeIndex
in class AbstractConnectionHandle