com.aspose.slides
Class Connector

java.lang.Object
  extended by com.aspose.slides.Shape
      extended by com.aspose.slides.GeometryShape
          extended by com.aspose.slides.Connector
All Implemented Interfaces:
IConnector, IGeometryShape, IHyperlinkContainer, IPresentationComponent, IShape, ISlideComponent

public class Connector
extends GeometryShape
implements IConnector

Represents a connector.


Method Summary
 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.
 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.
 
Methods inherited from class com.aspose.slides.GeometryShape
createShapeElements, getAdjustments, getShapeStyle
 
Methods inherited from class com.aspose.slides.Shape
addPlaceholder, createEffectFormatEffective, createFillFormatEffective, createLineFormatEffective, createThreeDFormatEffective, getAlternativeText, getBlackWhiteMode, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getHidden, getHLinkClick, getHLinkMouseOver, getHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, getLineFormat, getName, getParent_Immediate, getParentGroup, getPlaceholder, getPresentation, getRawFrame, getRotation, getShapeLock, getSlide, getTags, getThreeDFormat, getThumbnail, getThumbnail, getUniqueId, getWidth, getX, getY, getZOrderPosition, isGrouped, isTextHolder, removePlaceholder, setAlternativeText, setBlackWhiteMode, setFrame, setHeight, setHidden, setHLinkClick, setHLinkMouseOver, setHyperlinkClick, setHyperlinkMouseOver, setName, setRawFrame, setRotation, setWidth, setX, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aspose.slides.IGeometryShape
createShapeElements, getAdjustments, getShapeStyle
 
Methods inherited from interface com.aspose.slides.IShape
addPlaceholder, createEffectFormatEffective, createFillFormatEffective, createLineFormatEffective, createThreeDFormatEffective, getAlternativeText, getBlackWhiteMode, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getHidden, getLineFormat, getName, getParentGroup, getPlaceholder, getRawFrame, getRotation, getShapeLock, getThreeDFormat, getThumbnail, getThumbnail, getUniqueId, getWidth, getX, getY, getZOrderPosition, isGrouped, isTextHolder, removePlaceholder, setAlternativeText, setBlackWhiteMode, setFrame, setHeight, setHidden, setName, setRawFrame, setRotation, setWidth, setX, setY
 
Methods inherited from interface com.aspose.slides.ISlideComponent
getSlide
 
Methods inherited from interface com.aspose.slides.IPresentationComponent
getPresentation
 
Methods inherited from interface com.aspose.slides.IHyperlinkContainer
getHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, setHyperlinkClick, setHyperlinkMouseOver
 

Method Detail

getConnectorLock

public IConnectorLock getConnectorLock()

Returns connector's locks. Read-only IConnectorLock.

Specified by:
getConnectorLock in interface IConnector

getShapeType

public int getShapeType()

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

Specified by:
getShapeType in interface IGeometryShape
Overrides:
getShapeType in class GeometryShape

setShapeType

public void setShapeType(int value)

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

Specified by:
setShapeType in interface IGeometryShape
Overrides:
setShapeType in class GeometryShape

getStartShapeConnectedTo

public 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 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 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 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 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 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 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 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 void reroute()

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

Specified by:
reroute in interface IConnector


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.