public abstract class PdfShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Provides base class for XObjects, Artifacts and Annotations.
Modifier and Type | Method and Description |
---|---|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
abstract double |
getHeight()
Gets the height of the object.
|
PdfWatermarkableImage |
getImage()
Gets the image of this
. |
abstract double |
getRotateAngle()
Gets the rotate angle of the object in degrees.
|
String |
getText()
Gets the text of this
. |
abstract double |
getWidth()
Gets the width of the object.
|
abstract double |
getX()
Gets the x-coordinate of the object.
|
abstract double |
getY()
Gets the y-coordinate of the object.
|
void |
setImage(PdfWatermarkableImage value)
Sets the image of this
. |
void |
setText(String value)
Gets or sets the text of this
. |
public void setText(String value)
PdfShape
.value
- The text of this PdfShape
.public final FormattedTextFragmentCollection getFormattedTextFragments()
PdfShape
.PdfShape
.public final PdfWatermarkableImage getImage()
PdfShape
.PdfShape
.public final void setImage(PdfWatermarkableImage value)
PdfShape
.value
- The image of this PdfShape
.public abstract double getX()
Gets the x-coordinate of the object.
getX
in interface ITwoDObject
public abstract double getY()
Gets the y-coordinate of the object.
getY
in interface ITwoDObject
public abstract double getWidth()
Gets the width of the object.
getWidth
in interface ITwoDObject
public abstract double getHeight()
Gets the height of the object.
getHeight
in interface ITwoDObject
public abstract double getRotateAngle()
Gets the rotate angle of the object in degrees.
getRotateAngle
in interface IRotatableTwoDObject