Package io.deephaven.plot
Interface Axis
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Figure
- All Known Implementing Classes:
AxisImpl
,FigureImpl
,FigureWidget
,ScatterPlotMatrix
Represents an axis.
-
Method Summary
Modifier and TypeMethodDescriptionSets the color for this Axis line and tick marks.Sets the color for this Axis line and tick marks.axisFormat
(AxisFormat axisFormat) Sets theAxisFormat
for this Axis.axisFormatPattern
(String axisFormatPattern) Sets the format pattern for this Axis's labels.Sets the label for this Axis.axisLabelFont
(Font font) Sets the font for this Axis's label.axisLabelFont
(String family, String style, int size) Sets the font for this Axis's label.Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.businessTime
(boolean useBusinessTime) Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.businessTime
(SelectableDataSet sds, String calendar) Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.businessTime
(BusinessCalendar calendar) Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.invert()
Inverts this Axis so that larger values are closer to the origin.invert
(boolean invert) Inverts this Axis so that larger values are closer to the origin.log()
Sets the AxisTransform as log base 10.log
(boolean useLog) Sets the AxisTransform as log base 10.max
(double max) Sets the maximum range of this Axis.max
(SelectableDataSet sds, String max) Sets the maximum range of this Axis.min
(double min) Sets the minimum range of this Axis.min
(SelectableDataSet sds, String min) Sets the minimum range of this Axis.minorTicks
(int nminor) Sets the number of minor ticks between consecutive major ticks.minorTicksVisible
(boolean visible) Sets whether minor ticks are drawn on this Axis.range
(double min, double max) Sets the range of this Axis to [min
,max
] inclusive.tickLabelAngle
(double angle) Sets the angle the tick labels of this Axis are drawn at.ticks
(double gapBetweenTicks) Sets the tick locations.ticks
(double[] tickLocations) Sets the tick locations.Sets the font for this Axis's ticks.Sets the font for this Axis's ticks.ticksVisible
(boolean visible) Sets whether ticks are drawn on this Axis.transform
(AxisTransform transform) Sets theAxisTransform
for this Axis.
-
Method Details
-
axisFormat
Sets theAxisFormat
for this Axis.- Parameters:
axisFormat
- axis format- Returns:
- this Axis
-
axisFormatPattern
Sets the format pattern for this Axis's labels.- Parameters:
axisFormatPattern
- axis format pattern- Returns:
- this Axis
-
axisColor
Sets the color for this Axis line and tick marks.- Parameters:
color
- color- Returns:
- this Axis
-
axisColor
Sets the color for this Axis line and tick marks.- Parameters:
color
- color- Returns:
- this Axis
-
axisLabel
Sets the label for this Axis.- Parameters:
label
- label- Returns:
- this Axis
-
axisLabelFont
Sets the font for this Axis's label.- Parameters:
font
- font- Returns:
- this Axis
-
axisLabelFont
Sets the font for this Axis's label.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Axis
-
ticksFont
Sets the font for this Axis's ticks.- Parameters:
font
- font- Returns:
- this Axis
-
ticksFont
Sets the font for this Axis's ticks.- Parameters:
family
- font family; if null, set to Arialstyle
- font style; if null, set toFont.FontStyle
PLAINsize
- the point size of the Font- Returns:
- this Axis
-
transform
Sets theAxisTransform
for this Axis.- Parameters:
transform
- transform- Returns:
- this Axis
-
log
Axis log()Sets the AxisTransform as log base 10.- Returns:
- this Axis
-
log
Sets the AxisTransform as log base 10.- Parameters:
useLog
- true to use a log axis transform; false to use a linear axis transform.- Returns:
- this Axis
-
businessTime
Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.- Parameters:
calendar
- business calendar of theAxisTransformBusinessCalendar
- Returns:
- this Axis using the specified business calendar.
-
businessTime
Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.- Parameters:
sds
- selectable data set (e.g. OneClick filterable table) containing the business calendar.calendar
- name of a column containing String values, where each value is the name of aBusinessCalendar
.- Returns:
- this Axis using the business calendar from row 0 of the filtered
sds
for the business calendar. If no value is found, no transform will be applied.
-
businessTime
Axis businessTime()Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.- Returns:
- this Axis using the default business calendar.
-
businessTime
Sets this Axis'sAxisTransform
as anAxisTransformBusinessCalendar
.- Parameters:
useBusinessTime
- true to use a business time axis transform; false to use a linear axis transform.- Returns:
- this Axis using the default business calendar or this Axis using a linear axis transform.
-
invert
Axis invert()Inverts this Axis so that larger values are closer to the origin.- Returns:
- this Axes
-
invert
Inverts this Axis so that larger values are closer to the origin.- Parameters:
invert
- if true, larger values will be closer to the origin; otherwise, smaller values will be closer to the origin.- Returns:
- this Axes
-
range
Sets the range of this Axis to [min
,max
] inclusive.- Parameters:
min
- minimum of the rangemax
- maximum of the range- Returns:
- this Axis
-
min
Sets the minimum range of this Axis.- Parameters:
min
- minimum of the range- Returns:
- this Axis
-
max
Sets the maximum range of this Axis.- Parameters:
max
- maximum of the range- Returns:
- this Axis
-
min
Sets the minimum range of this Axis.- Parameters:
sds
- selectable datasetmin
- column insds
, where the minimum value is stored in row 0.- Returns:
- this Axes
-
max
Sets the maximum range of this Axis.- Parameters:
sds
- selectable datasetmax
- column insds
, where the maximum value is stored in row 0.- Returns:
- this Axes
-
ticksVisible
Sets whether ticks are drawn on this Axis.- Parameters:
visible
- whether ticks are drawn on this Axis- Returns:
- this Axis
-
ticks
Sets the tick locations.- Parameters:
gapBetweenTicks
- the distance between ticks. For example, ifgapBetweenTicks
is 5.0, and the first tick is at 10.0, the next will be drawn at 15.0.- Returns:
- this Axis
-
ticks
Sets the tick locations.- Parameters:
tickLocations
- coordinates of the major tick locations- Returns:
- this Axis
-
minorTicksVisible
Sets whether minor ticks are drawn on this Axis.- Parameters:
visible
- whether minor ticks are drawn on this Axis- Returns:
- this Axis
-
minorTicks
Sets the number of minor ticks between consecutive major ticks. These minor ticks are equally spaced.- Parameters:
nminor
- number of minor ticks between consecutive major ticks.- Returns:
- this Axis
-
tickLabelAngle
Sets the angle the tick labels of this Axis are drawn at.- Parameters:
angle
- angle in degrees- Returns:
- this Axis
-