com.androidplot.xy
Class XYSeriesFormatter<XYRegionFormatterType extends XYRegionFormatter>

java.lang.Object
  extended by com.androidplot.ui.Formatter<XYPlot>
      extended by com.androidplot.xy.XYSeriesFormatter<XYRegionFormatterType>
Direct Known Subclasses:
LineAndPointFormatter

public abstract class XYSeriesFormatter<XYRegionFormatterType extends XYRegionFormatter>
extends Formatter<XYPlot>


Constructor Summary
XYSeriesFormatter()
           
 
Method Summary
 void addRegion(RectRegion region, XYRegionFormatterType regionFormatter)
           
 XYRegionFormatterType getRegionFormatter(RectRegion region)
           
 ZIndexable<RectRegion> getRegions()
          Can be used to access z-index manipulation methods of ZIndexable.
abstract  SeriesRenderer getRendererInstance(XYPlot plot)
          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.
 void removeRegion(RectRegion region)
           
 
Methods inherited from class com.androidplot.ui.Formatter
configure, getRendererClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYSeriesFormatter

public XYSeriesFormatter()
Method Detail

addRegion

public void addRegion(RectRegion region,
                      XYRegionFormatterType regionFormatter)

removeRegion

public void removeRegion(RectRegion region)

getRegions

public ZIndexable<RectRegion> getRegions()
Can be used to access z-index manipulation methods of ZIndexable.

Returns:

getRegionFormatter

public XYRegionFormatterType getRegionFormatter(RectRegion region)
Parameters:
region -
Returns:

getRendererInstance

public abstract SeriesRenderer getRendererInstance(XYPlot plot)
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.

Specified by:
getRendererInstance in class Formatter<XYPlot>
Parameters:
plot -
Returns:


Copyright © 2010-2013 androidplot.com. All Rights Reserved.