Class LineAndPointFormatter
-
- All Implemented Interfaces:
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 public PointLabelerpointLabelerpublic PointLabelFormatterpointLabelFormatterpublic booleanisLegendIconEnabled
-
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 FillDirectiongetFillDirection()voidsetFillDirection(@NonNull() FillDirection fillDirection)Sets which edge to use to close the line's path for filling purposes. Class<out SeriesRenderer>getRendererClass()SeriesRendererdoGetRendererInstance(@NonNull() XYPlot plot)booleanhasLinePaint()PaintgetLinePaint()Get the Paint used to draw lines. voidsetLinePaint(@Nullable() Paint linePaint)booleanhasVertexPaint()PaintgetVertexPaint()Get the Paint used to draw vertices (points). voidsetVertexPaint(@Nullable() Paint vertexPaint)booleanhasFillPaint()PaintgetFillPaint()Get the Paint used to fill series areas. voidsetFillPaint(@Nullable() Paint fillPaint)InterpolationParamsgetInterpolationParams()voidsetInterpolationParams(@Nullable() InterpolationParams params)-
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
@NonNull() FillDirection getFillDirection()
-
setFillDirection
void setFillDirection(@NonNull() FillDirection fillDirection)
Sets which edge to use to close the line's path for filling purposes. See FillDirection.
-
getRendererClass
@NonNull() Class<out SeriesRenderer> getRendererClass()
- Returns:
The Class of SeriesRenderer that should be used when rendering series associated with instances of this formatter.
-
doGetRendererInstance
@NonNull() SeriesRenderer doGetRendererInstance(@NonNull() XYPlot plot)
- Returns:
An instance of SeriesRenderer constructed with the specified plot.
-
hasLinePaint
boolean hasLinePaint()
- Returns:
True if linePaint has been set, false otherwise.
-
getLinePaint
@NonNull() Paint getLinePaint()
Get the 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.
-
setLinePaint
void setLinePaint(@Nullable() Paint linePaint)
-
hasVertexPaint
boolean hasVertexPaint()
- Returns:
True if vertexPaint has been set, false otherwise.
-
getVertexPaint
@NonNull() Paint getVertexPaint()
Get the 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.
-
setVertexPaint
void setVertexPaint(@Nullable() Paint vertexPaint)
-
hasFillPaint
boolean hasFillPaint()
- Returns:
True if fillPaint has been set, false otherwise.
-
getFillPaint
@Nullable() Paint getFillPaint()
Get the 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.
-
setFillPaint
void setFillPaint(@Nullable() Paint fillPaint)
-
getInterpolationParams
@Nullable() InterpolationParams getInterpolationParams()
-
setInterpolationParams
void setInterpolationParams(@Nullable() InterpolationParams params)
-
-
-
-