public class IlvHyperEdgeClippingConnector extends IlvHyperEdgeConnectorWithCache
It can clip at the border of the following objects:
IlvShapePath interface.IlvPolygonIlvEllipseIlvArcIlvRectangleIlvSpline with a small border line width and smoothness
larger than zero.
It does not work with IlvGraphicUtil.COMPATIBLE_SMOOTHNESS.
If the line width is very large, rounding errors will become visible.
IlvGeneralPathwith a stroke width of 0.
This connector can be attached to a node or to a hyperedge
(see 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.HyperEdgeConnectorPropertyIN_BACK, IN_FIXED_LAYER, IN_FRONT, IN_NODE_LAYER| Constructor and Description |
|---|
IlvHyperEdgeClippingConnector()
Creates an empty
IlvHyperEdgeClippingConnector. |
IlvHyperEdgeClippingConnector(IlvGraphic obj)
Creates an
IlvHyperEdgeClippingConnector attached to the input
object, which can be a node or a hyperedge. |
IlvHyperEdgeClippingConnector(IlvHyperEdgeClippingConnector source)
Creates an
IlvHyperEdgeClippingConnector by copying
an existing one. |
IlvHyperEdgeClippingConnector(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.
|
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 |
isClipToCenter()
Sets
true if all segments incident to the connector should
point to the center of the node. |
boolean |
isGraphic()
Returns whether the connector displays a visible part.
|
void |
setClipToCenter(boolean enable)
Sets whether all segments incident to the connector should point
to the center of the node.
|
void |
write(IlvOutputStream stream)
Writes the property to the output stream.
|
actOnOwnerInserted, actOnOwnerRemoved, adjust, adjustAll, detachImpl, disconnect, getConnectionPointactAfterLayerChanged, actAfterOwnerTransform, actOnOwnerRead, actOnRead, actOnWrite, allowRemoval, allowsConnectionPointMove, applyTransform, attach, attachImpl, boundingBox, calcBoundingBox, clearBoundingBoxCache, connect, connectionsZoomable, contains, detach, draw, Get, GetAttached, getFixedLayer, getLayerMode, GetLocal, getOwner, isConnectionPointMoveAllowed, move, moveResize, resize, rotate, scale, setConnectionPointMoveAllowed, setFixedLayer, setLayerMode, translate, zoomableaddActionListener, 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, viewAddedOrRemovedpublic IlvHyperEdgeClippingConnector()
IlvHyperEdgeClippingConnector.
To attach the connector to a node or hyperedge, call IlvHyperEdgeConnector.attach(ilog.views.IlvGraphic, boolean).public IlvHyperEdgeClippingConnector(IlvGraphic obj)
IlvHyperEdgeClippingConnector attached to the input
object, which can be a node or a hyperedge.public IlvHyperEdgeClippingConnector(IlvHyperEdgeClippingConnector source)
IlvHyperEdgeClippingConnector by copying
an existing one.source - The origin of the copy.public IlvHyperEdgeClippingConnector(IlvInputStream stream) throws IlvReadFileException
IlvInputStream.
stream - The input stream.IlvReadFileException - if the format is not correct.public void write(IlvOutputStream stream) throws IOException
write in interface IlvPersistentObjectwrite in class IlvHyperEdgeConnectorstream - The output stream.IOException - standard IO error.public IlvGraphic copy()
copy in class IlvGraphicIlvGraphicpublic boolean isGraphic()
false.isGraphic in class IlvHyperEdgeConnectorprotected IlvPoint calcConnectionPoint(IlvHyperEdgeEnd end, IlvTransformer t)
calcConnectionPoint in class IlvHyperEdgeConnectorWithCacheend - The hyperedge end.t - The transformer used to draw the hyperedge.public IlvPoint getClosestConnectionPoint(IlvHyperEdgeEnd end, IlvPoint p, IlvTransformer t)
getClosestConnectionPoint in class IlvHyperEdgeConnectorend - The hyperedge end.p - The proposed point in view coordinates.t - The transformer used to draw the hyperedge.public void setClipToCenter(boolean enable)
IlvManager.applyToObject(ilog.views.IlvGraphic, ilog.views.IlvApplyObject, java.lang.Object, boolean) on the node or hyperedge to change this
option.isClipToCenter()public boolean isClipToCenter()
true if all segments incident to the connector should
point to the center of the node.setClipToCenter(boolean)© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.