Package com.androidplot.xy
Class CandlestickFormatter
-
- All Implemented Interfaces:
public class CandlestickFormatter extends XYSeriesFormatter<XYRegionFormatter>
Format for drawing a value using CandlestickRenderer.
- Since:
0.9.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCandlestickFormatter.BodyStyle
-
Field Summary
Fields Modifier and Type Field Description public PaintwickPaintpublic PaintrisingBodyFillPaintpublic PaintfallingBodyFillPaintpublic PaintrisingBodyStrokePaintpublic PaintfallingBodyStrokePaintpublic PaintupperCapPaintpublic PaintlowerCapPaintpublic floatbodyWidthpublic floatupperCapWidthpublic floatlowerCapWidthpublic CandlestickFormatter.BodyStylebodyStylepublic PointLabelerpointLabelerpublic PointLabelFormatterpointLabelFormatterpublic booleanisLegendIconEnabled
-
Constructor Summary
Constructors Constructor Description CandlestickFormatter(Context context, int xmlCfgId)CandlestickFormatter()CandlestickFormatter(Paint wickPaint, Paint risingBodyFillPaint, Paint fallingBodyFillPaint, Paint risingBodyStrokePaint, Paint fallingBodyStrokePaint, Paint upperCapPaint, Paint lowerCapPaint, CandlestickFormatter.BodyStyle bodyStyle)
-
Method Summary
-
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
-
CandlestickFormatter
CandlestickFormatter(Context context, int xmlCfgId)
-
CandlestickFormatter
CandlestickFormatter()
-
-
Method Detail
-
getWickPaint
@NonNull() Paint getWickPaint()
-
setWickPaint
void setWickPaint(@NonNull() Paint wickPaint)
-
getRisingBodyFillPaint
@NonNull() Paint getRisingBodyFillPaint()
-
setRisingBodyFillPaint
void setRisingBodyFillPaint(@NonNull() Paint risingBodyFillPaint)
-
getFallingBodyFillPaint
@NonNull() Paint getFallingBodyFillPaint()
-
setFallingBodyFillPaint
void setFallingBodyFillPaint(@NonNull() Paint fallingBodyFillPaint)
-
getRisingBodyStrokePaint
@NonNull() Paint getRisingBodyStrokePaint()
-
setRisingBodyStrokePaint
void setRisingBodyStrokePaint(@NonNull() Paint risingBodyStrokePaint)
-
getFallingBodyStrokePaint
@NonNull() Paint getFallingBodyStrokePaint()
-
setFallingBodyStrokePaint
void setFallingBodyStrokePaint(@NonNull() Paint fallingBodyStrokePaint)
-
getUpperCapPaint
@NonNull() Paint getUpperCapPaint()
-
setUpperCapPaint
void setUpperCapPaint(@NonNull() Paint upperCapPaint)
-
getLowerCapPaint
@NonNull() Paint getLowerCapPaint()
-
setLowerCapPaint
void setLowerCapPaint(@NonNull() Paint lowerCapPaint)
-
getBodyWidth
float getBodyWidth()
-
setBodyWidth
void setBodyWidth(float bodyWidth)
-
getUpperCapWidth
float getUpperCapWidth()
-
setUpperCapWidth
void setUpperCapWidth(float upperCapWidth)
-
getLowerCapWidth
float getLowerCapWidth()
-
setLowerCapWidth
void setLowerCapWidth(float lowerCapWidth)
-
getBodyStyle
@NonNull() CandlestickFormatter.BodyStyle getBodyStyle()
-
setBodyStyle
void setBodyStyle(@NonNull() CandlestickFormatter.BodyStyle bodyStyle)
-
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.
-
setCapAndWickPaint
void setCapAndWickPaint(@NonNull() Paint paint)
Convenience method to set caps and wick to a single color in one call.
-
-
-
-