![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.pdf.elements.TextInfo
Encapsulates info for a Text paragraph.
Constructor Summary | |
TextInfo()
Initializes a new instance of the TextInfo class. |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object arg0)
|
int |
getAlignmentType()
Gets an alignment type that indicates the text alignment mode when showed in box. |
Color |
getBackGroundColor()
Gets the background color of the text paragraph. |
float |
getCharSpacing()
Gets a float value that indicates space between charcters.The unit is point. |
float |
getFontSize()
Gets a float number that indicates the size of font. |
float |
getLineSpacing()
Gets float value that indicates the spacing between two text lines. |
Color |
getTextColor()
Gets a Color object that indicates the color of the text. |
boolean |
isBold()
Gets a bool value that indicates whether the TrueType font is bold. |
boolean |
isItalic()
Gets a bool value that indicates whether the TrueType font is italic. |
boolean |
isOverLine()
Gets a bool value that indicates whether the text is with overline. |
boolean |
isStrikeOut()
Gets a bool value that indicates whether the text is with strikeout. |
boolean |
isUnderLine()
Gets a bool value that indicates whether the text is with underline. |
void |
setAlignmentType(int alignmentType)
Sets a alignment type that indicates the text alignment mode when showed in box. |
void |
setBackGroundColor(Color groundColor)
Sets the background color of the text paragraph. |
void |
setBold(boolean bold)
Sets a bool value that indicates whether the TrueType font is bold. |
void |
setCharSpacing(float spacing)
Sets a float value that indicates space between charcters.The unit is point. |
void |
setFontSize(float fontSize)
Sets a float number that indicates the size of font. |
void |
setItalic(boolean italic)
Sets a bool value that indicates whether the TrueType font is italic. |
void |
setLineSpacing(float spacing)
Sets a float value that indicates the spacing between two text lines. |
void |
setOverLine(boolean overLine)
Sets a bool value that indicates whether the text is with overline. |
void |
setStrikeOut(boolean strikeOut)
Sets a bool value that indicates whether the text is with strikeout. |
void |
setTextColor(Color color)
Sets a Color object that indicates the color of the text. |
void |
setUnderLine(boolean underLine)
Sets a bool value that indicates whether the text is with underline. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextInfo()
[SampleCode] Section sec1 = pdf.getSections().add(); Text text1 = new Text(sec1); sec1.getParagraphs().add(text1); text1.getTextInfo().setTextColor(Color.Red); Segment seg1 = new Segment(text1,"seg1 "); text1.getSegments().add(seg1); Segment seg2 = new Segment(text1,"seg2 "); seg2.getTextInfo().setTextColor(Color.Green); text1.getSegments().add(seg2);
Method Detail |
public int getAlignmentType()
public void setAlignmentType(int alignmentType)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
java.lang.Object#clone()
public float getFontSize()
public void setFontSize(float fontSize)
fontSize
- The FontSize to set.public Color getBackGroundColor()
public void setBackGroundColor(Color groundColor)
public Color getTextColor()
public void setTextColor(Color color)
public boolean isBold()
public void setBold(boolean bold)
bold
- boolean, true to set text bold and false notpublic boolean isItalic()
public void setItalic(boolean italic)
italic
- boolean, true to set text italic and false notpublic boolean isOverLine()
public void setOverLine(boolean overLine)
public boolean isStrikeOut()
public void setStrikeOut(boolean strikeOut)
public boolean isUnderLine()
public void setUnderLine(boolean underLine)
public float getLineSpacing()
public void setLineSpacing(float spacing)
public float getCharSpacing()
public void setCharSpacing(float spacing)
public boolean equals(java.lang.Object arg0)
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |