-
public class BasicChartDrawerGOD class that holds all the references that might be needed when drawing ALL the stuff to the canvas
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatgridWidthprivate final FloatgridHeightprivate final FloatxItemSpacingprivate final FloatxLabelOffsetprivate final FloatxDataOffsetprivate final DrawScopescopeprivate final SizecanvasSizeprivate final FloatpaddingLeftPxprivate final FloatpaddingRightPxprivate final FloatpaddingTopPxprivate final FloatpaddingBottomPxprivate final XAxisLabelsxAxisLabelsprivate final YAxisLabelsyAxisLabelsprivate final List<Number>dataListprivate final YScaleyScaleprivate final ColorcanvasBgColorprivate final FloatcustomXDataOffsetprivate final FloatcustomXLabelOffset
-
Constructor Summary
Constructors Constructor Description BasicChartDrawer(DrawScope scope, Size canvasSize, Float paddingLeftPx, Float paddingRightPx, Float paddingTopPx, Float paddingBottomPx, XAxisLabels xAxisLabels, YAxisLabels yAxisLabels, List<Number> dataList, YScale yScale, Color canvasBgColor, Float customXDataOffset, Float customXLabelOffset)
-
Method Summary
Modifier and Type Method Description final FloatgetGridWidth()final FloatgetGridHeight()final FloatgetXItemSpacing()final FloatgetXLabelOffset()final FloatgetXDataOffset()final DrawScopegetScope()final SizegetCanvasSize()final FloatgetPaddingLeftPx()final FloatgetPaddingRightPx()final FloatgetPaddingTopPx()final FloatgetPaddingBottomPx()final XAxisLabelsgetXAxisLabels()final YAxisLabelsgetYAxisLabels()final List<Number>getDataList()final YScalegetYScale()final ColorgetCanvasBgColor()final FloatgetCustomXDataOffset()final FloatgetCustomXLabelOffset()-
-
Constructor Detail
-
BasicChartDrawer
BasicChartDrawer(DrawScope scope, Size canvasSize, Float paddingLeftPx, Float paddingRightPx, Float paddingTopPx, Float paddingBottomPx, XAxisLabels xAxisLabels, YAxisLabels yAxisLabels, List<Number> dataList, YScale yScale, Color canvasBgColor, Float customXDataOffset, Float customXLabelOffset)
-
-
Method Detail
-
getGridWidth
final Float getGridWidth()
-
getGridHeight
final Float getGridHeight()
-
getXItemSpacing
final Float getXItemSpacing()
-
getXLabelOffset
final Float getXLabelOffset()
-
getXDataOffset
final Float getXDataOffset()
-
getScope
final DrawScope getScope()
-
getCanvasSize
final Size getCanvasSize()
-
getPaddingLeftPx
final Float getPaddingLeftPx()
-
getPaddingRightPx
final Float getPaddingRightPx()
-
getPaddingTopPx
final Float getPaddingTopPx()
-
getPaddingBottomPx
final Float getPaddingBottomPx()
-
getXAxisLabels
final XAxisLabels getXAxisLabels()
-
getYAxisLabels
final YAxisLabels getYAxisLabels()
-
getDataList
final List<Number> getDataList()
-
getCanvasBgColor
final Color getCanvasBgColor()
-
getCustomXDataOffset
final Float getCustomXDataOffset()
-
getCustomXLabelOffset
final Float getCustomXLabelOffset()
-
-
-
-