Sets the model by use of a class name.
It creates an instance automatically.

Throws:

java.lang.ClassNotFoundException

java.lang.NoSuchMethodException

java.lang.IllegalAccessException

java.lang.InstantiationException

java.lang.reflect.InvocationTargetException

getTitleFont

public java.awt.Font getTitleFont()

Returns the title font of this chart. If you saw squares rather than correct
words in title, check whether the default title font supports your
characters (e.g. Chinese). You probably have to set this font accordingly.

Returns:

the title font

setTitleFont

public void setTitleFont(java.awt.Font font)

Sets the title font of this chart. If you saw squares rather than correct
words in title, check whether the default title font supports your
characters (e.g. Chinese). You probably have to set this font accordingly.

Parameters:

font - the title font of this chart

getLegendFont

public java.awt.Font getLegendFont()

Returns the legend font of this chart. If you saw squares rather than correct
words in legend, check whether the default legend font supports your
characters (e.g. Chinese). You probably have to set this font accordingly.

Returns:

the title font

setLegendFont

public void setLegendFont(java.awt.Font font)

Sets the legend font of this chart. If you saw squares rather than correct
words in legend, check whether the default legend font supports your
characters (e.g. Chinese). You probably have to set this font accordingly.

Parameters:

font - the legend font of this chart

getXAxisTickFont

public java.awt.Font getXAxisTickFont()

Returns the tick number font of x axis of this chart. If you saw squares
rather than correct words in x axis tick, check whether the default x axis
tick font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Returns:

the tick number font of x axis of this chart

setXAxisTickFont

public void setXAxisTickFont(java.awt.Font axisTickFont)

Sets the tick number font of x axis of this chart. If you saw squares
rather than correct words in x axis tick, check whether the default x axis
tick font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Parameters:

axisTickFont - the tick number font of x axis of this chart

getXAxisFont

public java.awt.Font getXAxisFont()

Returns the label font of x axis of this chart. If you saw squares
rather than correct words in x axis label, check whether the default x axis
label font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Returns:

the label font of x axis of this chart

setXAxisFont

public void setXAxisFont(java.awt.Font axisFont)

Sets the label font of x axis of this chart. If you saw squares
rather than correct words in x axis label, check whether the default x axis
label font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Parameters:

axisFont - the label font of x axis of this chart

getYAxisTickFont

public java.awt.Font getYAxisTickFont()

Returns the tick number font of y axis of this chart. If you saw squares
rather than correct words in y axis tick, check whether the default y axis
tick font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Returns:

the tick number font of y axis of this chart

setYAxisTickFont

public void setYAxisTickFont(java.awt.Font axisTickFont)

Sets the tick number font of y axis of this chart. If you saw squares
rather than correct words in y axis tick, check whether the default y axis
tick font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Parameters:

axisTickFont - the tick number font of y axis of this chart

getYAxisFont

public java.awt.Font getYAxisFont()

Returns the label font of y axis of this chart. If you saw squares
rather than correct words in y axis label, check whether the default y axis
label font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

Returns:

the label font of y axis of this chart

setYAxisFont

public void setYAxisFont(java.awt.Font axisFont)

Sets the label font of y axis of this chart. If you saw squares
rather than correct words in y axis label, check whether the default y axis
label font supports your characters (e.g. Chinese). You probably
have to set this font accordingly.

newChartEngine

By default, it looks up the library property called
org.zkoss.zul.chart.engine.class.
If found, the value is assumed to be
the class name of the chart engine (it must implement
ChartEngine).
If not found, UiException is thrown.

Version Difference

ZK 5.0 and earlier, the second registration is ignored if an event
listener has been registered twice.
However, since 6.0.0 and later, it won't be ignored. If a listener has
been registered multiple times, it will be invoked multiple times.

If you prefer to ignore the second registration, you could specify
a library property called "org.zkoss.zk.ui.EventListener.duplicateIgnored"
to true.