public final class ChartFont extends TeeBase
Title: ChartFont class
Description: Common Chart Font. Font methods used at several objects.
Copyright (c) 2005-2019 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.
Default value: false |
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.
Default value: false |
java.lang.String |
getName()
Defines a Font type for text.
Default value: Arial |
ChartPen |
getOutline() |
Paint |
getPaint(float fontZoom) |
Shadow |
getShadow()
Accesses the shadow properties of the font.
|
int |
getSize()
The Font size (in points) for text.
When managing Font sizes of Drawing Canvas custom outputted text relative to Chart text (titles, labels, etc.), use Font.Height to size the Canvas text. |
boolean |
getStrikeout()
Font Strikeout on/off.
Default value: false |
boolean |
getUnderline()
Underline Font for text.
Default value: false |
int |
getUnit()
The Units to measure the Font size.
Default value: TypedValue.COMPLEX_UNIT_SP |
void |
hideOutline() |
void |
hideShadow() |
void |
invalidate()
Use Invalidate when the entire canvas needs to be repainted.
When more than one region within the canvas needs repainting, Invalidate will cause the entire window to be repainted in a single pass, avoiding flicker caused by redundant repaints. There is no performance penalty for calling Invalidate multiple times before the control is actually repainted. |
void |
reset() |
void |
setBold(boolean value)
Sets Font bold for text.
Default value: false |
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.
Default value: false |
void |
setName(java.lang.String value)
Specifies a Font type for text.
Default value: Arial |
void |
setSize(int value)
Sets Font sizing (in points) for text.
Default value: 8 |
void |
setStrikeout(boolean value)
Sets Font Strikeout on/off.
Default value: false |
void |
setUnderline(boolean value)
Sets Font underline on/off.
Default value: false |
void |
setUnit(int value)
Sets Units to measure the Font size.
Default value: TypedValue.COMPLEX_UNIT_SP |
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()