|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextRun
Some text.
Nested Class Summary | |
---|---|
static class |
TextRun.TextCap
|
Method Summary | |
---|---|
Hyperlink<?,?> |
createHyperlink()
Creates a new hyperlink and assigns it to this text run. |
PaintStyle |
getFontColor()
Returns the font color. |
java.lang.String |
getFontFamily()
|
java.lang.Double |
getFontSize()
Returns the font size which is either set directly on this text run or given from the slide layout |
Hyperlink<?,?> |
getHyperlink()
Return the associated hyperlink |
byte |
getPitchAndFamily()
|
java.lang.String |
getRawText()
|
TextRun.TextCap |
getTextCap()
|
boolean |
isBold()
|
boolean |
isItalic()
|
boolean |
isStrikethrough()
|
boolean |
isSubscript()
|
boolean |
isSuperscript()
|
boolean |
isUnderlined()
|
void |
setBold(boolean bold)
Sets the bold state |
void |
setFontColor(java.awt.Color color)
Sets the (solid) font color - convenience function |
void |
setFontColor(PaintStyle color)
Sets the font color |
void |
setFontFamily(java.lang.String typeface)
Specifies the typeface, or name of the font that is to be used for this text run. |
void |
setFontSize(java.lang.Double fontSize)
Sets the font size directly on this text run, if null is given, the font size defaults to the values given from the slide layout |
void |
setItalic(boolean italic)
Sets the italic state |
void |
setStrikethrough(boolean stroked)
Sets the strikethrough state |
void |
setText(java.lang.String text)
|
void |
setUnderlined(boolean underlined)
Sets the underlined state |
Method Detail |
---|
java.lang.String getRawText()
void setText(java.lang.String text)
TextRun.TextCap getTextCap()
PaintStyle getFontColor()
PaintStyle.SolidPaint
, but but also other classes are possible
DrawPaint.getPaint(java.awt.Graphics2D, PaintStyle)
,
PaintStyle.SolidPaint.getSolidColor()
,
DrawPaint.applyColorTransform(ColorStyle)
void setFontColor(java.awt.Color color)
color
- the colorvoid setFontColor(PaintStyle color)
color
- the colorDrawPaint.createSolidPaint(Color)
java.lang.Double getFontSize()
void setFontSize(java.lang.Double fontSize)
fontSize
- font size in points, if null the underlying fontsize will be unsetjava.lang.String getFontFamily()
void setFontFamily(java.lang.String typeface)
typeface
- the font to apply to this text run.
The value of null
unsets the Typeface attrubute from the underlying xml.boolean isBold()
void setBold(boolean bold)
bold
- set to true for bold text, false for normal weightboolean isItalic()
void setItalic(boolean italic)
italic
- set to true for italic text, false for non-italicsboolean isUnderlined()
void setUnderlined(boolean underlined)
underlined
- set to true for underlined text, false for no underliningboolean isStrikethrough()
void setStrikethrough(boolean stroked)
stroked
- set to true for stroked text, false for no strokingboolean isSubscript()
boolean isSuperscript()
byte getPitchAndFamily()
Hyperlink<?,?> getHyperlink()
Hyperlink<?,?> createHyperlink()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |