public class AxisRanges extends Object
There are four cases:
Modifier and Type | Class and Description |
---|---|
static class |
AxisRanges.Auto
An AxisRange with Auto value range.
|
static class |
AxisRanges.Data
An AxisRange with Fixed value range.
|
static class |
AxisRanges.Display
An AxisRange with Display value range.
|
static class |
AxisRanges.Fixed
An AxisRange with Fixed value range.
|
Modifier and Type | Method and Description |
---|---|
static AxisRange |
auto()
A range that grows to fit the current and past data.
|
static AxisRange |
auto(double minUsage)
A range that grows to fit the current and past data, and shrinks
if the data shrinks more than minUsage.
|
static AxisRange |
data()
A range for the axis that fits the data.
|
static AxisRange |
display()
The suggested range for the data.
|
static AxisRange |
fixed(double min,
double max)
A fixed range from the given values.
|
public static AxisRange fixed(double min, double max)
min
- minimum value displayed on the axismax
- maximum value displayed on the axispublic static AxisRange data()
public static AxisRange auto()
public static AxisRange auto(double minUsage)
minUsage
- a number from 0.0 to 1.0public static AxisRange display()
Copyright © 2015. All rights reserved.