public class Connector extends GeometryShape implements IConnector
Represents a connector.
| Modifier and Type | Method and Description |
|---|---|
IConnectorLock |
getConnectorLock()
Returns connector's locks.
|
IShape |
getEndShapeConnectedTo()
Returns or sets the shape to attach the end of the connector to.
|
long |
getEndShapeConnectionSiteIndex()
Returns or sets the index of connection site for end shape.
|
IConnectorLock |
getShapeLock()
Returns shape's locks.
|
int |
getShapeType()
Returns or sets the AutoShape type.
|
IShape |
getStartShapeConnectedTo()
Returns or sets the shape to attach the beginning of the connector to.
|
long |
getStartShapeConnectionSiteIndex()
Returns or sets the index of connection site for start shape.
|
void |
reroute()
Reroutes connector so that it take the shortest possible path between the shapes it connect.
|
void |
setEndShapeConnectedTo(IShape value)
Returns or sets the shape to attach the end of the connector to.
|
void |
setEndShapeConnectionSiteIndex(long value)
Returns or sets the index of connection site for end shape.
|
void |
setShapeType(int value)
Returns or sets the AutoShape type.
|
void |
setStartShapeConnectedTo(IShape value)
Returns or sets the shape to attach the beginning of the connector to.
|
void |
setStartShapeConnectionSiteIndex(long value)
Returns or sets the index of connection site for start shape.
|
createShapeElements, getAdjustments, getGeometryPaths, getShapeStyle, setGeometryPath, setGeometryPathsaddPlaceholder, getAlternativeText, getAlternativeTextTitle, getBasePlaceholder, getBlackWhiteMode, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getHidden, getHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, getImage, getImage, getLineFormat, getName, getOfficeInteropShapeId, getParent_Immediate, getParentGroup, getPlaceholder, getPresentation, getRawFrame, getRotation, getSlide, getThreeDFormat, getThumbnail, getThumbnail, getUniqueId, getWidth, getX, getY, getZOrderPosition, isDecorative, isGrouped, isTextHolder, removePlaceholder, setAlternativeText, setAlternativeTextTitle, setBlackWhiteMode, setDecorative, setFrame, setHeight, setHidden, setHyperlinkClick, setHyperlinkMouseOver, setName, setRawFrame, setRotation, setWidth, setX, setY, writeAsSvg, writeAsSvgequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateShapeElements, getAdjustments, getGeometryPaths, getShapeStyle, setGeometryPath, setGeometryPathsaddPlaceholder, getAlternativeText, getAlternativeTextTitle, getBasePlaceholder, getBlackWhiteMode, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getHidden, getImage, getImage, getLineFormat, getName, getOfficeInteropShapeId, getParentGroup, getPlaceholder, getRawFrame, getRotation, getThreeDFormat, getThumbnail, getThumbnail, getUniqueId, getWidth, getX, getY, getZOrderPosition, isDecorative, isGrouped, isTextHolder, removePlaceholder, setAlternativeText, setAlternativeTextTitle, setBlackWhiteMode, setDecorative, setFrame, setHeight, setHidden, setName, setRawFrame, setRotation, setWidth, setX, setY, writeAsSvg, writeAsSvggetSlidegetPresentationgetHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, setHyperlinkClick, setHyperlinkMouseOverpublic final IConnectorLock getShapeLock()
Returns shape's locks.
Read-only IConnectorLock.
getShapeLock in interface IConnectorgetShapeLock in interface IShapegetShapeLock in class Shapepublic final IConnectorLock getConnectorLock()
Returns connector's locks.
Read-only IConnectorLock.
getConnectorLock in interface IConnectorpublic int getShapeType()
Returns or sets the AutoShape type.
Read/write ShapeType.
getShapeType in interface IGeometryShapegetShapeType in class GeometryShapepublic void setShapeType(int value)
Returns or sets the AutoShape type.
Read/write ShapeType.
setShapeType in interface IGeometryShapesetShapeType in class GeometryShapepublic final IShape getStartShapeConnectedTo()
Returns or sets the shape to attach the beginning of the connector to.
Read/write IShape.
getStartShapeConnectedTo in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)public final void setStartShapeConnectedTo(IShape value)
Returns or sets the shape to attach the beginning of the connector to.
Read/write IShape.
setStartShapeConnectedTo in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)public final IShape getEndShapeConnectedTo()
Returns or sets the shape to attach the end of the connector to.
Read/write IShape.
getEndShapeConnectedTo in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)public final void setEndShapeConnectedTo(IShape value)
Returns or sets the shape to attach the end of the connector to.
Read/write IShape.
setEndShapeConnectedTo in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)public final long getStartShapeConnectionSiteIndex()
Returns or sets the index of connection site for start shape.
Read/write long.
getStartShapeConnectionSiteIndex in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when value is less than StartShapeConnectedTo.ConnectionSiteCountpublic final void setStartShapeConnectionSiteIndex(long value)
Returns or sets the index of connection site for start shape.
Read/write long.
setStartShapeConnectionSiteIndex in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when value is less than StartShapeConnectedTo.ConnectionSiteCountpublic final long getEndShapeConnectionSiteIndex()
Returns or sets the index of connection site for end shape.
Read/write long.
getEndShapeConnectionSiteIndex in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when value is less than EndShapeConnectedTo.ConnectionSiteCountpublic final void setEndShapeConnectionSiteIndex(long value)
Returns or sets the index of connection site for end shape.
Read/write long.
setEndShapeConnectionSiteIndex in interface IConnectorcom.aspose.ms.System.ArgumentException - Thrown when value is less than EndShapeConnectedTo.ConnectionSiteCountpublic final void reroute()
Reroutes connector so that it take the shortest possible path between the shapes it connect.
reroute in interface IConnectorCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.