public abstract class Formatter<PlotType extends Plot>
extends java.lang.Object
// 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); } }
Constructor and Description |
---|
Formatter() |
Formatter(android.content.Context ctx,
int xmlCfgId) |
Modifier and Type | Method and Description |
---|---|
void |
configure(android.content.Context ctx,
int xmlCfgId) |
protected abstract SeriesRenderer |
doGetRendererInstance(PlotType plot) |
abstract java.lang.Class<? extends SeriesRenderer> |
getRendererClass() |
<T extends SeriesRenderer> |
getRendererInstance(PlotType plot) |
boolean |
isLegendIconEnabled() |
void |
setLegendIconEnabled(boolean legendIconEnabled)
Sets whether or not a legend icon should be drawn for the series associated with this formatter.
|
public Formatter()
public Formatter(android.content.Context ctx, int xmlCfgId)
public void configure(android.content.Context ctx, int xmlCfgId)
public <T extends SeriesRenderer> T getRendererInstance(PlotType plot)
T
- plot
- public abstract java.lang.Class<? extends SeriesRenderer> getRendererClass()
protected abstract SeriesRenderer doGetRendererInstance(PlotType plot)
public boolean isLegendIconEnabled()
public void setLegendIconEnabled(boolean legendIconEnabled)
legendIconEnabled
-