public interface Axis extends Serializable
Modifier and Type | Method and Description |
---|---|
Axis |
axisColor(com.illumon.iris.gui.color.Paint color)
Sets the color for this Axis line and tick marks.
|
Axis |
axisColor(String color)
Sets the color for this Axis line and tick marks.
|
Axis |
axisFormat(AxisFormat format)
Sets the
AxisFormat for this Axis. |
Axis |
axisFormatPattern(String pattern)
Sets the format pattern for this Axis's labels.
|
Axis |
axisLabel(String label)
Sets the label for this Axis.
|
Axis |
axisLabelFont(Font font)
Sets the font for this Axis's label.
|
Axis |
axisLabelFont(String family,
String style,
int size)
Sets the font for this Axis's label.
|
Axis |
businessTime()
Sets this Axis's
AxisTransform as a new AxisTransformBusinessCalendar . |
Axis |
businessTime(BusinessCalendar calendar)
Sets this Axis's
AxisTransform as a new AxisTransformBusinessCalendar . |
Axis |
invert()
Inverts this Axis so that larger values are closer to the origin.
|
Axis |
invert(boolean invert)
If
invert is true, inverts this Axis so that larger values are closer to the origin. |
Axis |
log()
Sets the AxisTransform as log base 10.
|
Axis |
max(double max)
Sets the maximum range of this Axis to
max . |
Axis |
min(double min)
Sets the minimum range of this Axis to
min . |
Axis |
minorTicks(int count)
Sets the number of minor ticks between consecutive major ticks.
|
Axis |
minorTicksVisible(boolean visible)
Sets whether minor ticks are drawn on this Axis.
|
Axis |
range(double min,
double max)
Sets the range of this Axis to [
min , max ] inclusive. |
Axis |
tickLabelAngle(double angle)
Sets the angle the tick labels of this Axis are drawn at.
|
Axis |
ticks(double gapBetweenTicks)
Sets the distance between major ticks.
|
Axis |
ticks(double[] tickLocations)
Sets the locations of the major ticks.
|
Axis |
ticksFont(Font font)
Sets the font for this Axis's ticks.
|
Axis |
ticksFont(String family,
String style,
int size)
Sets the font for this Axis's ticks.
|
Axis |
ticksVisible(boolean visible)
Sets whether ticks are drawn on this Axis.
|
Axis |
transform(AxisTransform transform)
Sets the
AxisTransform for this Axis. |
Axis axisFormat(AxisFormat format)
AxisFormat
for this Axis.format
- axis formatAxis axisFormatPattern(String pattern)
pattern
- axis format patternAxis axisColor(com.illumon.iris.gui.color.Paint color)
color
- colorAxis axisColor(String color)
color
- colorAxis axisLabel(String label)
label
- labelAxis axisLabelFont(Font font)
font
- fontAxis axisLabelFont(String family, String style, int size)
family
- font family; if null, set to Arialstyle
- font style; if null, set to Font.FontStyle
PLAINsize
- the point size of the FontAxis ticksFont(Font font)
font
- fontAxis ticksFont(String family, String style, int size)
family
- font family; if null, set to Arialstyle
- font style; if null, set to Font.FontStyle
PLAINsize
- the point size of the FontAxis transform(AxisTransform transform)
AxisTransform
for this Axis.transform
- transformAxis log()
Axis businessTime(BusinessCalendar calendar)
AxisTransform
as a new AxisTransformBusinessCalendar
.calendar
- business calendar of the AxisTransformBusinessCalendar
Axis businessTime()
AxisTransform
as a new AxisTransformBusinessCalendar
.
The BusinessCalendar
used is the configured default.Axis invert()
Axis invert(boolean invert)
invert
is true, inverts this Axis so that larger values are closer to the origin.
If false, smaller values will be closer to the origin.invert
- if true, larger values will be closer to the originAxis range(double min, double max)
min
, max
] inclusive.min
- minimum of the rangemax
- maximum of the rangeAxis min(double min)
min
.min
- minimum of the rangeAxis max(double max)
max
.max
- maximum of the rangeAxis ticksVisible(boolean visible)
visible
- whether ticks are drawn on this AxisAxis ticks(double gapBetweenTicks)
gapBetweenTicks
is 5.0,
and the first tick is at 10.0, the next will be drawn at 15.0.gapBetweenTicks
- the distance between ticksAxis ticks(double[] tickLocations)
tickLocations
- coordinates of the major tick locationsAxis minorTicksVisible(boolean visible)
visible
- whether minor ticks are drawn on this AxisAxis minorTicks(int count)
count
- number of minor ticks between consecutive major ticks.Axis tickLabelAngle(double angle)
angle
- angle in degrees