public class IlvHyperEdgeCenterConnector extends IlvHyperEdgeConnectorWithCache
IlvHyperEdgeConnector.attach(ilog.views.IlvGraphic, boolean)
).
This connector does not display any visible part, therefore it does
not act like a graphic object and should never be added to a grapher.
It is purely a computation mechanism.
IlvHyperEdge
,
IlvHyperEdgePinConnector
,
Serialized FormIlvHyperEdgeConnector.HyperEdgeConnectorProperty
IN_BACK, IN_FIXED_LAYER, IN_FRONT, IN_NODE_LAYER
Constructor and Description |
---|
IlvHyperEdgeCenterConnector()
Creates an empty
IlvHyperEdgeCenterConnector . |
IlvHyperEdgeCenterConnector(boolean fullyZoomable)
Creates an empty
IlvHyperEdgeCenterConnector . |
IlvHyperEdgeCenterConnector(IlvGraphic obj)
Creates an
IlvHyperEdgeCenterConnector attached to the input
object, which can be a node or a hyperedge. |
IlvHyperEdgeCenterConnector(IlvHyperEdgeCenterConnector source)
Creates an
IlvHyperEdgeCenterConnector by copying
an existing one. |
IlvHyperEdgeCenterConnector(IlvInputStream stream)
Reads the object from an
IlvInputStream . |
Modifier and Type | Method and Description |
---|---|
protected IlvPoint |
calcConnectionPoint(IlvHyperEdgeEnd end,
IlvTransformer t)
Calculate the connection point of the hyperedge end at the corresponding
node.
|
boolean |
connectionsZoomable()
Returns
true if the connection points of the hyperedge
at zoomable nodes are zoomable. |
IlvGraphic |
copy()
Copies the object.
|
IlvPoint |
getClosestConnectionPoint(IlvHyperEdgeEnd end,
IlvPoint p,
IlvTransformer t)
Returns the closest possible connection point of the hyperedge end
at the corresponding node.
|
boolean |
isGraphic()
Returns whether the connector displays a visible part.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
actOnOwnerInserted, actOnOwnerRemoved, adjust, adjustAll, detachImpl, disconnect, getConnectionPoint
actAfterLayerChanged, actAfterOwnerTransform, actOnOwnerRead, actOnRead, actOnWrite, allowRemoval, allowsConnectionPointMove, applyTransform, attach, attachImpl, boundingBox, calcBoundingBox, clearBoundingBoxCache, connect, contains, detach, draw, Get, GetAttached, getFixedLayer, getLayerMode, GetLocal, getOwner, isConnectionPointMoveAllowed, move, moveResize, resize, rotate, scale, setConnectionPointMoveAllowed, setFixedLayer, setLayerMode, translate, zoomable
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, 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 IlvHyperEdgeCenterConnector()
IlvHyperEdgeCenterConnector
.
To attach the connector to a node or hyperedge, call IlvHyperEdgeConnector.attach(ilog.views.IlvGraphic, boolean)
.public IlvHyperEdgeCenterConnector(boolean fullyZoomable)
IlvHyperEdgeCenterConnector
.
To attach the connector to a node or hyperedge, call IlvHyperEdgeConnector.attach(ilog.views.IlvGraphic, boolean)
.
The parameter fullyZoomable
controls whether the connector
behaves fully zoomable.
If true
, the connector zooms the center point relative
to the center point of the unzoomed bounding box of the end nodes.
For some graphic objects such as IlvHalfZoomingGraphic
, the
zoomed center point of a node might in this case differ from the
connection point calculated by this connector. However, it works for
most zoomable graphic objects and it is in general faster.
If false
, the connector calculates the center point of
end nodes from the zoomed bounding box. The center point matches in this
case the connection point perfectly, but the connector has eventually
no zoomable connections, i.e. connectionsZoomable()
returns
false
.
public IlvHyperEdgeCenterConnector(IlvGraphic obj)
IlvHyperEdgeCenterConnector
attached to the input
object, which can be a node or a hyperedge.public IlvHyperEdgeCenterConnector(IlvHyperEdgeCenterConnector source)
IlvHyperEdgeCenterConnector
by copying
an existing one.source
- The origin of the copy.public IlvHyperEdgeCenterConnector(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.
stream
- The input stream.IlvReadFileException
- if the format is not correct.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.
You should not call this method directly; instead, you should use
the write
methods of the manager.write
in interface IlvPersistentObject
write
in class IlvHyperEdgeConnector
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvGraphic copy()
copy
in class IlvGraphic
IlvGraphic
public boolean isGraphic()
false
.isGraphic
in class IlvHyperEdgeConnector
protected IlvPoint calcConnectionPoint(IlvHyperEdgeEnd end, IlvTransformer t)
calcConnectionPoint
in class IlvHyperEdgeConnectorWithCache
end
- The hyperedge end.t
- The transformer used to draw the hyperedge.public IlvPoint getClosestConnectionPoint(IlvHyperEdgeEnd end, IlvPoint p, IlvTransformer t)
getClosestConnectionPoint
in class IlvHyperEdgeConnector
end
- The hyperedge end.p
- The proposed point in view coordinates.t
- The transformer used to draw the hyperedge.public boolean connectionsZoomable()
true
if the connection points of the hyperedge
at zoomable nodes are zoomable. A connection point is zoomable if calling
the method IlvHyperEdgeConnectorWithCache.getConnectionPoint(ilog.views.hypergraph.IlvHyperEdgeEnd, ilog.views.IlvTransformer)
with a transformer gives
the same result as calling it with a null
(identity)
transformer and then applying the transformer to the result.
This is only tested if the hyperedge end is attached to a zoomable node.
Note that an instance of a hyperedge connector must return the same value as long as it is attached to the same object.
Don't confuse this with the method IlvHyperEdgeConnector.zoomable()
which indicates
whether the connector as graphic object would be zoomable.
connectionsZoomable
in class IlvHyperEdgeConnector
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.