-
public class LineAndPointFormatter extends XYSeriesFormatter<XYRegionFormatter>
Defines the visual aesthetics of an XYSeries; outline color and width, fill style, vertex size and color, shadowing, etc.
-
-
Field Summary
Fields Modifier and Type Field Description protected FillDirection
fillDirection
protected Paint
linePaint
protected Paint
vertexPaint
protected Paint
fillPaint
protected InterpolationParams
interpolationParams
-
Constructor Summary
Constructors Constructor Description LineAndPointFormatter(Context context, int xmlCfgId)
LineAndPointFormatter()
Should only be used in conjunction with calls to configure()... LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf)
LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf, FillDirection fillDir)
-
Method Summary
Modifier and Type Method Description FillDirection
getFillDirection()
void
setFillDirection(FillDirection fillDirection)
Sets which edge to use to close the line's path for filling purposes. Paint
getLinePaint()
Get the Paint used to draw lines. void
setLinePaint(Paint linePaint)
Paint
getVertexPaint()
Get the Paint used to draw vertices (points). void
setVertexPaint(Paint vertexPaint)
Paint
getFillPaint()
Get the Paint used to fill series areas. void
setFillPaint(Paint fillPaint)
InterpolationParams
getInterpolationParams()
void
setInterpolationParams(InterpolationParams params)
Class<out SeriesRenderer>
getRendererClass()
SeriesRenderer
doGetRendererInstance(XYPlot plot)
boolean
hasLinePaint()
boolean
hasVertexPaint()
boolean
hasFillPaint()
-
Methods inherited from class com.androidplot.xy.XYSeriesFormatter
addRegion, getPointLabelFormatter, getPointLabeler, getRegionFormatter, getRegions, hasPointLabelFormatter, removeRegion, setPointLabelFormatter, setPointLabeler
-
Methods inherited from class com.androidplot.ui.Formatter
configure, getRendererInstance, isLegendIconEnabled, setLegendIconEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LineAndPointFormatter
LineAndPointFormatter(Context context, int xmlCfgId)
-
LineAndPointFormatter
LineAndPointFormatter()
Should only be used in conjunction with calls to configure()...
-
LineAndPointFormatter
LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf)
-
LineAndPointFormatter
LineAndPointFormatter(Integer lineColor, Integer vertexColor, Integer fillColor, PointLabelFormatter plf, FillDirection fillDir)
-
-
Method Detail
-
getFillDirection
FillDirection getFillDirection()
-
setFillDirection
void setFillDirection(FillDirection fillDirection)
Sets which edge to use to close the line's path for filling purposes.See FillDirection.
-
getLinePaint
Paint getLinePaint()
Get the Paint used to draw lines. Will instantiate and a new default instanceif it is currently null. To run whether or not line paint has been set, use hasLinePaint.
-
setLinePaint
void setLinePaint(Paint linePaint)
-
getVertexPaint
Paint getVertexPaint()
Get the Paint used to draw vertices (points). Will instantiate and a new default instanceif it is currently null. To run whether or not vertex paint has been set, use hasVertexPaint.
-
setVertexPaint
void setVertexPaint(Paint vertexPaint)
-
getFillPaint
Paint getFillPaint()
Get the Paint used to fill series areas. Will instantiate and a new default instanceif it is currently null. To run whether or not fill paint has been set, use hasFillPaint.
-
setFillPaint
void setFillPaint(Paint fillPaint)
-
getInterpolationParams
InterpolationParams getInterpolationParams()
-
setInterpolationParams
void setInterpolationParams(InterpolationParams params)
-
getRendererClass
Class<out SeriesRenderer> getRendererClass()
-
doGetRendererInstance
SeriesRenderer doGetRendererInstance(XYPlot plot)
-
hasLinePaint
boolean hasLinePaint()
-
hasVertexPaint
boolean hasVertexPaint()
-
hasFillPaint
boolean hasFillPaint()
-
-
-
-