|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.poi.hslf.usermodel.HSLFTextRun
public final class HSLFTextRun
Represents a run of text, all with the same style
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.TextRun |
|---|
TextRun.TextCap |
| Field Summary | |
|---|---|
protected POILogger |
logger
|
| Constructor Summary | |
|---|---|
HSLFTextRun(HSLFTextParagraph parentParagraph)
Create a new wrapper around a rich text string |
|
| Method Summary | |
|---|---|
TextPropCollection |
getCharacterStyle()
|
protected boolean |
getFlag(int index)
|
PaintStyle.SolidPaint |
getFontColor()
|
java.lang.String |
getFontFamily()
Gets the font name |
int |
getFontIndex()
Gets the font index |
java.lang.Double |
getFontSize()
|
int |
getLength()
Get the length of the text |
byte |
getPitchAndFamily()
|
java.lang.String |
getRawText()
Fetch the text, in raw storage form |
int |
getSuperscript()
Gets the subscript/superscript option |
TextRun.TextCap |
getTextCap()
|
HSLFTextParagraph |
getTextParagraph()
|
boolean |
isBold()
Is the text bold? |
boolean |
isEmbossed()
Is this text embossed? |
boolean |
isItalic()
Is the text italic? |
boolean |
isShadowed()
Does the text have a shadow? |
boolean |
isStrikethrough()
Gets the strikethrough flag |
boolean |
isSubscript()
|
boolean |
isSuperscript()
|
boolean |
isUnderlined()
Is the text underlined? |
void |
setBold(boolean bold)
Is the text bold? |
void |
setCharacterStyle(TextPropCollection characterStyle)
|
void |
setCharTextPropVal(java.lang.String propName,
java.lang.Integer val)
Sets the value of the given Paragraph TextProp, add if required |
void |
setEmbossed(boolean flag)
Is this text embossed? |
protected void |
setFlag(int index,
boolean value)
|
void |
setFontColor(java.awt.Color color)
|
void |
setFontColor(int bgr)
Sets color of the text, as a int bgr. |
void |
setFontColor(PaintStyle color)
|
void |
setFontFamily(java.lang.String fontFamily)
Sets the font name to use |
void |
setFontIndex(int idx)
Sets the font index |
void |
setFontSize(java.lang.Double fontSize)
|
void |
setItalic(boolean italic)
Is the text italic? |
void |
setShadowed(boolean flag)
Does the text have a shadow? |
void |
setStrikethrough(boolean flag)
Sets the strikethrough flag |
void |
setSuperscript(int val)
Sets the subscript/superscript option |
void |
setText(java.lang.String text)
Change the text |
void |
setUnderlined(boolean underlined)
Is the text underlined? |
void |
updateSheet()
Supply the SlideShow we belong to |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected POILogger logger
| Constructor Detail |
|---|
public HSLFTextRun(HSLFTextParagraph parentParagraph)
parentParagraph - the parent paragraph| Method Detail |
|---|
public TextPropCollection getCharacterStyle()
public void setCharacterStyle(TextPropCollection characterStyle)
public void updateSheet()
public int getLength()
public java.lang.String getRawText()
getRawText in interface TextRunpublic void setText(java.lang.String text)
setText in interface TextRunprotected boolean getFlag(int index)
public void setCharTextPropVal(java.lang.String propName,
java.lang.Integer val)
propName - The name of the Paragraph TextPropval - The value to set for the TextProppublic boolean isBold()
isBold in interface TextRunpublic void setBold(boolean bold)
public boolean isItalic()
isItalic in interface TextRunpublic void setItalic(boolean italic)
public boolean isUnderlined()
isUnderlined in interface TextRunpublic void setUnderlined(boolean underlined)
public boolean isShadowed()
public void setShadowed(boolean flag)
public boolean isEmbossed()
public void setEmbossed(boolean flag)
public boolean isStrikethrough()
isStrikethrough in interface TextRunpublic void setStrikethrough(boolean flag)
public int getSuperscript()
public void setSuperscript(int val)
val - the percentage of the font size. If the value is positive, it is superscript, otherwise it is subscriptpublic java.lang.Double getFontSize()
getFontSize in interface TextRunpublic void setFontSize(java.lang.Double fontSize)
setFontSize in interface TextRunpublic int getFontIndex()
public void setFontIndex(int idx)
public void setFontFamily(java.lang.String fontFamily)
public java.lang.String getFontFamily()
getFontFamily in interface TextRunpublic PaintStyle.SolidPaint getFontColor()
getFontColor in interface TextRunpublic void setFontColor(int bgr)
Colorpublic void setFontColor(java.awt.Color color)
setFontColor in interface TextRunpublic void setFontColor(PaintStyle color)
setFontColor in interface TextRun
protected void setFlag(int index,
boolean value)
public HSLFTextParagraph getTextParagraph()
public TextRun.TextCap getTextCap()
getTextCap in interface TextRunpublic boolean isSubscript()
isSubscript in interface TextRunpublic boolean isSuperscript()
isSuperscript in interface TextRunpublic byte getPitchAndFamily()
getPitchAndFamily in interface TextRun
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||