Package com.illumon.iris.db.plot
Class AxisImpl
java.lang.Object
com.illumon.iris.db.plot.AxisImpl
- All Implemented Interfaces:
Axis,PlotExceptionCause,Serializable
Represents an axis.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOneClickChartModifier(OneClickChartModifier oneClickChartModifier) voidvoidSets the color for this Axis line and tick marks.Sets the color for this Axis line and tick marks.axisFormat(AxisFormat format) Sets theAxisFormatfor this Axis.axisFormatPattern(String pattern) 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'sAxisTransformas anAxisTransformBusinessCalendar.businessTime(SelectableDataSet sds, String valueColumn) Sets this Axis'sAxisTransformas anAxisTransformBusinessCalendar.businessTime(BusinessCalendar calendar) Sets this Axis'sAxisTransformas anAxisTransformBusinessCalendar.Gets theCategoryIndexof this Axis.chart()Gets this AxisImpl's id.Creates a copy of this Axis using a different chart.intdim()Gets the dimensionality of this AxisImpl.Gets theAxisTransformof this AxisImpl.getColor()Gets this AxisImpl's color.Gets theAxisFormatof this AxisImpl.Gets the format pattern for this AxisImpl's tick labels.doubleGets the gap between consecutive major ticks.booleanGets whether to invert this AxisImpl.getLabel()Gets this AxisImpl's label.Gets theFontof this AxisImpl's label.double[]Gets the locations of the major ticks.doubleGets the maximum of this AxisImpl's range.intGets the number of minor ticks between consecutive major ticks.doubleGets the minimum of this AxisImpl's range.doubleGets the angle in degrees at which the tick label text will be drawn.Gets theFontof this AxisImpl's tick labels.getType()Gets the type of axis.intid()Gets this AxisImpl's id.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.booleanisLog()Whether this is a logarithmic axis.booleanWhether the major ticks are drawn.booleanWhether the minor ticks are drawn.booleanWhether this axis is time axis.log()Sets the AxisTransform as log base 10.max(double max) Sets the maximum range of this Axis.max(SelectableDataSet sds, String valueColumn) Sets the maximum range of this Axis.min(double min) Sets the minimum range of this Axis.min(SelectableDataSet sds, String valueColumn) Sets the minimum range of this Axis.minorTicks(int count) Sets the number of minor ticks between consecutive major ticks.minorTicksVisible(boolean visible) Sets whether minor ticks are drawn on this Axis.voidonClose()range(double min, double max) Sets the range of this Axis to [min,max] inclusive.voidsetTimeAxis(boolean timeAxis) Sets the boolean representing whether this axis is time axistickLabelAngle(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 theAxisTransformfor this Axis.Gets the transformedCategoryIndexof this Axis.
-
Field Details
-
oneClickChartModifiers
-
-
Constructor Details
-
AxisImpl
Creates a copy of an Axis using a different chart.- Parameters:
axis- axis to copy.chart- new chart.
-
-
Method Details
-
copy
Creates a copy of this Axis using a different chart.- Parameters:
chart- new chart.- Returns:
- axis copy.
-
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-
dim
public int dim()Gets the dimensionality of this AxisImpl.- Returns:
- this AxisImpl's dimensionality
-
id
public int id()Gets this AxisImpl's id.- Returns:
- this AxisImpl's id
-
getColor
Gets this AxisImpl's color.- Returns:
- this AxisImpl's color
-
chart
Gets this AxisImpl's id.- Returns:
- this AxisImpl's id
-
getType
Gets the type of axis.- Returns:
- type of axis.
-
isLog
public boolean isLog()Whether this is a logarithmic axis.- Returns:
- if this is a logarithmic axis, true; false otherwise
-
getLabel
Gets this AxisImpl's label.- Returns:
- this AxisImpl's label
-
getLabelFont
Gets theFontof this AxisImpl's label.- Returns:
- this AxisImpl's label's
Font
-
getTicksFont
Gets theFontof this AxisImpl's tick labels.- Returns:
- this AxisImpl's tick label's
Font
-
getFormat
Gets theAxisFormatof this AxisImpl.- Returns:
- this AxisImpl's
AxisFormat
-
getFormatPattern
Gets the format pattern for this AxisImpl's tick labels.- Returns:
- this AxisImpl's tick labels' format pattern
-
getInvert
public boolean getInvert()Gets whether to invert this AxisImpl.- Returns:
- whether to invert this AxisImpl.
-
getMinRange
public double getMinRange()Gets the minimum of this AxisImpl's range.- Returns:
- minimum of this AxisImpl's range
-
getMaxRange
public double getMaxRange()Gets the maximum of this AxisImpl's range.- Returns:
- maximum of this AxisImpl's range
-
isMinorTicksVisible
public boolean isMinorTicksVisible()Whether the minor ticks are drawn.- Returns:
- if the minor ticks will be drawn, true; otherwise false
-
isMajorTicksVisible
public boolean isMajorTicksVisible()Whether the major ticks are drawn.- Returns:
- if the major ticks will be drawn, true; otherwise false
-
getMinorTickCount
public int getMinorTickCount()Gets the number of minor ticks between consecutive major ticks.- Returns:
- number of minor ticks between consecutive major ticks
-
getGapBetweenMajorTicks
public double getGapBetweenMajorTicks()Gets the gap between consecutive major ticks.- Returns:
- the gap between consecutive major ticks
-
getMajorTickLocations
public double[] getMajorTickLocations()Gets the locations of the major ticks.- Returns:
- the locations of the major ticks
-
getTickLabelAngle
public double getTickLabelAngle()Gets the angle in degrees at which the tick label text will be drawn.- Returns:
- angle at which the tick label text will be drawn
-
getAxisTransform
Gets theAxisTransformof this AxisImpl.- Returns:
- this AxisImpl's
AxisTransform
-
categoryIndex
Gets theCategoryIndexof this Axis.- Returns:
- this Axis's
CategoryIndex
-
transformedCategoryIndex
Gets the transformedCategoryIndexof this Axis.- Returns:
- this Axis's transformed
CategoryIndex
-
isTimeAxis
public boolean isTimeAxis()Whether this axis is time axis.- Returns:
- boolean informing whether this axis is time axis
-
setTimeAxis
public void setTimeAxis(boolean timeAxis) Sets the boolean representing whether this axis is time axis- Parameters:
timeAxis- boolean representing whether this axis is time axis
-
addTableMapHandle
-
getSwappableTables
-
getTableMapHandles
-
addSwappableTable
-
addOneClickChartModifier
-
getOneClickChartModifiers
-
onClose
public void onClose() -
axisFormat
Description copied from interface:AxisSets theAxisFormatfor this Axis.- Specified by:
axisFormatin interfaceAxis- Parameters:
format- axis format- Returns:
- this Axis
-
axisFormatPattern
Description copied from interface:AxisSets the format pattern for this Axis's labels.- Specified by:
axisFormatPatternin interfaceAxis- Parameters:
pattern- axis format pattern- Returns:
- this Axis
-
axisColor
Description copied from interface:AxisSets the color for this Axis line and tick marks. -
axisColor
Description copied from interface:AxisSets the color for this Axis line and tick marks. -
axisLabel
Description copied from interface:AxisSets the label for this Axis. -
axisLabelFont
Description copied from interface:AxisSets the font for this Axis's label.- Specified by:
axisLabelFontin interfaceAxis- Parameters:
font- font- Returns:
- this Axis
-
axisLabelFont
Description copied from interface:AxisSets the font for this Axis's label.- Specified by:
axisLabelFontin interfaceAxis- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Axis
-
ticksFont
Description copied from interface:AxisSets the font for this Axis's ticks. -
ticksFont
Description copied from interface:AxisSets the font for this Axis's ticks.- Specified by:
ticksFontin interfaceAxis- Parameters:
family- font family; if null, set to Arialstyle- font style; if null, set toFont.FontStylePLAINsize- the point size of the Font- Returns:
- this Axis
-
transform
Description copied from interface:AxisSets theAxisTransformfor this Axis. -
log
Description copied from interface:AxisSets the AxisTransform as log base 10. -
businessTime
Description copied from interface:AxisSets this Axis'sAxisTransformas anAxisTransformBusinessCalendar.- Specified by:
businessTimein interfaceAxis- Parameters:
calendar- business calendar of theAxisTransformBusinessCalendar- Returns:
- this Axis using the specified business calendar.
-
businessTime
Description copied from interface:AxisSets this Axis'sAxisTransformas anAxisTransformBusinessCalendar.- Specified by:
businessTimein interfaceAxis- Parameters:
sds- selectable data set (e.g. OneClick filterable table) containing the business calendar.valueColumn- 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
sdsfor the business calendar. If no value is found, no transform will be applied.
-
businessTime
Description copied from interface:AxisSets this Axis'sAxisTransformas anAxisTransformBusinessCalendar.- Specified by:
businessTimein interfaceAxis- Returns:
- this Axis using the default business calendar.
-
invert
Description copied from interface:AxisInverts this Axis so that larger values are closer to the origin. -
invert
Description copied from interface:AxisInverts this Axis so that larger values are closer to the origin. -
range
Description copied from interface:AxisSets the range of this Axis to [min,max] inclusive. -
min
Description copied from interface:AxisSets the minimum range of this Axis. -
max
Description copied from interface:AxisSets the maximum range of this Axis. -
min
Description copied from interface:AxisSets the minimum range of this Axis. -
max
Description copied from interface:AxisSets the maximum range of this Axis. -
ticksVisible
Description copied from interface:AxisSets whether ticks are drawn on this Axis.- Specified by:
ticksVisiblein interfaceAxis- Parameters:
visible- whether ticks are drawn on this Axis- Returns:
- this Axis
-
ticks
Description copied from interface:AxisSets the tick locations. -
ticks
Description copied from interface:AxisSets the tick locations. -
minorTicksVisible
Description copied from interface:AxisSets whether minor ticks are drawn on this Axis.- Specified by:
minorTicksVisiblein interfaceAxis- Parameters:
visible- whether minor ticks are drawn on this Axis- Returns:
- this Axis
-
minorTicks
Description copied from interface:AxisSets the number of minor ticks between consecutive major ticks. These minor ticks are equally spaced.- Specified by:
minorTicksin interfaceAxis- Parameters:
count- number of minor ticks between consecutive major ticks.- Returns:
- this Axis
-
tickLabelAngle
Description copied from interface:AxisSets the angle the tick labels of this Axis are drawn at.- Specified by:
tickLabelAnglein interfaceAxis- Parameters:
angle- angle in degrees- Returns:
- this Axis
-