@Deprecated public abstract class PdfShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Provides base class for XObjects, Artifacts and Annotations.
Modifier and Type | Method and Description |
---|---|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Deprecated.
Gets the collection of formatted text fragments of this
PdfShape . |
abstract double |
getHeight()
Deprecated.
Gets the height of the object.
|
PdfWatermarkableImage |
getImage()
Deprecated.
Gets the image of this
PdfShape . |
abstract double |
getRotateAngle()
Deprecated.
Gets the rotate angle of the object in degrees.
|
String |
getText()
Deprecated.
Gets the text of this
PdfShape . |
abstract double |
getWidth()
Deprecated.
Gets the width of the object.
|
abstract double |
getX()
Deprecated.
Gets the x-coordinate of the object.
|
abstract double |
getY()
Deprecated.
Gets the y-coordinate of the object.
|
void |
setImage(PdfWatermarkableImage value)
Deprecated.
Sets the image of this
PdfShape . |
void |
setText(String value)
Deprecated.
Sets the text of this
PdfShape . |
public String getText()
Gets the text of this PdfShape
.
PdfShape
.public void setText(String value)
Sets the text of this PdfShape
.
value
- The text of this PdfShape
.public final FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this PdfShape
.
PdfShape
.public final PdfWatermarkableImage getImage()
Gets the image of this PdfShape
.
PdfShape
.
Returns null if the object has no image.public final void setImage(PdfWatermarkableImage value)
Sets the image of this PdfShape
.
value
- The image of this PdfShape
.
Returns null if the object has no image.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