|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteShapes
This class represents a collection of shapes.
Access
To get all the shapes of a page, use the Shapes property in the Page class.
Method Summary | |
---|---|
IRemoteConnectorShape |
addConnector(IRemoteShape beginShape,
IRemoteShape endShape)
This method creates a connector. |
IRemoteConnectorShape |
addConnector(IRemoteShape beginShape,
IRemoteShape endShape,
int connectorType)
This method creates a connector. |
IRemoteConnectorShape |
addConnector(IRemoteShape beginShape,
IRemoteShape endShape,
int connectorType,
int beginPosition,
int endPosition)
This method creates a connector. |
IRemoteConnectorShape |
addConnectorByPosition(int beginX,
int beginY,
int endX,
int endY)
This method creates a connector. |
IRemoteConnectorShape |
addConnectorByPosition(int beginX,
int beginY,
int endX,
int endY,
int connectorType)
This method creates a connector. |
IRemoteEllipseShape |
addEllipse(int left,
int top,
int width,
int height)
This method creates an ellipse shape. |
IRemoteEllipseShape |
addEllipse(int left,
int top,
int width,
int height,
int type,
int beginAngle,
int endAngle)
This method creates an ellipse shape. |
IRemoteGraphicShape |
addGraphic(java.lang.String fileName,
int left,
int top)
This method creates a graphic shape. |
IRemoteGraphicShape |
addGraphic(java.lang.String fileName,
int left,
int top,
int width,
int height)
This method creates a graphic shape. |
IRemoteGroupShape |
addGroup(IRemoteShape[] shapes)
This method creates a group. |
IRemoteLineShape |
addLine(int beginX,
int beginY,
int endX,
int endY)
This method creates a line shape. |
IRemoteMeasureShape |
addMeasure(int beginX,
int beginY,
int endX,
int endY)
This method creates a measure shape. |
IRemoteTextShape |
addOutliner()
This method creates an outline on a page. |
IRemoteRectangleShape |
addRectangle(int left,
int top,
int width,
int height)
This method creates a rectangle shape. |
IRemoteShape |
addShape(int type,
int left,
int top,
int width,
int height)
This method creates a shape. |
IRemoteTextShape |
addSubTitle(java.lang.String subTitle)
This method creates a subtitle on a page. |
IRemoteTextShape |
addTitle(java.lang.String title)
This method creates a title on a page. |
int |
countByType(int shapeType)
This method returns the number of specified type of shapes. |
void |
exportToImage(java.lang.String fileName,
int imagetype,
int quality)
This method exports all or some of the shapes on a page to an image file. |
void |
exportToImage(java.lang.String fileName,
int imagetype,
int quality,
IRemoteShape[] shapes)
This method exports all or some of the shapes on a page to an image file. |
int |
getCount()
This property represents the number of shapes. |
IRemoteTables |
getTables()
This property represents all the table shapes in the shapes collection. |
IRemoteShape |
item(int index)
This method returns a shape according to an index. |
IRemoteShape |
itemByType(int shapeType,
int index)
This method returns a shape according to the shape type and index. |
Method Detail |
---|
IRemoteRectangleShape addRectangle(int left, int top, int width, int height) throws RemoteEclipseAPIException
left
- Specifies the left position at the top left of the page in 1/100th mm.top
- Specifies the top position at the top left of the page in 1/100th mm.width
- Specifies the width of the rectangle in 1/100th mm.height
- Specifies the height of the rectangle in 1/100th mm.
RemoteEclipseAPIException
IRemoteEllipseShape addEllipse(int left, int top, int width, int height) throws RemoteEclipseAPIException
left
- Specifies the left position at the top left of the page in 1/100th mm.top
- Specifies the top position at the top left of the page in 1/100th mm.width
- Specifies the width of the shape in 1/100th mm.height
- Specifies the height of the shape in 1/100th mm.
RemoteEclipseAPIException
IRemoteEllipseShape addEllipse(int left, int top, int width, int height, int type, int beginAngle, int endAngle) throws RemoteEclipseAPIException
left
- Specifies the left position at the top left of the page in 1/100th mm.top
- Specifies the top position at the top left of the page in 1/100th mm.width
- Specifies the width of the shape in 1/100th mm.height
- Specifies the height of the shape in 1/100th mm.type
- Specifies the type of the shape. The type is a constant and can be one of the following values:Constant | Value | Description |
---|---|---|
EllipseShape.CIRCLETYPE_FULL | 0 | specifies a full circle. |
EllipseShape.CIRCLETYPE_SECTION | 1 | specifies a circle with a cut connected by two lines. |
EllipseShape.CIRCLETYPE_CUT | 2 | specifies a circle with a cut connected by a line. |
EllipseShape.CIRCLETYPE_ARC | 3 | specifies a circle with an open cut. |
beginAngle
- Specifies the angle of the first line in 1/100th degree.endAngle
- Specifies the angle of the second line in 1/100th degree.
RemoteEclipseAPIException
IRemoteLineShape addLine(int beginX, int beginY, int endX, int endY) throws RemoteEclipseAPIException
beginX
- Specifies the X coordinate of the original point in 1/100th mm.beginY
- Specifies the Y coordinate of the original point in 1/100th mm.endX
- Specifies the X coordinate of the end point in 1/100th mm.endY
- Specifies the Y coordinate of the end point in 1/100th mm.
RemoteEclipseAPIException
IRemoteConnectorShape addConnectorByPosition(int beginX, int beginY, int endX, int endY) throws RemoteEclipseAPIException
beginX
- Specifies the X coordinate of the original point in 1/100th mm.beginY
- Specifies the Y coordinate of the original point in 1/100th mm.endX
- Specifies the X coordinate of the end point in 1/100th mm.endY
- Specifies the Y coordinate of the end point in 1/100th mm.
RemoteEclipseAPIException
IRemoteConnectorShape addConnector(IRemoteShape beginShape, IRemoteShape endShape) throws RemoteEclipseAPIException
beginShape
- Specifies the source shape of the connector.endShape
- Specifies the target shape of the connector.
RemoteEclipseAPIException
IRemoteConnectorShape addConnector(IRemoteShape beginShape, IRemoteShape endShape, int connectorType) throws RemoteEclipseAPIException
beginShape
- Specifies the source shape of the connector.endShape
- Specifies the target shape of the connector.connectorType
- Specifies the type of the connector. The type is a constant and can be one of the following values:RemoteEclipseAPIException
IRemoteConnectorShape addConnectorByPosition(int beginX, int beginY, int endX, int endY, int connectorType) throws RemoteEclipseAPIException
beginX
- Specifies the X coordinate of the original point in 1/100th mm.beginY
- Specifies the Y coordinate of the original point in 1/100th mm.endX
- Specifies the X coordinate of the end point in 1/100th mm.endY
- Specifies the Y coordinate of the end point in 1/100th mm.connectorType
- Specifies the type of the connector. The type is a constant and can be one of the following values:Constant | Value | Description |
---|---|---|
ConnectorShape.CONNECTORTYPE_STANDARD | 0 | specifies that the connector is drawn with three lines, with the middle line perpendicular to the other two. |
ConnectorShape.CONNECTORTYPE_CURVE | 1 | specifies that the connector is drawn as a curve. |
ConnectorShape.CONNECTORTYPE_STRAIGHT | 2 | specifies that the connector is drawn as a straight line. |
ConnectorShape.CONNECTORTYPE_LINE | 3 | specifies that the connector is drawn with three lines. |
RemoteEclipseAPIException
IRemoteConnectorShape addConnector(IRemoteShape beginShape, IRemoteShape endShape, int connectorType, int beginPosition, int endPosition) throws RemoteEclipseAPIException
beginShape
- Specifies the source shape of the connector.endShape
- Specifies the target shape of the connector.connectorType
- Specifies the type of the connector. The type is a constant and can be one of the following values:beginPosition
- Specifies the anchor on the source shape. The anchor is a constant and can be one of the following values:endPosition
- Specifies the anchor on the target shape. The anchor is a constant and can be one of the following values:RemoteEclipseAPIException
IRemoteShape addShape(int type, int left, int top, int width, int height) throws RemoteEclipseAPIException
type
- Specifies the type of the shape. The value is a constant and can be one of the following values:Constant | Value | Description |
---|---|---|
Constant.SHAPE_TYPE_TEXTSHAPE | 0 | specifies a text box. |
Constant.SHAPE_TYPE_TABLESHAPE | 1 | specifies a table. |
Constant.SHAPE_TYPE_RECTANGLESHAPE | 2 | specifies a rectangle shape. |
Constant.SHAPE_TYPE_ELLIPSESHAPE | 3 | specifies an ellipse shape. |
Constant.SHAPE_TYPE_LINESHAPE | 4 | specifies a line shape. |
Constant.SHAPE_TYPE_CONNECTORSHAPE | 5 | specifies a connector shape. |
Constant.SHAPE_TYPE_GROUPSHAPE | 6 | specifies a group shape. |
Constant.SHAPE_TYPE_MEASURESHAPE | 7 | specifies a measure shape. |
Constant.SHAPE_TYPE_GRAPHICSHAPE | 8 | specifies a graphic shape. |
Constant.SHAPE_TYPE_UNKNOWNSHAPE | 1024 | specifies a unknown shape. |
left
- Specifies the left position at the top left of the page, in 1/100th mm.top
- Specifies the top position at the top left of the page, in 1/100th mm.width
- Specifies the width of the shape in 1/100th mm.height
- Specifies the height of the shape in 1/100th mm.
RemoteEclipseAPIException
IRemoteGraphicShape addGraphic(java.lang.String fileName, int left, int top, int width, int height) throws RemoteEclipseAPIException
fileName
- Specifies the graphic file. If the graphic file does not exist, this method throws an exception.left
- Specifies the left position at the top left of the page in 1/100th mm.top
- Specifies the top position at the top left of the page in 1/100th mm.width
- Specifies the width of the graphic shape in 1/100th mm.height
- Specifies the height of the graphic shape in 1/100th mm.
RemoteEclipseAPIException
IRemoteGraphicShape addGraphic(java.lang.String fileName, int left, int top) throws RemoteEclipseAPIException
fileName
- Specifies the graphic file. If the graphic file does not exist, this method throws an exception.left
- Specifies the left position at the top left of the page in 1/100th mm.top
- Specifies the top position at the top left of the page in 1/100th mm.
RemoteEclipseAPIException
IRemoteMeasureShape addMeasure(int beginX, int beginY, int endX, int endY) throws RemoteEclipseAPIException
beginX
- Specifies the X coordinate of the original point in 1/100th mm.beginY
- Specifies the Y coordinate of the original point in 1/100th mm.endX
- Specifies the X coordinate of the end point in 1/100th mm.endY
- Specifies the Y coordinate of the end point in 1/100th mm.
RemoteEclipseAPIException
IRemoteTables getTables() throws RemoteEclipseAPIException
RemoteEclipseAPIException
int countByType(int shapeType) throws RemoteEclipseAPIException
shapeType
- Specifies the type of the shape. The value is a constant and can be one of the following values:Constant | Value | Description |
---|---|---|
Constant.SHAPE_TYPE_TEXTSHAPE | 0 | specifies a text box. |
Constant.SHAPE_TYPE_TABLESHAPE | 1 | specifies a table. |
Constant.SHAPE_TYPE_RECTANGLESHAPE | 2 | specifies a rectangle shape. |
Constant.SHAPE_TYPE_ELLIPSESHAPE | 3 | specifies an ellipse shape. |
Constant.SHAPE_TYPE_LINESHAPE | 4 | specifies a line shape. |
Constant.SHAPE_TYPE_CONNECTORSHAPE | 5 | specifies a connector shape. |
Constant.SHAPE_TYPE_GROUPSHAPE | 6 | specifies a group shape. |
Constant.SHAPE_TYPE_MEASURESHAPE | 7 | specifies a measure shape. |
Constant.SHAPE_TYPE_GRAPHICSHAPE | 8 | specifies a graphic shape. |
Constant.SHAPE_TYPE_UNKNOWNSHAPE | 1024 | specifies a unknown shape. |
RemoteEclipseAPIException
IRemoteShape itemByType(int shapeType, int index) throws RemoteEclipseAPIException
shapeType
- Specifies the type of the shape. The value is a constant and can be one of the following values:Constant | Value | Description |
---|---|---|
Constant.SHAPE_TYPE_TEXTSHAPE | 0 | specifies a text box. |
Constant.SHAPE_TYPE_TABLESHAPE | 1 | specifies a table. |
Constant.SHAPE_TYPE_RECTANGLESHAPE | 2 | specifies a rectangle shape. |
Constant.SHAPE_TYPE_ELLIPSESHAPE | 3 | specifies an ellipse shape. |
Constant.SHAPE_TYPE_LINESHAPE | 4 | specifies a line shape. |
Constant.SHAPE_TYPE_CONNECTORSHAPE | 5 | specifies a connector shape. |
Constant.SHAPE_TYPE_GROUPSHAPE | 6 | specifies a group shape. |
Constant.SHAPE_TYPE_MEASURESHAPE | 7 | specifies a measure shape. |
Constant.SHAPE_TYPE_GRAPHICSHAPE | 8 | specifies a graphic shape. |
Constant.SHAPE_TYPE_UNKNOWNSHAPE | 1024 | specifies a unknown shape. |
index
- Specifies the index of the shape, starting at 1.
RemoteEclipseAPIException
IRemoteTextShape addTitle(java.lang.String title) throws RemoteEclipseAPIException
title
-
RemoteEclipseAPIException
IRemoteTextShape addSubTitle(java.lang.String subTitle) throws RemoteEclipseAPIException
subTitle
-
RemoteEclipseAPIException
IRemoteTextShape addOutliner() throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemoteGroupShape addGroup(IRemoteShape[] shapes) throws RemoteEclipseAPIException
shapes
- Specifies the shapes of the group. If any shape does not exist on the page, this method throws an exception.
RemoteEclipseAPIException
IRemoteShape item(int index) throws RemoteEclipseAPIException
index
- Specifies the index of the shape, starting at 1.
RemoteEclipseAPIException
int getCount() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void exportToImage(java.lang.String fileName, int imagetype, int quality, IRemoteShape[] shapes) throws RemoteEclipseAPIException
fileName
- Specifies the file to export.imageType
- Specifies the type of the image to export. The value is a constant and can be one of these types:Constant | Value | Description |
---|---|---|
Constant.IMAGE_TYPE_JPEG | 1 | specifies the JPEG image type. |
Constant.IMAGE_TYPE_PNG | 2 | specifies the PNG image type. |
Constant.IMAGE_TYPE_GIF | 3 | specifies the GIF image type. |
quality
- Specifies the quality of the image. Values range from 0 which is the lowest quality to 100 which is the highest quality.shapes
- Specifies the shapes to export. The default value is all shapes.
RemoteEclipseAPIException
void exportToImage(java.lang.String fileName, int imagetype, int quality) throws RemoteEclipseAPIException
fileName
- Specifies the file to export.imageType
- Specifies the type of the image to export. The value is a constant and can be one of these types:Constant | Value | Description |
---|---|---|
Constant.IMAGE_TYPE_JPEG | 1 | specifies the JPEG image type. |
Constant.IMAGE_TYPE_PNG | 2 | specifies the PNG image type. |
Constant.IMAGE_TYPE_GIF | 3 | specifies the GIF image type. |
quality
- Specifies the quality of the image. Values range from 0 which is the lowest quality to 100 which is the highest quality.
RemoteEclipseAPIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |