public abstract static class Chart.Builder<T extends Chart.Builder<T>>
extends java.lang.Object
Constructor and Description |
---|
Builder(java.lang.String title,
StyleChart style) |
Modifier and Type | Method and Description |
---|---|
T |
setGridWidth(java.lang.Double gridVerticalStrokeWidth,
java.lang.Double gridHorizontalStrokeWidth)
Set the grid lines to be enabled, and if enabled: set the grid.
|
T |
setGridWidth(java.lang.Integer gridVerticalStrokeWidth,
java.lang.Integer gridHorizontalStrokeWidth)
Set the grid lines to be enabled, and if enabled: set the grid.
|
T |
setXMax(java.lang.Double xMax)
Used to override/set the maximum value for the x axis.
|
T |
setXMin(java.lang.Double xMin)
Used to override/set the minimum value for the x axis.
|
T |
setYMax(java.lang.Double yMax)
Used to override/set the maximum value for the y axis.
|
T |
setYMin(java.lang.Double yMin)
Used to override/set the minimum value for the y axis.
|
T |
showLegend(boolean showLegend) |
T |
suppressAxisHorizontal(boolean suppressAxisHorizontal) |
T |
suppressAxisVertical(boolean suppressAxisVertical) |
public Builder(java.lang.String title, StyleChart style)
title
- Title for the chart (may be null)style
- Style for the chart (may be null)public T suppressAxisHorizontal(boolean suppressAxisHorizontal)
suppressAxisHorizontal
- if true: don't show the horizontal axis (default: show)public T suppressAxisVertical(boolean suppressAxisVertical)
suppressAxisVertical
- if true: don't show the vertical axis (default: show)public T showLegend(boolean showLegend)
showLegend
- if true: show the legend. (default: no legend)public T setXMin(java.lang.Double xMin)
xMin
- Minimum value to use for the x axispublic T setXMax(java.lang.Double xMax)
xMax
- Maximum value to use for the x axispublic T setYMin(java.lang.Double yMin)
yMin
- Minimum value to use for the y axispublic T setYMax(java.lang.Double yMax)
yMax
- Minimum value to use for the y axispublic T setGridWidth(java.lang.Double gridVerticalStrokeWidth, java.lang.Double gridHorizontalStrokeWidth)
gridVerticalStrokeWidth
- If null (or 0): show no vertical grid. Otherwise: width in pxgridHorizontalStrokeWidth
- If null (or 0): show no horizontal grid. Otherwise: width in pxpublic T setGridWidth(java.lang.Integer gridVerticalStrokeWidth, java.lang.Integer gridHorizontalStrokeWidth)
gridVerticalStrokeWidth
- If null (or 0): show no vertical grid. Otherwise: width in pxgridHorizontalStrokeWidth
- If null (or 0): show no horizontal grid. Otherwise: width in px