Connector

Inheritance: java.lang.Object, com.aspose.slides.Shape, com.aspose.slides.GeometryShape

All Implemented Interfaces: com.aspose.slides.IConnector

public class Connector extends GeometryShape implements IConnector

Represents a connector.

Methods

Method Description
getShapeLock() Returns shape’s locks.
getConnectorLock() Returns connector’s locks.
getShapeType() Returns or sets the AutoShape type.
setShapeType(int value) Returns or sets the AutoShape type.
getStartShapeConnectedTo() Returns or sets the shape to attach the beginning of the connector to.
setStartShapeConnectedTo(IShape value) Returns or sets the shape to attach the beginning of the connector to.
getEndShapeConnectedTo() Returns or sets the shape to attach the end of the connector to.
setEndShapeConnectedTo(IShape value) Returns or sets the shape to attach the end of the connector to.
getStartShapeConnectionSiteIndex() Returns or sets the index of connection site for start shape.
setStartShapeConnectionSiteIndex(long value) Returns or sets the index of connection site for start shape.
getEndShapeConnectionSiteIndex() Returns or sets the index of connection site for end shape.
setEndShapeConnectionSiteIndex(long value) Returns or sets the index of connection site for end shape.
reroute() Reroutes connector so that it take the shortest possible path between the shapes it connect.

getShapeLock()

public final IConnectorLock getShapeLock()

Returns shape’s locks. Read-only IConnectorLock.

Returns: IConnectorLock

getConnectorLock()

public final IConnectorLock getConnectorLock()

Returns connector’s locks. Read-only IConnectorLock.

Returns: IConnectorLock

getShapeType()

public int getShapeType()

Returns or sets the AutoShape type. Read/write ShapeType.

Returns: int

setShapeType(int value)

public void setShapeType(int value)

Returns or sets the AutoShape type. Read/write ShapeType.

Parameters:

Parameter Type Description
value int

getStartShapeConnectedTo()

public final IShape getStartShapeConnectedTo()

Returns or sets the shape to attach the beginning of the connector to. Read/write IShape.

Returns: IShape

setStartShapeConnectedTo(IShape value)

public final void setStartShapeConnectedTo(IShape value)

Returns or sets the shape to attach the beginning of the connector to. Read/write IShape.

Parameters:

Parameter Type Description
value IShape

getEndShapeConnectedTo()

public final IShape getEndShapeConnectedTo()

Returns or sets the shape to attach the end of the connector to. Read/write IShape.

Returns: IShape

setEndShapeConnectedTo(IShape value)

public final void setEndShapeConnectedTo(IShape value)

Returns or sets the shape to attach the end of the connector to. Read/write IShape.

Parameters:

Parameter Type Description
value IShape

getStartShapeConnectionSiteIndex()

public final long getStartShapeConnectionSiteIndex()

Returns or sets the index of connection site for start shape. Read/write long.

Returns: long

setStartShapeConnectionSiteIndex(long value)

public final void setStartShapeConnectionSiteIndex(long value)

Returns or sets the index of connection site for start shape. Read/write long.

Parameters:

Parameter Type Description
value long

getEndShapeConnectionSiteIndex()

public final long getEndShapeConnectionSiteIndex()

Returns or sets the index of connection site for end shape. Read/write long.

Returns: long

setEndShapeConnectionSiteIndex(long value)

public final void setEndShapeConnectionSiteIndex(long value)

Returns or sets the index of connection site for end shape. Read/write long.

Parameters:

Parameter Type Description
value long

reroute()

public final void reroute()

Reroutes connector so that it take the shortest possible path between the shapes it connect.