Class XYMultipleSeriesRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum for the XY chart orientation of the X axis. -
Field Summary
Fields inherited from class DefaultRenderer
BACKGROUND_COLOR, NO_COLOR, TEXT_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTextLabel(double x, String text) Adds a new text label for the specified X axis value.voidaddXTextLabel(double x, String text) Adds a new text label for the specified X axis value.voidaddYTextLabel(double y, String text) Adds a new text label for the specified Y axis value.voidaddYTextLabel(double y, String text, int scale) Adds a new text label for the specified Y axis value.voidClears the existing text labels.voidClears the existing text labels on the X axis.voidClears the existing text labels on the Y axis.voidclearYTextLabels(int scale) Clears the existing text labels on the Y axis.floatReturns the axis title text size.doubleReturns the spacing between bars, in bar charts.doubleReturns the spacing between bars, in bar charts.floatReturns the constant bar chart item width in pixels.intgetGridColor(int scale) Returns the grid color.double[]Returns the initial range.double[]getInitialRange(int scale) Returns the initial range.Returns the number format for displaying labels.intReturns the margins color.Returns the current orientation of the chart X axis.double[]Returns the pan limits.floatReturns the size of the points, for charts displaying points.intdoubleReturns the end value of the X axis range.doublegetXAxisMax(int scale) Returns the end value of the X axis range.doubleReturns the start value of the X axis range.doublegetXAxisMin(int scale) Returns the start value of the X axis range.Returns the number format for displaying X axis labels.intReturns the approximate number of labels for the X axis.intReturns the X axis labels alignment.floatReturns the rotation angle of labels for the X axis.intReturns the X axis labels color.floatReturns the X labels padding.Returns the X axis text label at the specified X axis value.Double[]Returns the X text label locations.Returns the title for the X axis.intgetYAxisAlign(int scale) doubleReturns the end value of the Y axis range.doublegetYAxisMax(int scale) Returns the end value of the Y axis range.doubleReturns the start value of the Y axis range.doublegetYAxisMin(int scale) Returns the start value of the Y axis range.getYLabelFormat(int scale) Returns the number format for Y axis displaying labels.intReturns the approximate number of labels for the Y axis.intgetYLabelsAlign(int scale) Returns the Y axis labels alignment.floatReturns the rotation angle of labels for the Y axis.intgetYLabelsColor(int scale) Returns the Y axis labels color.floatReturns the Y labels padding.floatReturns the Y labels vertical padding.Returns the Y axis text label at the specified Y axis value.getYTextLabel(Double y, int scale) Returns the Y axis text label at the specified Y axis value.Double[]Returns the Y text label locations.Double[]getYTextLabelLocations(int scale) Returns the Y text label locations.Returns the title for the Y axis.getYTitle(int scale) Returns the title for the Y axis.doubleReturns the zoom in limit permitted in the axis X.doubleReturns the zoom in limit permitted in the axis Y.double[]Returns the zoom limits as a 4-element array, or null if there are no limits applied.voidinitAxesRange(int scales) voidinitAxesRangeForScale(int i) booleanbooleanisInitialRangeSet(int scale) Returns if the initial range is set.booleanReturns if the maximum X value was set.booleanisMaxXSet(int scale) Returns if the maximum X value was set.booleanReturns if the maximum Y value was set.booleanisMaxYSet(int scale) Returns if the maximum Y value was set.booleanReturns if the minimum X value was set.booleanisMinXSet(int scale) Returns if the minimum X value was set.booleanReturns if the minimum Y value was set.booleanisMinYSet(int scale) Returns if the minimum Y value was set.booleanReturns the enabled state of the pan on at least one axis.booleanReturns the enabled state of the pan on X axis.booleanReturns the enabled state of the pan on Y axis.booleanIf X axis labels should be rounded.booleanReturns the enabled state of the zoom on at least one axis.booleanReturns the enabled state of the zoom on X axis.booleanReturns the enabled state of the zoom on Y axis.voidremoveXTextLabel(double x) Removes text label for the specified X axis value.voidremoveYTextLabel(double y) Removes text label for the specified Y axis value.voidremoveYTextLabel(double y, int scale) Removes text label for the specified Y axis value.voidsetAxisTitleTextFont(Font font) Sets the Axis title text font size using a Font object instead of a point size.voidsetAxisTitleTextSize(float textSize) Sets the axis title text size.voidsetBarSpacing(double spacing) Sets the spacing between bars, in bar charts.voidsetBarWidth(float width) Sets the bar chart item constant width in pixels.voidsetGridColor(int color) Sets the color of the grid.voidsetGridColor(int color, int scale) Sets the color of the grid.voidsetInitialRange(double[] range) Sets the axes initial range values.voidsetInitialRange(double[] range, int scale) Sets the axes initial range values.voidsetMarginsColor(int color) Sets the color of the margins.voidsetOrientation(XYMultipleSeriesRenderer.Orientation orientation) Sets the current orientation of the chart X axis.voidsetPanEnabled(boolean enabled) OverrideDefaultRenderer#setPanEnabled(boolean)so it can be delegated toboolean).voidsetPanEnabled(boolean enabledX, boolean enabledY) Sets the enabled state of the pan.voidsetPanLimits(double[] panLimits) Sets the pan limits as an array of 4 values.voidsetPointSize(float size) Sets the size of the points, for charts displaying points.voidsetRange(double[] range) Sets the axes range values.voidsetRange(double[] range, int scale) Sets the axes range values.voidsetXAxisMax(double max) Sets the end value of the X axis range.voidsetXAxisMax(double max, int scale) Sets the end value of the X axis range.voidsetXAxisMin(double min) Sets the start value of the X axis range.voidsetXAxisMin(double min, int scale) Sets the start value of the X axis range.voidsetXLabelFormat(NumberFormat format) Sets the number format for X axis displaying labels.voidsetXLabels(int xLabels) Sets the approximate number of labels for the X axis.voidsetXLabelsAlign(int align) Sets the X axis labels alignment.voidsetXLabelsAngle(float angle) Sets the rotation angle (in degrees) of labels for the X axis.voidsetXLabelsColor(int color) Sets the X axis labels color.voidsetXLabelsPadding(float padding) Sets the X labels paddingvoidsetXRoundedLabels(boolean rounded) Sets if X axis rounded time values to be used.voidSets the title for the X axis.voidsetYAxisAlign(int align, int scale) voidsetYAxisMax(double max) Sets the end value of the Y axis range.voidsetYAxisMax(double max, int scale) Sets the end value of the Y axis range.voidsetYAxisMin(double min) Sets the start value of the Y axis range.voidsetYAxisMin(double min, int scale) Sets the start value of the Y axis range.voidsetYLabelFormat(NumberFormat format, int scale) Sets the number format for Y axis displaying labels.voidsetYLabels(int yLabels) Sets the approximate number of labels for the Y axis.voidsetYLabelsAlign(int align) voidsetYLabelsAlign(int align, int scale) Sets the Y axis labels alignment.voidsetYLabelsAngle(float angle) Sets the rotation angle (in degrees) of labels for the Y axis.voidsetYLabelsColor(int scale, int color) Sets the Y axis labels color.voidsetYLabelsPadding(float padding) Sets the Y labels paddingvoidsetYLabelsVerticalPadding(float padding) Sets the Y labels vertical paddingvoidSets the title for the Y axis.voidSets the title for the Y axis.voidsetZoomEnabled(boolean enabledX, boolean enabledY) Sets the enabled state of the zoom.voidsetZoomInLimitX(double zoomInLimitX) Sets the zoom in limit permitted in the axis X.voidsetZoomInLimitY(double zoomInLimitY) Sets zoom in limit permitted in the axis Y.voidsetZoomLimits(double[] zoomLimits) Sets the zoom limits as an array of 4 values.Methods inherited from class DefaultRenderer
addSeriesRenderer, addSeriesRenderer, getAxesColor, getBackgroundColor, getChartTitle, getChartTitleTextSize, getLabelsColor, getLabelsTextSize, getLegendHeight, getLegendTextSize, getMargins, getOriginalScale, getScale, getSelectableBuffer, getSeriesRendererAt, getSeriesRendererCount, getSeriesRenderers, getStartAngle, getTextTypeface, getTextTypefaceName, getTextTypefaceStyle, getXAxisColor, getYAxisColor, getZoomRate, isAntialiasing, isApplyBackgroundColor, isClickEnabled, isDisplayValues, isExternalZoomEnabled, isFitLegend, isInScroll, isShowAxes, isShowCustomTextGridX, isShowCustomTextGridY, isShowGridX, isShowGridY, isShowLabels, isShowLegend, isShowTickMarks, isZoomButtonsVisible, removeAllRenderers, removeSeriesRenderer, setAntialiasing, setApplyBackgroundColor, setAxesColor, setBackgroundColor, setChartTitle, setChartTitleTextFont, setChartTitleTextSize, setClickEnabled, setDisplayValues, setExternalZoomEnabled, setFitLegend, setInScroll, setLabelsColor, setLabelsTextFont, setLabelsTextSize, setLegendHeight, setLegendTextFont, setLegendTextSize, setMargins, setScale, setSelectableBuffer, setShowAxes, setShowCustomTextGrid, setShowCustomTextGridX, setShowCustomTextGridY, setShowGrid, setShowGridX, setShowGridY, setShowLabels, setShowLegend, setShowTickMarks, setStartAngle, setTextTypeface, setTextTypeface, setXAxisColor, setYAxisColor, setZoomButtonsVisible, setZoomEnabled, setZoomRate
-
Constructor Details
-
XYMultipleSeriesRenderer
public XYMultipleSeriesRenderer() -
XYMultipleSeriesRenderer
public XYMultipleSeriesRenderer(int scaleNumber)
-
-
Method Details
-
initAxesRange
public void initAxesRange(int scales) -
initAxesRangeForScale
public void initAxesRangeForScale(int i) -
getOrientation
Returns the current orientation of the chart X axis.
Returns
the chart orientation
-
setOrientation
Sets the current orientation of the chart X axis.
Parameters
orientation: the chart orientation
-
getXTitle
Returns the title for the X axis.
Returns
the X axis title
-
setXTitle
Sets the title for the X axis.
Parameters
title: the X axis title
-
getYTitle
Returns the title for the Y axis.
Returns
the Y axis title
-
setYTitle
Sets the title for the Y axis.
Parameters
title: the Y axis title
-
getYTitle
Returns the title for the Y axis.
Parameters
scale: the renderer scale
Returns
the Y axis title
-
setYTitle
Sets the title for the Y axis.
Parameters
-
title: the Y axis title -
scale: the renderer scale
-
-
getAxisTitleTextSize
public float getAxisTitleTextSize()Returns the axis title text size.
Returns
the axis title text size
-
setAxisTitleTextSize
public void setAxisTitleTextSize(float textSize) Sets the axis title text size. Consider using
#setAxisTitleTextFont(com.codename1.ui.Font)instead to allow the font size to to be adjusted appropriately for the display resolution.Parameters
textSize: the chart axis text size
-
setAxisTitleTextFont
Sets the Axis title text font size using a Font object instead of a point size. This method is the preferred way to set font size because it allows you to more easily have fonts appear in an appropriate size for the target device.
Alternatively check out
#setAxisTitleTextSize(float)to set the text size in pixels.Parameters
font
-
getXAxisMin
public double getXAxisMin()Returns the start value of the X axis range.
Returns
the X axis range start value
-
setXAxisMin
public void setXAxisMin(double min) Sets the start value of the X axis range.
Parameters
min: the X axis range start value
-
isMinXSet
public boolean isMinXSet()Returns if the minimum X value was set.
Returns
the minX was set or not
-
getXAxisMax
public double getXAxisMax()Returns the end value of the X axis range.
Returns
the X axis range end value
-
setXAxisMax
public void setXAxisMax(double max) Sets the end value of the X axis range.
Parameters
max: the X axis range end value
-
isMaxXSet
public boolean isMaxXSet()Returns if the maximum X value was set.
Returns
the maxX was set or not
-
getYAxisMin
public double getYAxisMin()Returns the start value of the Y axis range.
Returns
the Y axis range end value
-
setYAxisMin
public void setYAxisMin(double min) Sets the start value of the Y axis range.
Parameters
min: the Y axis range start value
-
isMinYSet
public boolean isMinYSet()Returns if the minimum Y value was set.
Returns
the minY was set or not
-
getYAxisMax
public double getYAxisMax()Returns the end value of the Y axis range.
Returns
the Y axis range end value
-
setYAxisMax
public void setYAxisMax(double max) Sets the end value of the Y axis range.
Parameters
max: the Y axis range end value
-
isMaxYSet
public boolean isMaxYSet()Returns if the maximum Y value was set.
Returns
the maxY was set or not
-
getXAxisMin
public double getXAxisMin(int scale) Returns the start value of the X axis range.
Parameters
scale: the renderer scale
Returns
the X axis range start value
-
setXAxisMin
public void setXAxisMin(double min, int scale) Sets the start value of the X axis range.
Parameters
-
min: the X axis range start value -
scale: the renderer scale
-
-
isMinXSet
public boolean isMinXSet(int scale) Returns if the minimum X value was set.
Parameters
scale: the renderer scale
Returns
the minX was set or not
-
getXAxisMax
public double getXAxisMax(int scale) Returns the end value of the X axis range.
Parameters
scale: the renderer scale
Returns
the X axis range end value
-
setXAxisMax
public void setXAxisMax(double max, int scale) Sets the end value of the X axis range.
Parameters
-
max: the X axis range end value -
scale: the renderer scale
-
-
isMaxXSet
public boolean isMaxXSet(int scale) Returns if the maximum X value was set.
Parameters
scale: the renderer scale
Returns
the maxX was set or not
-
getYAxisMin
public double getYAxisMin(int scale) Returns the start value of the Y axis range.
Parameters
scale: the renderer scale
Returns
the Y axis range end value
-
setYAxisMin
public void setYAxisMin(double min, int scale) Sets the start value of the Y axis range.
Parameters
-
min: the Y axis range start value -
scale: the renderer scale
-
-
isMinYSet
public boolean isMinYSet(int scale) Returns if the minimum Y value was set.
Parameters
scale: the renderer scale
Returns
the minY was set or not
-
getYAxisMax
public double getYAxisMax(int scale) Returns the end value of the Y axis range.
Parameters
scale: the renderer scale
Returns
the Y axis range end value
-
setYAxisMax
public void setYAxisMax(double max, int scale) Sets the end value of the Y axis range.
Parameters
-
max: the Y axis range end value -
scale: the renderer scale
-
-
isMaxYSet
public boolean isMaxYSet(int scale) Returns if the maximum Y value was set.
Parameters
scale: the renderer scale
Returns
the maxY was set or not
-
getXLabels
public int getXLabels()Returns the approximate number of labels for the X axis.
Returns
the approximate number of labels for the X axis
-
setXLabels
public void setXLabels(int xLabels) Sets the approximate number of labels for the X axis.
Parameters
xLabels: the approximate number of labels for the X axis
-
addTextLabel
Adds a new text label for the specified X axis value.
Parameters
-
x: the X axis value -
text: the text label
Deprecated
use addXTextLabel instead
-
-
addXTextLabel
Adds a new text label for the specified X axis value.
Parameters
-
x: the X axis value -
text: the text label
-
-
removeXTextLabel
public void removeXTextLabel(double x) Removes text label for the specified X axis value.
Parameters
x: the X axis value
-
getXTextLabel
-
getXTextLabelLocations
Returns the X text label locations.
Returns
the X text label locations
-
clearTextLabels
public void clearTextLabels()Clears the existing text labels.
Deprecated
use clearXTextLabels instead
-
clearXTextLabels
public void clearXTextLabels()Clears the existing text labels on the X axis. -
isXRoundedLabels
public boolean isXRoundedLabels()If X axis labels should be rounded.
Returns
if rounded time values to be used
-
setXRoundedLabels
public void setXRoundedLabels(boolean rounded) Sets if X axis rounded time values to be used.
Parameters
rounded: rounded values to be used
-
addYTextLabel
Adds a new text label for the specified Y axis value.
Parameters
-
y: the Y axis value -
text: the text label
-
-
removeYTextLabel
public void removeYTextLabel(double y) Removes text label for the specified Y axis value.
Parameters
y: the Y axis value
-
addYTextLabel
Adds a new text label for the specified Y axis value.
Parameters
-
y: the Y axis value -
text: the text label -
scale: the renderer scale
-
-
removeYTextLabel
public void removeYTextLabel(double y, int scale) Removes text label for the specified Y axis value.
Parameters
-
y: the Y axis value -
scale: the renderer scale
-
-
getYTextLabel
-
getYTextLabel
-
getYTextLabelLocations
Returns the Y text label locations.
Returns
the Y text label locations
-
getYTextLabelLocations
Returns the Y text label locations.
Parameters
scale: the renderer scale
Returns
the Y text label locations
-
clearYTextLabels
public void clearYTextLabels()Clears the existing text labels on the Y axis. -
clearYTextLabels
public void clearYTextLabels(int scale) Clears the existing text labels on the Y axis.
Parameters
scale: the renderer scale
-
getYLabels
public int getYLabels()Returns the approximate number of labels for the Y axis.
Returns
the approximate number of labels for the Y axis
-
setYLabels
public void setYLabels(int yLabels) Sets the approximate number of labels for the Y axis.
Parameters
yLabels: the approximate number of labels for the Y axis
-
getBarWidth
public float getBarWidth()Returns the constant bar chart item width in pixels.
Returns
the bar width
-
setBarWidth
public void setBarWidth(float width) Sets the bar chart item constant width in pixels.
Parameters
width: width in pixels
-
isPanEnabled
public boolean isPanEnabled()Returns the enabled state of the pan on at least one axis.
Returns
if pan is enabled
- Overrides:
isPanEnabledin classDefaultRenderer
-
setPanEnabled
public void setPanEnabled(boolean enabled) OverrideDefaultRenderer#setPanEnabled(boolean)so it can be delegated toboolean).- Overrides:
setPanEnabledin classDefaultRenderer
-
isPanXEnabled
public boolean isPanXEnabled()Returns the enabled state of the pan on X axis.
Returns
if pan is enabled on X axis
-
isPanYEnabled
public boolean isPanYEnabled()Returns the enabled state of the pan on Y axis.
Returns
if pan is enabled on Y axis
-
setPanEnabled
public void setPanEnabled(boolean enabledX, boolean enabledY) Sets the enabled state of the pan.
Parameters
-
enabledX: pan enabled on X axis -
enabledY: pan enabled on Y axis
-
-
isZoomEnabled
public boolean isZoomEnabled()Returns the enabled state of the zoom on at least one axis.
Returns
if zoom is enabled
- Overrides:
isZoomEnabledin classDefaultRenderer
-
isZoomXEnabled
public boolean isZoomXEnabled()Returns the enabled state of the zoom on X axis.
Returns
if zoom is enabled on X axis
-
isZoomYEnabled
public boolean isZoomYEnabled()Returns the enabled state of the zoom on Y axis.
Returns
if zoom is enabled on Y axis
-
setZoomEnabled
public void setZoomEnabled(boolean enabledX, boolean enabledY) Sets the enabled state of the zoom.
Parameters
-
enabledX: zoom enabled on X axis -
enabledY: zoom enabled on Y axis
-
-
getBarsSpacing
public double getBarsSpacing()Returns the spacing between bars, in bar charts.
Returns
the spacing between bars
Deprecated
use getBarSpacing instead
-
getBarSpacing
public double getBarSpacing()Returns the spacing between bars, in bar charts.
Returns
the spacing between bars
-
setBarSpacing
public void setBarSpacing(double spacing) Sets the spacing between bars, in bar charts. Only available for bar charts. This is a coefficient of the bar width. For instance, if you want the spacing to be a half of the bar width, set this value to 0.5.
Parameters
spacing: the spacing between bars coefficient
-
getMarginsColor
public int getMarginsColor()Returns the margins color.
Returns
the margins color
-
setMarginsColor
public void setMarginsColor(int color) Sets the color of the margins.
Parameters
color: the margins color
-
getGridColor
public int getGridColor(int scale) Returns the grid color.
Parameters
scale: the renderer index
Returns
the grid color
-
setGridColor
public void setGridColor(int color) Sets the color of the grid.
Parameters
color: the grid color
-
setGridColor
public void setGridColor(int color, int scale) Sets the color of the grid.
Parameters
-
color: the grid color -
scale: the renderer scale
-
-
getPanLimits
public double[] getPanLimits()Returns the pan limits.
Returns
the pan limits
-
setPanLimits
public void setPanLimits(double[] panLimits) Sets the pan limits as an array of 4 values. Setting it to null or a different size array will disable the panning limitation. Values: [panMinimumX, panMaximumX, panMinimumY, panMaximumY]
Parameters
panLimits: the pan limits
-
getZoomLimits
public double[] getZoomLimits()Returns the zoom limits as a 4-element array, or null if there are no limits applied.
Array elements are:
-
0 : Minimum distance between X-Axis min and max values. Same as
#getZoomInLimitX() -
1 : Maximum distance between X-Axis min and max values.
-
2 : Minimum distance between Y-Axis min and max values. Same as
#getZoomInLimitY() -
3 : Maximum distance between Y-Axis min and max values.
Returns
the zoom limits
-
-
setZoomLimits
public void setZoomLimits(double[] zoomLimits) Sets the zoom limits as an array of 4 values.
Array elements are:
-
0 : Minimum distance between X-Axis min and max values. Same as
#getZoomInLimitX() -
1 : Maximum distance between X-Axis min and max values.
-
2 : Minimum distance between Y-Axis min and max values. Same as
#getZoomInLimitY() -
3 : Maximum distance between Y-Axis min and max values.
Setting this value as null will turn off all limits so that, if zoom is enabled, users can zoom and and out as much as they like.
Parameters
zoomLimits: the zoom limits
-
-
getXLabelsAngle
public float getXLabelsAngle()Returns the rotation angle of labels for the X axis.
Returns
the rotation angle of labels for the X axis
-
setXLabelsAngle
public void setXLabelsAngle(float angle) Sets the rotation angle (in degrees) of labels for the X axis.
Parameters
angle: the rotation angle of labels for the X axis
-
getYLabelsAngle
public float getYLabelsAngle()Returns the rotation angle of labels for the Y axis.
Returns
the approximate number of labels for the Y axis
-
setYLabelsAngle
public void setYLabelsAngle(float angle) Sets the rotation angle (in degrees) of labels for the Y axis.
Parameters
angle: the rotation angle of labels for the Y axis
-
getPointSize
public float getPointSize()Returns the size of the points, for charts displaying points.
Returns
the point size
-
setPointSize
public void setPointSize(float size) Sets the size of the points, for charts displaying points.
Parameters
size: the point size
-
setRange
public void setRange(double[] range) Sets the axes range values.
Parameters
range: @param range an array having the values in this order: minX, maxX, minY, maxY
-
setRange
public void setRange(double[] range, int scale) Sets the axes range values.
Parameters
-
range: @param range an array having the values in this order: minX, maxX, minY, maxY -
scale: the renderer scale
-
-
isInitialRangeSet
public boolean isInitialRangeSet() -
isInitialRangeSet
public boolean isInitialRangeSet(int scale) Returns if the initial range is set.
Parameters
scale: the renderer scale
Returns
the initial range was set or not
-
getInitialRange
public double[] getInitialRange()Returns the initial range.
Returns
the initial range
-
setInitialRange
public void setInitialRange(double[] range) Sets the axes initial range values. This will be used in the zoom fit tool.
Parameters
range: @param range an array having the values in this order: minX, maxX, minY, maxY
-
getInitialRange
public double[] getInitialRange(int scale) Returns the initial range.
Parameters
scale: the renderer scale
Returns
the initial range
-
setInitialRange
public void setInitialRange(double[] range, int scale) Sets the axes initial range values. This will be used in the zoom fit tool.
Parameters
-
range: @param range an array having the values in this order: minX, maxX, minY, maxY -
scale: the renderer scale
-
-
getXLabelsColor
public int getXLabelsColor()Returns the X axis labels color.
Returns
the X axis labels color
-
setXLabelsColor
public void setXLabelsColor(int color) Sets the X axis labels color.
Parameters
color: the X axis labels color
-
getYLabelsColor
public int getYLabelsColor(int scale) Returns the Y axis labels color.
Returns
the Y axis labels color
-
setYLabelsColor
public void setYLabelsColor(int scale, int color) Sets the Y axis labels color.
Parameters
-
scale: the renderer scale -
color: the Y axis labels color
-
-
getXLabelsAlign
public int getXLabelsAlign()Returns the X axis labels alignment. One of Component.CENTER, Component.LEFT, Component.RIGHT
Returns
X labels alignment
-
setXLabelsAlign
public void setXLabelsAlign(int align) Sets the X axis labels alignment. One of Component.CENTER, Component.LEFT, Component.RIGHT
Parameters
align: the X labels alignment
-
getYLabelsAlign
public int getYLabelsAlign(int scale) Returns the Y axis labels alignment.
Parameters
scale: the renderer scale
Returns
Y labels alignment
-
setYLabelsAlign
public void setYLabelsAlign(int align) -
getYAxisAlign
public int getYAxisAlign(int scale) -
setYAxisAlign
public void setYAxisAlign(int align, int scale) -
setYLabelsAlign
public void setYLabelsAlign(int align, int scale) Sets the Y axis labels alignment.
Parameters
align: the Y labels alignment
-
getXLabelsPadding
public float getXLabelsPadding()Returns the X labels padding.
Returns
X labels padding
-
setXLabelsPadding
public void setXLabelsPadding(float padding) Sets the X labels padding
Parameters
padding: the amount of padding between the axis and the label
-
getYLabelsPadding
public float getYLabelsPadding()Returns the Y labels padding.
Returns
Y labels padding
-
setYLabelsPadding
public void setYLabelsPadding(float padding) Sets the Y labels padding
Parameters
padding: the amount of padding between the axis and the label
-
getYLabelsVerticalPadding
public float getYLabelsVerticalPadding()Returns the Y labels vertical padding.
Returns
Y labels vertical padding
-
setYLabelsVerticalPadding
public void setYLabelsVerticalPadding(float padding) Sets the Y labels vertical padding
Parameters
padding: the amount of vertical padding
-
getLabelFormat
Returns the number format for displaying labels.
Returns
the number format for labels
Deprecated
use getXLabelFormat and getYLabelFormat instead
-
getXLabelFormat
Returns the number format for displaying X axis labels.
Returns
the number format for X axis labels
-
setXLabelFormat
Sets the number format for X axis displaying labels.
Parameters
format: the number format for X axis labels
-
getYLabelFormat
Returns the number format for Y axis displaying labels.
Parameters
scale: the renderer scale
Returns
the number format for Y axis labels
-
setYLabelFormat
Sets the number format for Y axis displaying labels.
Parameters
-
format: the number format for labels -
scale: the renderer scale
-
-
getZoomInLimitX
public double getZoomInLimitX()Returns the zoom in limit permitted in the axis X. This is interpreted as the maximum distance between
#getXAxisMin()and#getXAxisMax().Returns
the maximum zoom in permitted in the axis X
See also
- #setZoomInLimitX(double)
-
setZoomInLimitX
public void setZoomInLimitX(double zoomInLimitX) Sets the zoom in limit permitted in the axis X.
This function prevent that the distance between
#getXAxisMin()and#getXAxisMax()can't be greater or equal than#getZoomInLimitX()Parameters
zoomInLimitX: @param zoomInLimitX the maximum distance permitted between#getXAxisMin()and#getXAxisMax().
-
getZoomInLimitY
public double getZoomInLimitY()Returns the zoom in limit permitted in the axis Y. This is interpreted as the maximum difference between
#getYAxisMin()and#getYAxisMax().Returns
the maximum in zoom permitted in the axis Y
See also
- #setZoomInLimitY(double)
-
setZoomInLimitY
public void setZoomInLimitY(double zoomInLimitY) Sets zoom in limit permitted in the axis Y.
This function prevent that the distance between
#getYAxisMin()and#getYAxisMax()can't be greater or equal than#getZoomInLimitY()Parameters
zoomInLimitY: @param zoomInLimitY the maximum distance permitted between#getYAxisMin()and#getYAxisMax()
-
getScalesCount
public int getScalesCount()
-