public class LineAndPointFormatter extends XYSeriesFormatter<XYRegionFormatter>
Modifier and Type | Field and Description |
---|---|
protected FillDirection |
fillDirection |
protected android.graphics.Paint |
fillPaint |
protected InterpolationParams |
interpolationParams |
protected android.graphics.Paint |
linePaint |
protected android.graphics.Paint |
vertexPaint |
Constructor and Description |
---|
LineAndPointFormatter()
Should only be used in conjunction with calls to configure()...
|
LineAndPointFormatter(android.content.Context context,
int xmlCfgId) |
LineAndPointFormatter(java.lang.Integer lineColor,
java.lang.Integer vertexColor,
java.lang.Integer fillColor,
PointLabelFormatter plf) |
LineAndPointFormatter(java.lang.Integer lineColor,
java.lang.Integer vertexColor,
java.lang.Integer fillColor,
PointLabelFormatter plf,
FillDirection fillDir) |
Modifier and Type | Method and Description |
---|---|
SeriesRenderer |
doGetRendererInstance(XYPlot plot) |
FillDirection |
getFillDirection() |
android.graphics.Paint |
getFillPaint()
Get the
Paint used to fill series areas. |
InterpolationParams |
getInterpolationParams() |
android.graphics.Paint |
getLinePaint()
Get the
Paint used to draw lines. |
java.lang.Class<? extends SeriesRenderer> |
getRendererClass() |
android.graphics.Paint |
getVertexPaint()
Get the
Paint used to draw vertices (points). |
boolean |
hasFillPaint() |
boolean |
hasLinePaint() |
boolean |
hasVertexPaint() |
protected void |
initFillPaint(java.lang.Integer fillColor) |
protected void |
initLinePaint(java.lang.Integer lineColor) |
protected void |
initVertexPaint(java.lang.Integer vertexColor) |
void |
setFillDirection(FillDirection fillDirection)
Sets which edge to use to close the line's path for filling purposes.
|
void |
setFillPaint(android.graphics.Paint fillPaint) |
void |
setInterpolationParams(InterpolationParams params) |
void |
setLinePaint(android.graphics.Paint linePaint) |
void |
setVertexPaint(android.graphics.Paint vertexPaint) |
addRegion, getPointLabeler, getPointLabelFormatter, getRegionFormatter, getRegions, hasPointLabelFormatter, removeRegion, setPointLabeler, setPointLabelFormatter
configure, getRendererInstance, isLegendIconEnabled, setLegendIconEnabled
protected FillDirection fillDirection
protected android.graphics.Paint linePaint
protected android.graphics.Paint vertexPaint
protected android.graphics.Paint fillPaint
protected InterpolationParams interpolationParams
public LineAndPointFormatter(android.content.Context context, int xmlCfgId)
public LineAndPointFormatter()
public LineAndPointFormatter(java.lang.Integer lineColor, java.lang.Integer vertexColor, java.lang.Integer fillColor, PointLabelFormatter plf)
public LineAndPointFormatter(java.lang.Integer lineColor, java.lang.Integer vertexColor, java.lang.Integer fillColor, PointLabelFormatter plf, FillDirection fillDir)
public FillDirection getFillDirection()
public void setFillDirection(FillDirection fillDirection)
FillDirection
.fillDirection
- public java.lang.Class<? extends SeriesRenderer> getRendererClass()
getRendererClass
in class Formatter<XYPlot>
public SeriesRenderer doGetRendererInstance(XYPlot plot)
doGetRendererInstance
in class Formatter<XYPlot>
protected void initLinePaint(java.lang.Integer lineColor)
protected void initVertexPaint(java.lang.Integer vertexColor)
protected void initFillPaint(java.lang.Integer fillColor)
public boolean hasLinePaint()
public android.graphics.Paint getLinePaint()
Paint
used to draw lines. Will instantiate and a new default instance
if it is currently null. To run whether or not line paint has been set, use
hasLinePaint()
.public void setLinePaint(android.graphics.Paint linePaint)
public boolean hasVertexPaint()
public android.graphics.Paint getVertexPaint()
Paint
used to draw vertices (points). Will instantiate and a new default instance
if it is currently null. To run whether or not vertex paint has been set, use
hasVertexPaint()
.public void setVertexPaint(android.graphics.Paint vertexPaint)
public boolean hasFillPaint()
public android.graphics.Paint getFillPaint()
Paint
used to fill series areas. Will instantiate and a new default instance
if it is currently null. To run whether or not fill paint has been set, use
hasFillPaint()
.public void setFillPaint(android.graphics.Paint fillPaint)
public InterpolationParams getInterpolationParams()
public void setInterpolationParams(InterpolationParams params)