|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.chart.model.StyledText
public class StyledText
Constructor Summary | |
---|---|
StyledText()
|
|
StyledText(String text)
|
|
StyledText(String text,
String fontFamily,
CssStyle.FontStyle fontStyle,
CssStyle.FontWeight fontWeight,
int fontSize)
|
Method Summary | |
---|---|
CssStyle.TextAlignment |
getAlignment()
|
Integer |
getBackgroundColor()
|
Integer |
getColor()
|
String |
getFontFamily()
|
Integer |
getFontSize()
|
CssStyle.FontStyle |
getFontStyle()
|
CssStyle.FontWeight |
getFontWeight()
|
CssStyle |
getStyle()
|
String |
getText()
|
void |
setAlignment(CssStyle.TextAlignment textAlignment)
Alignment of text within its given context. |
void |
setBackgroundColor(Integer color)
Hex RGB notation of the desired background color |
void |
setColor(Integer color)
Hex RGB notation of the desired color |
void |
setFont(String family,
Integer size)
#setFont(String, Integer, FontStyle, FontWeight) |
void |
setFont(String family,
Integer size,
CssStyle.FontStyle fontStyle,
CssStyle.FontWeight fontWeight)
The font-family is the name of the font or group of fonts to be used. |
void |
setFontFamily(String family)
#setFont(String, Integer, FontStyle, FontWeight) |
void |
setFontSize(Integer size)
#setFont(String, Integer, FontStyle, FontWeight) |
void |
setFontStyle(CssStyle.FontStyle fontStyle)
#setFont(String, Integer, FontStyle, FontWeight) |
void |
setFontWeight(CssStyle.FontWeight weight)
#setFont(String, Integer, FontStyle, FontWeight) |
void |
setText(String text)
The text content of the item |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyledText(String text)
public StyledText(String text, String fontFamily, CssStyle.FontStyle fontStyle, CssStyle.FontWeight fontWeight, int fontSize)
public StyledText()
Method Detail |
---|
public String getText()
public void setText(String text)
text
- public String getFontFamily()
public Integer getFontSize()
public CssStyle.FontStyle getFontStyle()
public CssStyle.FontWeight getFontWeight()
public void setFont(String family, Integer size, CssStyle.FontStyle fontStyle, CssStyle.FontWeight fontWeight)
The font-family is the name of the font or group of fonts to be used.
For example |
---|
arial |
monospace |
times new roman |
verdana |
The font-size is the size in pixels of the font.
The font-style is the visual styling of the font.
Possible values |
---|
NORMAL |
ITALIC |
OBLIQUE |
The font-weight is the visual density of the text.
Possible values |
---|
NORMAL |
BOLD |
family
- size
- fontStyle
- fontWeight
- public void setFont(String family, Integer size)
#setFont(String, Integer, FontStyle, FontWeight)
public void setFontFamily(String family)
#setFont(String, Integer, FontStyle, FontWeight)
public void setFontSize(Integer size)
#setFont(String, Integer, FontStyle, FontWeight)
public void setFontStyle(CssStyle.FontStyle fontStyle)
#setFont(String, Integer, FontStyle, FontWeight)
public void setFontWeight(CssStyle.FontWeight weight)
#setFont(String, Integer, FontStyle, FontWeight)
public Integer getBackgroundColor()
public void setBackgroundColor(Integer color)
Basic colors | |
---|---|
White: | #FFFFFF |
Black: | #000000 |
Grey: | #888888 |
Red: | #FF0000 |
Green: | #00FF00 |
Blue: | #0000FF |
color
- public Integer getColor()
public void setColor(Integer color)
Basic colors | |
---|---|
White | #FFFFFF |
Black | #000000 |
Grey | #888888 |
Red | #FF0000 |
Green | #00FF00 |
Blue | #0000FF |
color
- public CssStyle getStyle()
public CssStyle.TextAlignment getAlignment()
public void setAlignment(CssStyle.TextAlignment textAlignment)
Possible values |
---|
LEFT |
CENTER |
RIGHT |
textAlignment
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |