|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aspose.imaging.ObjectWithBounds
com.aspose.imaging.Shape
com.aspose.imaging.shapes.RectangleProjectedShape
com.aspose.imaging.shapes.TextShape
public final class TextShape
Represents a text shape.
| Constructor Summary | |
|---|---|
TextShape()
Initializes a new instance of the TextShape class. |
|
TextShape(java.lang.String text,
RectangleF rectangle,
Font font,
StringFormat stringFormat)
Initializes a new instance of the TextShape class. |
|
| Method Summary | |
|---|---|
RectangleF |
getBounds()
Gets the object's bounds. |
RectangleF |
getBounds(Matrix matrix)
Gets the object's bounds. |
RectangleF |
getBounds(Matrix matrix,
Pen pen)
Gets the object's bounds. |
PointF |
getCenter()
Gets the shape's center. |
Font |
getFont()
Gets the font used to draw the text. |
ShapeSegment[] |
getSegments()
Gets the shape segments. |
java.lang.String |
getText()
Gets the drawn text. |
StringFormat |
getTextFormat()
Gets the text format. |
boolean |
hasSegments()
Gets a value indicating whether shape has segments. |
void |
setFont(Font value)
Sets the font used to draw the text. |
void |
setText(java.lang.String value)
Sets the drawn text. |
void |
setTextFormat(StringFormat value)
Sets the text format. |
void |
transform(Matrix transform)
Applies the specified transformation to the shape. |
| Methods inherited from class com.aspose.imaging.shapes.RectangleProjectedShape |
|---|
getLeftBottom, getLeftTop, getRectangleHeight, getRectangleWidth, getRightBottom, getRightTop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextShape()
Initializes a new instance of the TextShape class.
public TextShape(java.lang.String text,
RectangleF rectangle,
Font font,
StringFormat stringFormat)
Initializes a new instance of the TextShape class.
text - The text to draw.rectangle - The text rectangle.font - The font to use.stringFormat - The string format.| Method Detail |
|---|
public RectangleF getBounds()
Gets the object's bounds.
Value: The object's bounds.
getBounds in class RectangleProjectedShapepublic RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds in class RectangleProjectedShapematrix - The matrix to apply before bounds will be calculated.
public RectangleF getBounds(Matrix matrix,
Pen pen)
Gets the object's bounds.
getBounds in class RectangleProjectedShapematrix - The matrix to apply before bounds will be calculated.pen - The pen to use for object. This can influence the object's bounds size.
public PointF getCenter()
Gets the shape's center.
Value: The shape's center.
getCenter in class RectangleProjectedShapepublic Font getFont()
Gets the font used to draw the text.
Value: The font used to draw the text.
public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.
getSegments in class Shapepublic java.lang.String getText()
Gets the drawn text.
Value: The drawn text.
public StringFormat getTextFormat()
Gets the text format.
Value: The text format.
public boolean hasSegments()
Gets a value indicating whether shape has segments.
Value:True if shape has segments; otherwise, false.
hasSegments in class RectangleProjectedShapepublic void setFont(Font value)
Sets the font used to draw the text.
Value: The font used to draw the text.
public void setText(java.lang.String value)
Sets the drawn text.
Value: The drawn text.
public void setTextFormat(StringFormat value)
Sets the text format.
Value: The text format.
public void transform(Matrix transform)
Applies the specified transformation to the shape.
transform in class RectangleProjectedShapetransform - The transformation to apply.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||