com.aspose.slides
Class Connector

java.lang.Object
  extended by com.aspose.slides.Shape
      extended by com.aspose.slides.AutoShape
          extended by com.aspose.slides.Connector

public final class Connector
extends AutoShape

Represents a connector autoshape.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aspose.slides.AutoShape
AutoShape.AutoShapePath
 
Method Summary
 void connectBegin(Shape shape, int connectionSite)
           Connects or disconnects begin of the connector.
 void connectEnd(Shape shape, int connectionSite)
           Connects or disconnects end of the connector.
 Shape getBeginConnectedShape()
           Returns the shape which is the first connection for a connector.
 int getBeginConnectionSite()
           Returns the connection point on the BeginConnectedShape.
 int getConnectorType()
           Returns or sets connector's type.
 Shape getEndConnectedShape()
           Returns the shape which is the second connection for a connector.
 int getEndConnectionSite()
           Returns the connection point on the EndConnectedShape.
 void serialize(java.io.OutputStream stream)
           
 void setConnectorType(int value)
           
 void validate()
           Ensures connector's begin and end points lie on connection sites.
 
Methods inherited from class com.aspose.slides.AutoShape
getAdjustments, getPaths, getShapeType, getTextRectangle
 
Methods inherited from class com.aspose.slides.Shape
addLink, addTextFrame, clearLink, createShapeElements, createShapeElements, getAlternativeText, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getFlipH, getFlipHorizontal, getFlipV, getFlipVertical, getHeight, getHidden, getLineFormat, getLink, getMasterShapeId, getName, getParent, getParentSlide, getPlaceholder, getProtection, getRotation, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isMasterTextHolder, isTextHolder, setAlternativeText, setFlipH, setFlipHorizontal, setFlipV, setFlipVertical, setHeight, setHidden, setName, setProtection, setRotation, setWidth, setX, setY, zOrder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConnectorType

public int getConnectorType()

Returns or sets connector's type. Read/write Aspose.Slides.ConnectorType


setConnectorType

public void setConnectorType(int value)

getBeginConnectedShape

public Shape getBeginConnectedShape()

Returns the shape which is the first connection for a connector. Read-only Shape.


getEndConnectedShape

public Shape getEndConnectedShape()

Returns the shape which is the second connection for a connector. Read-only Shape.


getBeginConnectionSite

public int getBeginConnectionSite()

Returns the connection point on the BeginConnectedShape. Read-only int.


getEndConnectionSite

public int getEndConnectionSite()

Returns the connection point on the EndConnectedShape. Read-only int.


validate

public void validate()

Ensures connector's begin and end points lie on connection sites. Aspose.Slides automatically validates connectors before drawing, saving etc. You may need to call this method when moved some shapes and want to get correct connectors size an position. If you want to move connector along with connected shapes without changing connector's shape, simply move all connected shapes to same distance and direction without Validate() call between movements.


connectBegin

public void connectBegin(Shape shape,
                         int connectionSite)

Connects or disconnects begin of the connector.

Parameters:
shape - a shape to which to connect or null to disconnect
connectionSite - an index of a connection site

connectEnd

public void connectEnd(Shape shape,
                       int connectionSite)

Connects or disconnects end of the connector.

Parameters:
shape - a shape to which to connect or null to disconnect
connectionSite - an index of a connection site

serialize

public void serialize(java.io.OutputStream stream)
Overrides:
serialize in class AutoShape