-
public abstract class Formatter<PlotType extends Plot>
Base class of all Formatters. Encapsulates visual elements of a series; line style, color etc. Implementors of this class should include both a default constructor and a one argument constructor in the following form:
{@code * // provided as a convenience to users; allows instantiation and * // xml configuration in a single line. * public MyFormatter(Context ctx, int xmlCfgId) { * // prevent configuration of classes derived from this one: * if (getClass().equals(MyFormatter.class)) { * Configurator.configure(ctx, this, xmlCfgId); * } * } *
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isLegendIconEnabled
-
Method Summary
Modifier and Type Method Description boolean
isLegendIconEnabled()
void
configure(Context ctx, int xmlCfgId)
<T extends SeriesRenderer> T
getRendererInstance(PlotType plot)
abstract Class<out SeriesRenderer>
getRendererClass()
void
setLegendIconEnabled(boolean legendIconEnabled)
Sets whether or not a legend icon should be drawn for the series associated with this formatter. -
-
Constructor Detail
-
Formatter
Formatter()
-
Formatter
Formatter(Context ctx, int xmlCfgId)
-
-
Method Detail
-
isLegendIconEnabled
boolean isLegendIconEnabled()
-
getRendererInstance
<T extends SeriesRenderer> T getRendererInstance(PlotType plot)
-
getRendererClass
abstract Class<out SeriesRenderer> getRendererClass()
-
setLegendIconEnabled
void setLegendIconEnabled(boolean legendIconEnabled)
Sets whether or not a legend icon should be drawn for the series associated with this formatter.
-
-
-
-