com.androidplot.xy
Class LineAndPointFormatter
java.lang.Object
com.androidplot.ui.Formatter
com.androidplot.xy.XYSeriesFormatter<XYRegionFormatter>
com.androidplot.xy.LineAndPointFormatter
- Direct Known Subclasses:
- BezierLineAndPointFormatter, StepFormatter
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.
Constructor Summary |
LineAndPointFormatter(java.lang.Integer lineColor,
java.lang.Integer vertexColor,
java.lang.Integer fillColor)
Set corresponding parameter to null to disable the drawing of lines, vertexes or fill. |
LineAndPointFormatter(java.lang.Integer lineColor,
java.lang.Integer vertexColor,
java.lang.Integer fillColor,
FillDirection fillDir)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineAndPointFormatter
public LineAndPointFormatter(java.lang.Integer lineColor,
java.lang.Integer vertexColor,
java.lang.Integer fillColor)
- Set corresponding parameter to null to disable the drawing of lines, vertexes or fill.
Uses a default of FillDirection.BOTTOM.
- Parameters:
lineColor
- vertexColor
- fillColor
-
LineAndPointFormatter
public LineAndPointFormatter(java.lang.Integer lineColor,
java.lang.Integer vertexColor,
java.lang.Integer fillColor,
FillDirection fillDir)
- Parameters:
lineColor
- vertexColor
- fillColor
- fillDir
- Determines which edge or origin of the plot is used to close the path for filling.
getFillDirection
public FillDirection getFillDirection()
setFillDirection
public void setFillDirection(FillDirection fillDirection)
- Sets which edge to use to close the line's path for filling purposes.
See
FillDirection
.
- Parameters:
fillDirection
-
enableShadows
public void enableShadows()
- Enables the shadow layer on linePaint and shadowPaint by calling
setShadowLayer() with preset values.
disableShadows
public void disableShadows()
getLinePaint
public android.graphics.Paint getLinePaint()
setLinePaint
public void setLinePaint(android.graphics.Paint linePaint)
getVertexPaint
public android.graphics.Paint getVertexPaint()
setVertexPaint
public void setVertexPaint(android.graphics.Paint vertexPaint)
getFillPaint
public android.graphics.Paint getFillPaint()
setFillPaint
public void setFillPaint(android.graphics.Paint fillPaint)
getLabelStep
public int getLabelStep()
setLabelStep
public void setLabelStep(int labelStep)
Copyright © 2012. All Rights Reserved.