com.androidplot.xy
Class StepFormatter
java.lang.Object
com.androidplot.ui.Formatter<XYPlot>
com.androidplot.xy.XYSeriesFormatter<XYRegionFormatter>
com.androidplot.xy.LineAndPointFormatter
com.androidplot.xy.StepFormatter
public class StepFormatter
- extends LineAndPointFormatter
Constructor Summary |
StepFormatter(android.content.Context ctx,
int xmlCfgId)
Provided as a convenience to users; allows instantiation and xml configuration
to take place in a single line |
StepFormatter(Integer lineColor,
Integer fillColor)
|
Methods inherited from class com.androidplot.xy.LineAndPointFormatter |
disableShadows, enableShadows, getFillDirection, getFillPaint, getLinePaint, getPointLabelFormatter, getVertexPaint, setFillDirection, setFillPaint, setLinePaint, setPointLabelFormatter, setVertexPaint |
StepFormatter
public StepFormatter(android.content.Context ctx,
int xmlCfgId)
- Provided as a convenience to users; allows instantiation and xml configuration
to take place in a single line
- Parameters:
ctx
- xmlCfgId
- Id of the xml config file within /res/xml
StepFormatter
public StepFormatter(Integer lineColor,
Integer fillColor)
getRendererClass
public Class<? extends DataRenderer> getRendererClass()
- Overrides:
getRendererClass
in class LineAndPointFormatter
- Returns:
- The Class of DataRenderer that should be used.
getRendererInstance
public DataRenderer getRendererInstance(XYPlot plot)
- Description copied from class:
XYSeriesFormatter
- Not completely sure why this is necessary, but if it's not here then
subclasses are forced to take a Plot instead of an XYPlot as a parameter,
which in turn breaks the pattern.
- Overrides:
getRendererInstance
in class LineAndPointFormatter
- Returns:
- An instance of DataRenderer that took plot as an argument to its constructor.
Copyright © 2010-2013 androidplot.com. All Rights Reserved.