Class LogAxis
java.lang.Object
com.codename1.ui.chart.axis.Axis
com.codename1.ui.chart.axis.LogAxis
A base 10 logarithmic axis for data spanning orders of magnitude. Values at or below zero cannot be placed and are clamped to the bottom of the axis.

-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double[]adjustBounds(double min, double max) Lets a subclass pad or round the automatic bounds; the default rounds a numeric range outward to the nearest nice step so the outermost grid lines sit on the plot edge.protected StringdefaultFormat(double value, double step) The axis' built in formatting; numbers are grouped and localized.protected doubleforward(double value) Maps a value into the space the axis is linear in; the identity here,log10for a logarithmic axis.protected doubleinverse(double t) The inverse offorward.double[]ticks(int maxCount) Ticks for the visible range.Methods inherited from class Axis
flatPad, format, formatNumber, fromNormalized, getDataMax, getDataMin, getFormatter, getPosition, getTitle, getVisibleMax, getVisibleMin, isGridVisible, isIncludeZero, isMaxFixed, isMinFixed, isVertical, isVisible, isZoomed, isZoomEnabled, pan, resetViewport, restoreViewport, setDataBounds, setDisplayRange, setFormatter, setGridVisible, setIncludeZero, setMaxZoom, setPosition, setRange, setTitle, setVisible, setVisibleRange, setZoomEnabled, toNormalized, zoom
-
Constructor Details
-
LogAxis
public LogAxis(int position) Creates a logarithmic axis.
Parameters
position: one ofAxis.BOTTOM,Axis.LEFT,Axis.RIGHTorAxis.TOP
-
-
Method Details
-
adjustBounds
protected double[] adjustBounds(double min, double max) Description copied from class:AxisLets a subclass pad or round the automatic bounds; the default rounds a numeric range outward to the nearest nice step so the outermost grid lines sit on the plot edge.
Parameters
-
min: the raw minimum -
max: the raw maximum
Returns
{min, max}to use- Overrides:
adjustBoundsin classAxis
-
-
forward
-
inverse
-
ticks
-
defaultFormat
Description copied from class:AxisThe axis' built in formatting; numbers are grouped and localized.- Overrides:
defaultFormatin classAxis
-