PolyAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation
public abstract class PolyAnnotation extends MarkupAnnotation
Abstract base class for poly-annotations.
Methods
| Method | Description |
|---|---|
| getMeasure() | Measure units specified for this annotation. |
| setMeasure(Measure value) | Measure units specified for this annotation. |
| getVertices() | Gets an array of points representing the horizontal and vertical coordinates of each vertex. |
| setVertices(Point[] value) | Sets an array of points representing the horizontal and vertical coordinates of each vertex. |
| getInteriorColor() | Gets the interior color with which to fill the annotation’s line endings. |
| setInteriorColor(Color value) | Sets the interior color with which to fill the annotation’s line endings. |
| getStartingStyle() | Gets the style of first line ending. |
| setStartingStyle(int value) | Sets the style of first line ending. |
| getEndingStyle() | Gets the style of second line ending. |
| setEndingStyle(int value) | Sets the style of second line ending. |
| getIntent() | Gets the intent of the polygon or polyline annotation. |
| setIntent(int value) | Sets the intent of the polygon or polyline annotation. |
| changeAfterResize(Matrix transform) | Updates the points in Vertices, according to the matrix transform. |
getMeasure()
public Measure getMeasure()
Measure units specified for this annotation.
Returns: Measure - Measure instance
setMeasure(Measure value)
public void setMeasure(Measure value)
Measure units specified for this annotation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Measure | Measure instance |
getVertices()
public Point[] getVertices()
Gets an array of points representing the horizontal and vertical coordinates of each vertex.
Returns: com.aspose.pdf.Point[] - array of Point value
setVertices(Point[] value)
public void setVertices(Point[] value)
Sets an array of points representing the horizontal and vertical coordinates of each vertex.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Point[] | array of Point value |
getInteriorColor()
public Color getInteriorColor()
Gets the interior color with which to fill the annotation’s line endings.
Returns: Color - Color object
setInteriorColor(Color value)
public void setInteriorColor(Color value)
Sets the interior color with which to fill the annotation’s line endings.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Color | Color object |
getStartingStyle()
public int getStartingStyle()
Gets the style of first line ending.
Returns: int - LineEnding element
setStartingStyle(int value)
public void setStartingStyle(int value)
Sets the style of first line ending.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | LineEnding element |
getEndingStyle()
public int getEndingStyle()
Gets the style of second line ending.
Returns: int - LineEnding element
setEndingStyle(int value)
public void setEndingStyle(int value)
Sets the style of second line ending.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | LineEnding element |
getIntent()
public int getIntent()
Gets the intent of the polygon or polyline annotation.
Returns: int - PolyIntent element
setIntent(int value)
public void setIntent(int value)
Sets the intent of the polygon or polyline annotation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | PolyIntent element |
changeAfterResize(Matrix transform)
public void changeAfterResize(Matrix transform)
Updates the points in Vertices, according to the matrix transform.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| transform | Matrix | Matrix specifying the transformation. |