com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Connector

    • Method Detail

      • getStartShapeConnectedTo

        public final IShape getStartShapeConnectedTo()

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

        Specified by:
        getStartShapeConnectedTo in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)
      • setStartShapeConnectedTo

        public final void setStartShapeConnectedTo(IShape value)

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

        Specified by:
        setStartShapeConnectedTo in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)
      • getEndShapeConnectedTo

        public final IShape getEndShapeConnectedTo()

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

        Specified by:
        getEndShapeConnectedTo in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)
      • setEndShapeConnectedTo

        public final void setEndShapeConnectedTo(IShape value)

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

        Specified by:
        setEndShapeConnectedTo in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when connected shape doesn't has any connection sites (IShape.ConnectionSiteCount equals zero)
      • getStartShapeConnectionSiteIndex

        public final long getStartShapeConnectionSiteIndex()

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

        Specified by:
        getStartShapeConnectionSiteIndex in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when value is less than StartShapeConnectedTo.ConnectionSiteCount
      • setStartShapeConnectionSiteIndex

        public final void setStartShapeConnectionSiteIndex(long value)

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

        Specified by:
        setStartShapeConnectionSiteIndex in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when value is less than StartShapeConnectedTo.ConnectionSiteCount
      • getEndShapeConnectionSiteIndex

        public final long getEndShapeConnectionSiteIndex()

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

        Specified by:
        getEndShapeConnectionSiteIndex in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when value is less than EndShapeConnectedTo.ConnectionSiteCount
      • setEndShapeConnectionSiteIndex

        public final void setEndShapeConnectionSiteIndex(long value)

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

        Specified by:
        setEndShapeConnectionSiteIndex in interface IConnector
        Throws:
        com.aspose.ms.System.ArgumentException - Thrown when value is less than EndShapeConnectedTo.ConnectionSiteCount
      • reroute

        public final void reroute()

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

        Specified by:
        reroute in interface IConnector