|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.TextInfo
public class 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)
|
AlignmentType |
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 |
getBaseLineOffset()
Gets the text offset relative to the baseline. |
float |
getCharSpacing()
Gets a float value that indicates space between charcters.The unit is point. |
java.lang.String |
getFontAfmFile()
Gets a string that indicates the name of custom AFM font file. |
java.lang.String |
getFontEncoding()
Gets a string that indicates the font encoding name. |
java.lang.String |
getFontEncodingFile()
Gets a string that indicates the name of font encoding file. |
java.lang.String |
getFontName()
Gets a string that indicates the text font name. |
java.lang.String |
getFontOutlineFile()
Gets a string that indicates the name of custom font outline file. |
java.lang.String |
getFontPfmFile()
Gets a string that indicates the name of custom PFM font file. |
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. The unit is point. |
RenderingMode |
getRenderingMode()
Gets an int value between 0 and 7 that indicates the rendering mode of the text. |
Color |
getTextColor()
Gets a Color object that indicates the color of the text. |
java.lang.String |
getTrueTypeFontFileName()
Gets a string that indicates the truetype font file name. |
float |
getWordSpacing()
Gets a float value that indicates space between words.The unit is point. |
boolean |
isFontEmbedded()
Gets a bool value that indicates if the font is embedded. |
boolean |
isStrikeOut()
Gets a bool value that indicates whether the text is with strikeout. |
boolean |
isTrueTypeBold()
Gets a bool value that indicates whether the TrueType font is bold. |
boolean |
isTrueTypeItalic()
Gets a bool value that indicates whether the TrueType font is italic. |
boolean |
isUnderLine()
Gets a bool value that indicates whether the text is with underline. |
boolean |
isUnicode()
Gets a bool value that indicates whether unicode is used. |
TextInfo |
setAlignmentType(AlignmentType alignmentType)
Sets a alignment type that indicates the text alignment mode when showed in box. |
TextInfo |
setBackGroundColor(Color groundColor)
Sets the background color of the text paragraph. |
TextInfo |
setBaseLineOffset(float offset)
Sets the text offset relative to the baseline. |
TextInfo |
setCharSpacing(float spacing)
Sets a float value that indicates space between charcters.The unit is point. |
TextInfo |
setFontAfmFile(java.lang.String afmFile)
Sets a string that indicates the name of custom AFM font file. |
TextInfo |
setFontEncoding(java.lang.String encoding)
Sets a string that indicates the font encoding name. |
TextInfo |
setFontEncodingFile(java.lang.String encodingFile)
Sets a string that indicates the name of font encoding file. |
TextInfo |
setFontName(java.lang.String name)
Sets a string that indicates the text font name. |
TextInfo |
setFontOutlineFile(java.lang.String outlineFile)
Sets a string that indicates the name of custom font outline file. |
TextInfo |
setFontPfmFile(java.lang.String pfmFile)
Sets a string that indicates the name of custom PFM font file. |
TextInfo |
setFontSize(float fontSize)
Sets a float number that indicates the size of font. |
TextInfo |
setIsFontEmbedded(boolean fontEmbedded)
Sets a bool value that indicates if the font is embedded. |
TextInfo |
setIsUnicode(boolean isUnicode)
Sets a bool value that indicates whether unicode is used. |
TextInfo |
setLineSpacing(float spacing)
Sets a float value that indicates the spacing between two text lines. The unit is point. |
TextInfo |
setRenderingMode(RenderingMode mode)
Sets an int value between 0 and 7 that indicates the rendering mode of the text. |
TextInfo |
setStrikeOut(boolean strikeOut)
Sets a bool value that indicates whether the text is with strikeout. |
TextInfo |
setTextColor(Color color)
Sets a Color object that indicates the color of the text. |
TextInfo |
setTrueTypeBold(boolean bold)
Sets a bool value that indicates whether the TrueType font is bold. |
TextInfo |
setTrueTypeFontFileName(java.lang.String fontFileName)
Sets a string that indicates the truetype font file name. |
TextInfo |
setTrueTypeItalic(boolean italic)
Sets a bool value that indicates whether the TrueType font is italic. |
TextInfo |
setUnderLine(boolean underLine)
Sets a bool value that indicates whether the text is with underline. |
TextInfo |
setWordSpacing(float spacing)
Sets a float value that indicates space between words.The unit is point. |
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 float getBaseLineOffset()
public TextInfo setBaseLineOffset(float offset)
offset
- the offset you want to setpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
Object.clone()
public AlignmentType getAlignmentType()
public TextInfo setAlignmentType(AlignmentType alignmentType)
public float getFontSize()
public TextInfo setFontSize(float fontSize)
fontSize
- The FontSize to set.public Color getBackGroundColor()
public TextInfo setBackGroundColor(Color groundColor)
AsposeBaseException
public Color getTextColor()
public TextInfo setTextColor(Color color)
public boolean isTrueTypeBold()
public TextInfo setTrueTypeBold(boolean bold)
bold
- boolean, true to set text bold and false notpublic boolean isTrueTypeItalic()
public TextInfo setTrueTypeItalic(boolean italic)
italic
- boolean, true to set text italic and false notpublic boolean isStrikeOut()
public TextInfo setStrikeOut(boolean strikeOut)
public boolean isUnderLine()
public TextInfo setUnderLine(boolean underLine)
public boolean isUnicode()
public TextInfo setIsUnicode(boolean isUnicode)
isUnicode
- The IsUnicode to set.public float getLineSpacing()
public TextInfo setLineSpacing(float spacing)
public float getCharSpacing()
public TextInfo setCharSpacing(float spacing)
public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public float getWordSpacing()
public TextInfo setWordSpacing(float spacing)
public java.lang.String getFontAfmFile()
public TextInfo setFontAfmFile(java.lang.String afmFile)
afmFile
- The FontAfmFile to set.public java.lang.String getFontEncoding()
public TextInfo setFontEncoding(java.lang.String encoding)
encoding
- The FontEncoding to set.public java.lang.String getFontEncodingFile()
public TextInfo setFontEncodingFile(java.lang.String encodingFile)
encodingFile
- The FontEncodingFile to set.public java.lang.String getFontName()
public TextInfo setFontName(java.lang.String name)
name
- The FontName to set.public java.lang.String getFontOutlineFile()
public TextInfo setFontOutlineFile(java.lang.String outlineFile)
outlineFile
- The FontOutlineFile to set.public java.lang.String getFontPfmFile()
public TextInfo setFontPfmFile(java.lang.String pfmFile)
pfmFile
- The FontPfmFile to set.public boolean isFontEmbedded()
public TextInfo setIsFontEmbedded(boolean fontEmbedded)
fontEmbedded
- The IsFontEmbedded to set.public java.lang.String getTrueTypeFontFileName()
public TextInfo setTrueTypeFontFileName(java.lang.String fontFileName)
fontFileName
- The TruetypeFontFileName to set.public RenderingMode getRenderingMode()
public TextInfo setRenderingMode(RenderingMode mode)
mode
- The RenderingMode to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |