Package com.androidplot.xy
Class BarFormatter
-
- All Implemented Interfaces:
public class BarFormatter extends LineAndPointFormatter
-
-
Field Summary
Fields Modifier and Type Field Description public floatmarginToppublic floatmarginBottompublic floatmarginLeftpublic floatmarginRightpublic PointLabelerpointLabelerpublic PointLabelFormatterpointLabelFormatterpublic booleanisLegendIconEnabled
-
Constructor Summary
Constructors Constructor Description BarFormatter()Should only be used in conjunction with calls to configure()... BarFormatter(int fillColor, int borderColor)BarFormatter(Context context, int xmlCfgId)
-
Method Summary
Modifier and Type Method Description floatgetMarginTop()voidsetMarginTop(float marginTop)floatgetMarginBottom()voidsetMarginBottom(float marginBottom)floatgetMarginLeft()voidsetMarginLeft(float marginLeft)floatgetMarginRight()voidsetMarginRight(float marginRight)PaintgetFillPaint()PaintgetBorderPaint()voidsetBorderPaint(@Nullable() Paint borderPaint)Class<out SeriesRenderer>getRendererClass()SeriesRendererdoGetRendererInstance(@NonNull() XYPlot plot)-
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 com.androidplot.xy.LineAndPointFormatter
getFillDirection, getInterpolationParams, getLinePaint, getVertexPaint, hasFillPaint, hasLinePaint, hasVertexPaint, setFillDirection, setFillPaint, setInterpolationParams, setLinePaint, setVertexPaint -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BarFormatter
BarFormatter()
Should only be used in conjunction with calls to configure()...
-
BarFormatter
BarFormatter(int fillColor, int borderColor)
-
BarFormatter
BarFormatter(Context context, int xmlCfgId)
-
-
Method Detail
-
getMarginTop
float getMarginTop()
-
setMarginTop
void setMarginTop(float marginTop)
-
getMarginBottom
float getMarginBottom()
-
setMarginBottom
void setMarginBottom(float marginBottom)
-
getMarginLeft
float getMarginLeft()
-
setMarginLeft
void setMarginLeft(float marginLeft)
-
getMarginRight
float getMarginRight()
-
setMarginRight
void setMarginRight(float marginRight)
-
getFillPaint
@Nullable() Paint getFillPaint()
- Returns:
The fill paint, or null if none has been set. Unlike getFillPaint no default is instantiated.
-
getBorderPaint
@Nullable() Paint getBorderPaint()
- Returns:
The border paint, or null if none has been set. Bar borders are stored as the inherited line paint, so hasLinePaint reports whether a border will be drawn.
-
setBorderPaint
void setBorderPaint(@Nullable() Paint borderPaint)
-
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.
-
-
-
-