Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class 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.

Constructors
public LogAxis(int position) | Creates a logarithmic axis. |
Methods
protected 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 double forward(double value) | Maps a value into the space the axis is linear in; the identity here, log10 for a logarithmic axis. |
protected double inverse(double t) | The inverse of forward. |
public double[] ticks(int maxCount) | Ticks for the visible range. |
protected String defaultFormat(double value, double step) | The axis’ built in formatting; numbers are grouped and localized. |
Inherited fields
Inherited methods
From Axis
getPosition, setPosition, isVertical, getTitle, setTitle, isVisible, setVisible, isGridVisible, setGridVisible, getFormatter, setFormatter, setRange, isMinFixed, isMaxFixed, setIncludeZero, isIncludeZero, setMaxZoom, isZoomEnabled, setZoomEnabled, setDataBounds, flatPad, getDataMin, getDataMax, getVisibleMin, getVisibleMax, setVisibleRange, setDisplayRange, restoreViewport, resetViewport, isZoomed, zoom, pan, toNormalized, fromNormalized, format, formatNumber
Constructor details
LogAxis
public LogAxis(int position)Creates a logarithmic axis.
Parameters
positionint- one of
Axis.BOTTOM,Axis.LEFT,Axis.RIGHTorAxis.TOP
Method details
adjustBounds
protected 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.
Parameters
mindouble- the raw minimum
maxdouble- the raw maximum
Returns
{min, max} to useforward
protected double forward(double value)Maps a value into the space the axis is linear in; the identity here,
log10 for a
logarithmic axis. Zoom, pan and normalization all work in this space.inverse
protected double inverse(double t)The inverse of
forward.ticks
public double[] ticks(int maxCount)Ticks for the visible range.
Parameters
maxCountint- the most ticks the measured label size allows
Returns
ascending tick values
defaultFormat
protected String defaultFormat(double value, double step)The axis’ built in formatting; numbers are grouped and localized.