public abstract class IlvHyperEdgeConnectorWithCache extends IlvHyperEdgeConnector
IlvHyperEdge
,
IlvHyperEdgePinConnector
,
Serialized FormIlvHyperEdgeConnector.HyperEdgeConnectorProperty
IN_BACK, IN_FIXED_LAYER, IN_FRONT, IN_NODE_LAYER
Constructor and Description |
---|
IlvHyperEdgeConnectorWithCache()
Creates an empty
IlvHyperEdgeConnectorWithCache . |
IlvHyperEdgeConnectorWithCache(IlvGraphic obj)
Creates an
IlvHyperEdgeConnectorWithCache attached to the
input object, which can be a node or a hyperedge. |
IlvHyperEdgeConnectorWithCache(IlvHyperEdgeConnectorWithCache source)
Creates an
IlvHyperEdgeConnectorWithCache by copying
an existing one. |
IlvHyperEdgeConnectorWithCache(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
void |
actOnOwnerInserted(IlvGraphic nodeOrEdge,
boolean redraw)
React when the node or hyperedge of this connector is inserted into
a hypergrapher.
|
void |
actOnOwnerRemoved(IlvGraphic nodeOrEdge,
boolean redraw)
React before the node or hyperedge is removed from its manager.
|
void |
adjust(IlvHyperEdgeEnd end)
Adjusts one ends connected to the hyperedge connector.
|
void |
adjustAll()
Adjust all ends connected to the hyperedge connector.
|
protected abstract IlvPoint |
calcConnectionPoint(IlvHyperEdgeEnd end,
IlvTransformer t)
Calculate the connection point of the hyperedge end at the corresponding
node.
|
protected void |
detachImpl()
This method is called inside
IlvHyperEdgeConnector.detach(boolean) to detach the connector
from the node or hyperedge. |
boolean |
disconnect(IlvHyperEdgeEnd end)
Disconnect a hyperedge end from the hyperedge connector.
|
IlvPoint |
getConnectionPoint(IlvHyperEdgeEnd end,
IlvTransformer t)
Returns the connection point of the hyperedge end at the corresponding
node.
|
actAfterLayerChanged, actAfterOwnerTransform, actOnOwnerRead, actOnRead, actOnWrite, allowRemoval, allowsConnectionPointMove, applyTransform, attach, attachImpl, boundingBox, calcBoundingBox, clearBoundingBoxCache, connect, connectionsZoomable, contains, detach, draw, Get, GetAttached, getClosestConnectionPoint, getFixedLayer, getLayerMode, GetLocal, getOwner, isConnectionPointMoveAllowed, isGraphic, move, moveResize, resize, rotate, scale, setConnectionPointMoveAllowed, setFixedLayer, setLayerMode, translate, write, zoomable
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, copy, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, makeSelection, move, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemoved
public IlvHyperEdgeConnectorWithCache()
IlvHyperEdgeConnectorWithCache
.
To attach the connector to a node or hyperedge, call IlvHyperEdgeConnector.attach(ilog.views.IlvGraphic, boolean)
.public IlvHyperEdgeConnectorWithCache(IlvGraphic obj)
IlvHyperEdgeConnectorWithCache
attached to the
input object, which can be a node or a hyperedge.public IlvHyperEdgeConnectorWithCache(IlvHyperEdgeConnectorWithCache source)
IlvHyperEdgeConnectorWithCache
by copying
an existing one.source
- The origin of the copy.public IlvHyperEdgeConnectorWithCache(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.
stream
- The input stream.IlvReadFileException
- if the format is not correct.protected void detachImpl()
IlvHyperEdgeConnector.detach(boolean)
to detach the connector
from the node or hyperedge. You should not call this. You can override
this method in order to perform additional operations for specific
subclasses of IlvHyperEdgeConnector
.detachImpl
in class IlvHyperEdgeConnector
public void actOnOwnerInserted(IlvGraphic nodeOrEdge, boolean redraw)
actOnOwnerInserted
in class IlvHyperEdgeConnector
nodeOrEdge
- The node or hyperedge the connector is attached to.redraw
- If true
, the manager is redrawn.public void actOnOwnerRemoved(IlvGraphic nodeOrEdge, boolean redraw)
actOnOwnerRemoved
in class IlvHyperEdgeConnector
nodeOrEdge
- The node or hyperedge the connector is attached to.redraw
- If true
, the manager is redrawn.public boolean disconnect(IlvHyperEdgeEnd end)
IlvManager.applyToObject(ilog.views.IlvGraphic, ilog.views.IlvApplyObject, java.lang.Object, boolean)
).
disconnect
in class IlvHyperEdgeConnector
end
- The hyperedge end.true
if the end was connected,
false
otherwise.IlvHyperEdgeConnector.connect(ilog.views.hypergraph.IlvHyperEdgeEnd, ilog.views.IlvPoint, ilog.views.IlvTransformer)
public void adjustAll()
adjust(ilog.views.hypergraph.IlvHyperEdgeEnd)
with
null
proposed point and null
transformer
for all ends that are managed by this hyperedge connector.adjustAll
in class IlvHyperEdgeConnector
public void adjust(IlvHyperEdgeEnd end)
IlvHyperEdgeEnd.positionChanged()
.adjust
in class IlvHyperEdgeConnector
public IlvPoint getConnectionPoint(IlvHyperEdgeEnd end, IlvTransformer t)
calcConnectionPoint(ilog.views.hypergraph.IlvHyperEdgeEnd, ilog.views.IlvTransformer)
to calculate the connection point.getConnectionPoint
in class IlvHyperEdgeConnector
end
- The hyperedge end.t
- The transformer used to draw the hyperedge.protected abstract IlvPoint calcConnectionPoint(IlvHyperEdgeEnd end, IlvTransformer t)
end
- The hyperedge end.t
- The transformer used to draw the hyperedge.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.