public final class ChartFont extends TeeBase
Title: ChartFont class
Description: Common Chart Font. Font methods used at several objects.
Copyright (c) 2005-2018 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULTFAMILY |
static int |
DEFAULTSIZE |
chart, InternalUse
Constructor and Description |
---|
ChartFont(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
void |
assign(ChartFont f) |
boolean |
getBold()
Bold Font for text.
|
ChartBrush |
getBrush()
Sets the Brush characteristics of the font.
|
Color |
getColor()
Defines a Font color for text.
|
double |
getDrawingFontSize() |
Gradient |
getGradient()
Applies a gradient fill to the font.
|
boolean |
getItalic()
Italic Font (true or false) for text.
|
java.lang.String |
getName()
Defines a Font type for text.
|
ChartPen |
getOutline() |
Paint |
getPaint(float fontZoom) |
Shadow |
getShadow()
Accesses the shadow properties of the font.
|
int |
getSize()
The Font size (in points) for text.
|
boolean |
getStrikeout()
Font Strikeout on/off.
|
boolean |
getUnderline()
Underline Font for text.
|
int |
getUnit()
The Units to measure the Font size.
|
void |
hideOutline() |
void |
hideShadow() |
void |
invalidate()
Use Invalidate when the entire canvas needs to be repainted.
|
void |
reset() |
void |
setBold(boolean value)
Sets Font bold for text.
|
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setColor(Color value)
Defines a Font color for text.
|
void |
setItalic(boolean value)
Sets Font italic (true or false) for text.
|
void |
setName(java.lang.String value)
Specifies a Font type for text.
|
void |
setSize(int value)
Sets Font sizing (in points) for text.
|
void |
setStrikeout(boolean value)
Sets Font Strikeout on/off.
|
void |
setUnderline(boolean value)
Sets Font underline on/off.
|
void |
setUnit(int value)
Sets Units to measure the Font size.
|
boolean |
shouldDrawShadow() |
getChart, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public static final transient int DEFAULTSIZE
public static final transient java.lang.String DEFAULTFAMILY
public ChartFont(IBaseChart c)
public java.lang.String getName()
public void setName(java.lang.String value)
value
- Stringpublic void invalidate()
invalidate
in class TeeBase
public int getSize()
public void setSize(int value)
value
- intpublic int getUnit()
public void setUnit(int value)
value
- intpublic boolean getBold()
public void setBold(boolean value)
value
- booleanpublic void reset()
public boolean getItalic()
public void setItalic(boolean value)
value
- booleanpublic boolean getUnderline()
public void setUnderline(boolean value)
value
- booleanpublic boolean getStrikeout()
public void setStrikeout(boolean value)
value
- booleanpublic Color getColor()
public void setColor(Color value)
value
- Colorpublic Gradient getGradient()
public Shadow getShadow()
public boolean shouldDrawShadow()
public void assign(ChartFont f)
public void setChart(IBaseChart c)
TeeBase
public ChartBrush getBrush()
public ChartPen getOutline()
public double getDrawingFontSize()
public Paint getPaint(float fontZoom)
public void hideOutline()
public void hideShadow()