|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Shape
com.aspose.slides.AutoShape
com.aspose.slides.Connector
public final class Connector
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getConnectorType()
Returns or sets connector's type.
Read/write Aspose.Slides.ConnectorType
public void setConnectorType(int value)
public Shape getBeginConnectedShape()
Returns the shape which is the first connection for a connector.
Read-only Shape
.
public Shape getEndConnectedShape()
Returns the shape which is the second connection for a connector.
Read-only Shape
.
public int getBeginConnectionSite()
Returns the connection point on the BeginConnectedShape.
Read-only int
.
public int getEndConnectionSite()
Returns the connection point on the EndConnectedShape.
Read-only int
.
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.
public void connectBegin(Shape shape, int connectionSite)
Connects or disconnects begin of the connector.
shape
- a shape to which to connect or null to disconnectconnectionSite
- an index of a connection sitepublic void connectEnd(Shape shape, int connectionSite)
Connects or disconnects end of the connector.
shape
- a shape to which to connect or null to disconnectconnectionSite
- an index of a connection sitepublic void serialize(java.io.OutputStream stream)
serialize
in class AutoShape
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |