public interface TextRun
Modifier and Type | Interface and Description |
---|---|
static class |
TextRun.TextCap |
Modifier and Type | Method and Description |
---|---|
PaintStyle |
getFontColor()
Returns the font color.
|
java.lang.String |
getFontFamily() |
java.lang.Double |
getFontSize() |
byte |
getPitchAndFamily() |
java.lang.String |
getRawText() |
TextRun.TextCap |
getTextCap() |
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isStrikethrough() |
boolean |
isSubscript() |
boolean |
isSuperscript() |
boolean |
isUnderlined() |
void |
setFontColor(java.awt.Color color)
Sets the (solid) font color - convenience function
|
void |
setFontColor(PaintStyle color)
Sets the font color
|
void |
setFontSize(java.lang.Double fontSize) |
void |
setText(java.lang.String text) |
java.lang.String getRawText()
void setText(java.lang.String text)
TextRun.TextCap getTextCap()
PaintStyle getFontColor()
PaintStyle.SolidPaint
, but but also other classes are possibleDrawPaint.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()
boolean isBold()
boolean isItalic()
boolean isUnderlined()
boolean isStrikethrough()
boolean isSubscript()
boolean isSuperscript()
byte getPitchAndFamily()
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.