T
- The type of data used by axispublic abstract class AxisCore<T extends java.lang.Comparable<T>> extends java.lang.Object implements IAxisCore
Modifier and Type | Class and Description |
---|---|
protected class |
AxisCore.InvalidateElementCallback
Listener class for smart property which invalidates this axis and parent
ISciChartSurface if property changes |
protected class |
AxisCore.RedrawElementCallback
Listener class for smart property which invalidates only this axis if property changes
|
Modifier and Type | Field and Description |
---|---|
protected com.scichart.core.framework.SmartProperty<AutoRange> |
autoRangeProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
autoTicksProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.BrushStyle> |
axisBandsStyleProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.CharSequence> |
axisTitleProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
cursorTextFormattingProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
drawLabelsProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
drawMajorBandsProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
drawMajorGridLinesProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
drawMajorTicksProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
drawMinorGridLinesProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
drawMinorTicksProperty |
protected com.scichart.core.framework.SmartPropertyBoolean |
flipCoordinatesProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.Comparable> |
majorDeltaProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
majorGridLineStyleProperty |
protected com.scichart.core.framework.SmartPropertyFloat |
majorTickLineLengthProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
majorTickLineStyleProperty |
protected com.scichart.core.framework.SmartPropertyInteger |
maxAutoTicksProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.Comparable> |
minorDeltaProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
minorGridLineStyleProperty |
protected com.scichart.core.framework.SmartPropertyInteger |
minorsPerMajorProperty |
protected com.scichart.core.framework.SmartPropertyFloat |
minorTickLineLengthProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> |
minorTickLineStyleProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
textFormattingProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.FontStyle> |
tickLabelStyleProperty |
protected com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.FontStyle> |
titleStyleProperty |
Modifier | Constructor and Description |
---|---|
protected |
AxisCore(com.scichart.data.model.IRange<T> defaultNonZeroRange) |
Modifier and Type | Method and Description |
---|---|
void |
animateVisibleRangeTo(com.scichart.data.model.IRange range,
long duration)
Animates the visible range of the axis to the destination
range , over the specified duration . |
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
void |
attachTo(com.scichart.core.IServiceContainer services) |
protected void |
coerceVisibleRange(com.scichart.data.model.IRange<T> visibleRange)
When overridden in derived classes, changes value of the VisibleRange according to axis requirements
|
void |
decrementSuspend() |
void |
detach() |
AutoRange |
getAutoRange()
Gets auto range mode for current axis.
|
boolean |
getAutoTicks()
Get the value that indicates whether calculate ticks automatically.
|
com.scichart.drawing.common.BrushStyle |
getAxisBandsStyle()
Gets the style for Axis Bands
|
java.lang.CharSequence |
getAxisTitle()
Gets sets the Axis Title
|
float |
getCoordinate(java.lang.Comparable value)
Converts given data value to the x or y pixel coordinate on this axis
|
java.lang.String |
getCursorTextFormatting()
Gets the Text Formatting String for Labels on this cursor
|
java.lang.Comparable |
getDataValue(float pixelCoordinate)
Converts given the x or y pixel coordinate to the data value at this coordinate
|
com.scichart.data.model.IRange<T> |
getDefaultNonZeroRange()
Returns an default non zero
IRange , called internally by SciChart to reset the VisibleRange of an axis to an default state |
boolean |
getDrawLabels()
Gets a flag indicating whether to draw tick labels or not
|
boolean |
getDrawMajorBands()
Gets a flag indicating whether to draw major bands or not
|
boolean |
getDrawMajorGridLines()
Gets a flag indicating whether to draw major grid lines or not
|
boolean |
getDrawMajorTicks()
Gets a flag indicating whether to draw major ticks or not
|
boolean |
getDrawMinorGridLines()
Gets a flag indicating whether to draw minor grid lines or not
|
boolean |
getDrawMinorTicks()
Gets a flag indicating whether to draw minor ticks or not
|
boolean |
getFlipCoordinates()
Gets a flag indicating whether to flip the tick and pixel coordinate generation for this axis, causing the axis ticks to decrement and chart to be flipped in the axis direction
|
com.scichart.data.model.IRange<java.lang.Double> |
getGrowBy()
Gets the GrowBy Factor
|
boolean |
getIsSuspended() |
ILabelProvider |
getLabelProvider()
Gets a
ILabelProvider instance, which may be used to programmatically override the formatting of text and cursor labels. |
java.lang.Comparable |
getMajorDelta()
Gets the Major Delta
|
com.scichart.drawing.common.PenStyle |
getMajorGridLineStyle()
Gets the style which is used to draw all major grid lines on this axis
|
float |
getMajorTickLineLength()
Gets the the length of all major ticks on this axis
|
com.scichart.drawing.common.PenStyle |
getMajorTickLineStyle()
Gets the style which is used to draw all major ticks on this axis
|
int |
getMaxAutoTicks()
Gets the max ticks.
|
java.lang.Comparable |
getMaximumZoomConstrain()
Gets the MaximumZoomConstrain of the Axis.
|
java.lang.Comparable |
getMinimalZoomConstrain()
Gets the MinimalZoomConstrain of the Axis.
|
java.lang.Comparable |
getMinorDelta()
Gets the Minor Delta
|
com.scichart.drawing.common.PenStyle |
getMinorGridLineStyle()
Gets the style which is used to draw all minor grid lines on this axis
|
int |
getMinorsPerMajor()
Gets the number of Minor Delta ticks per Major Tick
|
float |
getMinorTickLineLength()
Gets the the length of all minor ticks on this axis
|
com.scichart.drawing.common.PenStyle |
getMinorTickLineStyle()
Gets the style which is used to draw all minor ticks on this axis
|
com.scichart.core.IServiceContainer |
getServices() |
java.lang.String |
getTextFormatting()
Gets the Text Formatting String for Axis Tick Labels on this axis
|
ITickCoordinatesProvider |
getTickCoordinatesProvider()
Gets a
ITickCoordinatesProvider instance on current axis,
which is used to transform the data-values received from the ITickProvider instance
to the coordinates for Axis Grid Lines, Ticks and Labels drawing. |
com.scichart.drawing.common.FontStyle |
getTickLabelStyle()
Gets the style which is used to draw all tick labels on this axis
|
ITickProvider |
getTickProvider()
Gets a
ITickProvider instance on current axis,
which is used to compute the data-values of Axis Grid Lines, Ticks and Labels. |
com.scichart.drawing.common.FontStyle |
getTitleStyle()
Gets the style which is used to draw axis title
|
protected abstract java.lang.Class<T> |
getType()
Gets base value type for current axis
|
com.scichart.data.model.IRange<T> |
getVisibleRange()
Gets the VisibleRange of the Axis
|
protected IVisibleRangeAnimator |
getVisibleRangeAnimator()
Gets a
IVisibleRangeAnimator instance used to animate the VisibleRange on this axis. |
com.scichart.data.model.IRange<T> |
getVisibleRangeLimit()
Gets the VisibleRangeLimit of the Axis.
|
com.scichart.data.model.RangeClipMode |
getVisibleRangeLimitMode()
Gets the VisibleRangeLimitMode of the Axis.
|
protected abstract java.lang.Class<? extends com.scichart.data.model.IRange<T>> |
getVisibleRangeType()
Gets the type of visible range which is supported by current axis
|
protected java.lang.Class<? extends java.lang.Comparable> |
getZoomConstrainType()
Gets the type of zoom constrain value which is supported by current axis.
|
boolean |
hasDefaultVisibleRange()
Gets whether the VisibleRange has default value
|
boolean |
hasValidVisibleRange()
Gets whether the VisibleRange is valid, e.g.
|
void |
invalidateElement() |
abstract void |
invalidateElement(boolean isAxisDirty)
Invalidate current axis
|
boolean |
isAttached() |
boolean |
isValidRange(com.scichart.data.model.IRange range)
Checks whether
range is valid visible range for this axis |
protected boolean |
isValidVisibleRange(com.scichart.data.model.IRange visibleRange)
Checks whether
IRange instance is valid for current axis |
protected boolean |
isZoomConstrainSatisfied(com.scichart.data.model.IRange<T> range)
Checks if specified range satisfies zoom constrain for this axis
|
void |
onDataRangeChanged()
Used internally for notification of axis when data range changes
|
protected void |
onVisibleRangeChanged(com.scichart.data.model.IRange oldRange,
com.scichart.data.model.IRange newRange,
boolean isAnimating)
Called when VisibleRange changes
|
protected abstract void |
recreateCalculator()
Recreates coordinate calculator for current axis
|
void |
resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender) |
void |
setAutoRange(AutoRange autoRange)
Sets auto range mode for current axis.
|
void |
setAutoTicks(boolean autoTicks)
Sets the value that indicates whether calculate ticks automatically.
|
void |
setAxisBandsStyle(com.scichart.drawing.common.BrushStyle axisBandsPaint)
Sets the style for Axis Bands.
|
void |
setAxisTitle(java.lang.CharSequence axisTitle)
Sets or sets the Axis Title
|
void |
setCursorTextFormatting(java.lang.String cursorTextFormatting)
Sets the Text Formatting String for Labels on this cursor
|
void |
setDataRangeChangeListener(DataRangeChangeListener listener)
Sets
DataRangeChangeListener for this axis instance |
void |
setDrawLabels(boolean drawLabels)
Sets a flag indicating whether to draw tick labels or not
|
void |
setDrawMajorBands(boolean drawMajorBands)
Sets a flag indicating whether to draw major bands or not
|
void |
setDrawMajorGridLines(boolean drawMajorGridLines)
Sets a flag indicating whether to draw major grid lines or not
|
void |
setDrawMajorTicks(boolean drawMajorTicks)
Sets a flag indicating whether to draw major ticks or not
|
void |
setDrawMinorGridLines(boolean drawMinorGridLines)
Sets a flag indicating whether to draw minor grid lines or not
|
void |
setDrawMinorTicks(boolean drawMinorTicks)
Sets a flag indicating whether to draw minor ticks or not
|
void |
setFlipCoordinates(boolean flipCoordinates)
Sets a flag indicating whether to flip the tick and pixel coordinate generation for this axis, causing the axis ticks to decrement and chart to be flipped in the axis direction
If
true reverses the ticks and coordinates for the axis. |
void |
setGrowBy(com.scichart.data.model.IRange<java.lang.Double> growBy)
Sets the GrowBy Factor.
|
void |
setLabelProvider(ILabelProvider labelProvider)
Sets a
ILabelProvider instance, which may be used to programmatically override the formatting of text and cursor labels. |
void |
setMajorDelta(java.lang.Comparable majorDelta)
Sets the Major Delta
|
void |
setMajorGridLineStyle(com.scichart.drawing.common.PenStyle majorGridLineStyle)
Sets the style which is used to draw all major grid lines on this axis
|
void |
setMajorTickLineLength(float majorTickLineLength)
Sets the the length of all major ticks on this axis
|
void |
setMajorTickLineStyle(com.scichart.drawing.common.PenStyle majorTickLineStyle)
Sets the style which is used to draw all major ticks on this axis
|
void |
setMaxAutoTicks(int maxAutoTicks)
Sets the max ticks.
|
void |
setMaximumZoomConstrain(java.lang.Comparable maximumZoomConstrain)
Sets the MaximumZoomConstrain of the Axis.
|
void |
setMinimalZoomConstrain(java.lang.Comparable minimalZoomConstrain)
Sets the MinimalZoomConstrain of the Axis.
|
void |
setMinorDelta(java.lang.Comparable minorDelta)
Sets the Minor Delta
|
void |
setMinorGridLineStyle(com.scichart.drawing.common.PenStyle minorGridLineStyle)
Sets the style which is used to draw all minor grid lines on this axis
|
void |
setMinorsPerMajor(int minorsPerMajor)
Sets the number of Minor Delta ticks per Major Tick
|
void |
setMinorTickLineLength(float minorTickLineLength)
Sets the the length of all minor ticks on this axis
|
void |
setMinorTickLineStyle(com.scichart.drawing.common.PenStyle minorTickLineStyle)
Sets the style which is used to draw all minor ticks on this axis
|
void |
setTextFormatting(java.lang.String textFormatting)
Sets the Text Formatting String for Axis Tick Labels on this axis
|
void |
setTickCoordinatesProvider(ITickCoordinatesProvider tickCoordinatesProvider)
Sets a
ITickCoordinatesProvider instance on current axis,
which is used to transform the data-values received from the ITickProvider instance
to the coordinates for Axis Grid Lines, Ticks and Labels drawing. |
void |
setTickLabelStyle(com.scichart.drawing.common.FontStyle tickLabelStyle)
Sets the style which is used to draw all tick labels on this axis
|
void |
setTickProvider(ITickProvider tickProvider)
Sets a
ITickProvider instance on current axis,
which is used to compute the data-values of Axis Grid Lines, Ticks and Labels. |
void |
setTitleStyle(com.scichart.drawing.common.FontStyle titleStyle)
Sets the style which is used to draw axis title
|
void |
setVisibleRange(com.scichart.data.model.IRange visibleRange)
Sets the VisibleRange of the Axis.
|
protected void |
setVisibleRangeAnimator(IVisibleRangeAnimator visibleRangeAnimator)
Sets a
IVisibleRangeAnimator instance used to animate the VisibleRange on this axis. |
void |
setVisibleRangeChangeListener(VisibleRangeChangeListener listener)
Sets
VisibleRangeChangeListener for this axis instance |
void |
setVisibleRangeLimit(com.scichart.data.model.IRange visibleRangeLimit)
Sets the VisibleRangeLimit of the Axis.
|
void |
setVisibleRangeLimitMode(com.scichart.data.model.RangeClipMode visibleRangeLimitMode)
the VisibleRangeLimitMode of the Axis.
|
com.scichart.core.framework.IUpdateSuspender |
suspendUpdates() |
protected void |
tryApplyVisibleRangeLimitTo(com.scichart.data.model.IRange<T> range) |
protected static <T extends IAxisCore> |
tryAttachTo(T axis,
com.scichart.core.framework.IAttachable attachable)
Helper method which attaches
IAttachable instance to axis. |
protected static <T extends IAxisCore> |
tryDetachFrom(T axis,
com.scichart.core.framework.IAttachable attachable)
Helper method which detaches
IAttachable instance from axis. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCoordinateCalculatorFrom, getAxisId, getCurrentCoordinateCalculator, getDataRange, getDataRange, getMaximumRange, getMaximumRange, getVisibility, setAxisId, setVisibility
protected final com.scichart.core.framework.SmartProperty<java.lang.CharSequence> axisTitleProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> textFormattingProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> cursorTextFormattingProperty
protected final com.scichart.core.framework.SmartPropertyBoolean drawMajorTicksProperty
protected final com.scichart.core.framework.SmartPropertyBoolean drawMajorGridLinesProperty
protected final com.scichart.core.framework.SmartPropertyBoolean drawMajorBandsProperty
protected final com.scichart.core.framework.SmartPropertyBoolean drawMinorTicksProperty
protected final com.scichart.core.framework.SmartPropertyBoolean drawMinorGridLinesProperty
protected final com.scichart.core.framework.SmartPropertyBoolean drawLabelsProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> majorGridLineStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> minorGridLineStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> majorTickLineStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.PenStyle> minorTickLineStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.BrushStyle> axisBandsStyleProperty
protected final com.scichart.core.framework.SmartPropertyBoolean flipCoordinatesProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.FontStyle> tickLabelStyleProperty
protected final com.scichart.core.framework.SmartProperty<com.scichart.drawing.common.FontStyle> titleStyleProperty
protected final com.scichart.core.framework.SmartPropertyFloat minorTickLineLengthProperty
protected final com.scichart.core.framework.SmartPropertyFloat majorTickLineLengthProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.Comparable> minorDeltaProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.Comparable> majorDeltaProperty
protected final com.scichart.core.framework.SmartPropertyBoolean autoTicksProperty
protected final com.scichart.core.framework.SmartPropertyInteger maxAutoTicksProperty
protected final com.scichart.core.framework.SmartPropertyInteger minorsPerMajorProperty
protected final com.scichart.core.framework.SmartProperty<AutoRange> autoRangeProperty
protected AxisCore(@NonNull com.scichart.data.model.IRange<T> defaultNonZeroRange)
public void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
public final boolean isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
public final com.scichart.core.IServiceContainer getServices()
getServices
in interface com.scichart.core.IServiceProvider
public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
themeProvider
- The IThemeProvider
instance which provides new theme for current instance@NonNull public final com.scichart.data.model.IRange<T> getVisibleRange()
getVisibleRange
in interface IAxisCore
public final void setVisibleRange(@NonNull com.scichart.data.model.IRange visibleRange)
setVisibleRange
in interface IAxisCore
visibleRange
- The new VisibleRange valueprotected void onVisibleRangeChanged(com.scichart.data.model.IRange oldRange, com.scichart.data.model.IRange newRange, boolean isAnimating)
oldRange
- The old VisibleRangenewRange
- The new VisibleRangeisAnimating
- Flag indicating whether the VisibleRange is animatingprotected boolean isZoomConstrainSatisfied(com.scichart.data.model.IRange<T> range)
range
- The range to checkprotected void coerceVisibleRange(com.scichart.data.model.IRange<T> visibleRange)
visibleRange
- Visible range to changeprotected IVisibleRangeAnimator getVisibleRangeAnimator()
IVisibleRangeAnimator
instance used to animate the VisibleRange on this axis.IVisibleRangeAnimator
instance.protected void setVisibleRangeAnimator(@NonNull IVisibleRangeAnimator visibleRangeAnimator)
IVisibleRangeAnimator
instance used to animate the VisibleRange on this axis.visibleRangeAnimator
- a new IVisibleRangeAnimator
instance.public final com.scichart.data.model.IRange<java.lang.Double> getGrowBy()
public final void setGrowBy(com.scichart.data.model.IRange<java.lang.Double> growBy)
@Nullable public final java.lang.Comparable getMinimalZoomConstrain()
getMinimalZoomConstrain
in interface IAxisCore
public final void setMinimalZoomConstrain(@Nullable java.lang.Comparable minimalZoomConstrain)
setMinimalZoomConstrain
in interface IAxisCore
minimalZoomConstrain
- The new minimal zoom constrain value@Nullable public final java.lang.Comparable getMaximumZoomConstrain()
getMaximumZoomConstrain
in interface IAxisCore
public final void setMaximumZoomConstrain(@Nullable java.lang.Comparable maximumZoomConstrain)
setMaximumZoomConstrain
in interface IAxisCore
maximumZoomConstrain
- The maximum zoom constrain valuepublic final com.scichart.data.model.IRange<T> getVisibleRangeLimit()
getVisibleRangeLimit
in interface IAxisCore
public final void setVisibleRangeLimit(com.scichart.data.model.IRange visibleRangeLimit)
setVisibleRangeLimit
in interface IAxisCore
visibleRangeLimit
- The new VisibleRangeLimit valueprotected final void tryApplyVisibleRangeLimitTo(com.scichart.data.model.IRange<T> range)
public final com.scichart.data.model.RangeClipMode getVisibleRangeLimitMode()
VisibleRangeLimit
will be used by axisgetVisibleRangeLimitMode
in interface IAxisCore
public final void setVisibleRangeLimitMode(com.scichart.data.model.RangeClipMode visibleRangeLimitMode)
IAxisCore.getVisibleRangeLimit()
will be used by axissetVisibleRangeLimitMode
in interface IAxisCore
visibleRangeLimitMode
- The new VisibleRangeLimitMode valuepublic final java.lang.Comparable getMinorDelta()
getMinorDelta
in interface IAxisCore
public final void setMinorDelta(java.lang.Comparable minorDelta)
setMinorDelta
in interface IAxisCore
minorDelta
- The new Minor Delta valuepublic final java.lang.Comparable getMajorDelta()
getMajorDelta
in interface IAxisCore
public final void setMajorDelta(java.lang.Comparable majorDelta)
setMajorDelta
in interface IAxisCore
majorDelta
- The new Major Delta valuepublic final boolean getAutoTicks()
getAutoTicks
in interface IAxisCore
public final void setAutoTicks(boolean autoTicks)
setAutoTicks
in interface IAxisCore
autoTicks
- The new autoTicks valuepublic final int getMaxAutoTicks()
getMaxAutoTicks
in interface IAxisCore
public final void setMaxAutoTicks(int maxAutoTicks)
setMaxAutoTicks
in interface IAxisCore
maxAutoTicks
- The new maxAutoTicks valuepublic final int getMinorsPerMajor()
getMinorsPerMajor
in interface IAxisCore
public final void setMinorsPerMajor(int minorsPerMajor)
setMinorsPerMajor
in interface IAxisCore
minorsPerMajor
- The new minorsPerMajors valuepublic final boolean getFlipCoordinates()
getFlipCoordinates
in interface IAxisCore
public final void setFlipCoordinates(boolean flipCoordinates)
true
reverses the ticks and coordinates for the axis.setFlipCoordinates
in interface IAxisCore
flipCoordinates
- The new flipCoordinates valuepublic final boolean getDrawMajorTicks()
getDrawMajorTicks
in interface IAxisCore
public final void setDrawMajorTicks(boolean drawMajorTicks)
setDrawMajorTicks
in interface IAxisCore
drawMajorTicks
- The new drawMajorTicks valuepublic final boolean getDrawMajorGridLines()
getDrawMajorGridLines
in interface IAxisCore
public final void setDrawMajorGridLines(boolean drawMajorGridLines)
setDrawMajorGridLines
in interface IAxisCore
drawMajorGridLines
- The new drawMajorGridLines valuepublic final boolean getDrawMajorBands()
getDrawMajorBands
in interface IAxisCore
public final void setDrawMajorBands(boolean drawMajorBands)
setDrawMajorBands
in interface IAxisCore
drawMajorBands
- The new drawMajorBands valuepublic final boolean getDrawMinorTicks()
getDrawMinorTicks
in interface IAxisCore
public final void setDrawMinorTicks(boolean drawMinorTicks)
setDrawMinorTicks
in interface IAxisCore
drawMinorTicks
- The new drawMinorTicks valuepublic final boolean getDrawMinorGridLines()
getDrawMinorGridLines
in interface IAxisCore
public final void setDrawMinorGridLines(boolean drawMinorGridLines)
setDrawMinorGridLines
in interface IAxisCore
drawMinorGridLines
- The new drawMinorGridLines valuepublic final boolean getDrawLabels()
getDrawLabels
in interface IAxisCore
public final void setDrawLabels(boolean drawLabels)
setDrawLabels
in interface IAxisCore
drawLabels
- The new drawLabels valuepublic final void setAxisTitle(java.lang.CharSequence axisTitle)
setAxisTitle
in interface IAxisCore
axisTitle
- The new axis titlepublic final java.lang.CharSequence getAxisTitle()
getAxisTitle
in interface IAxisCore
public final AutoRange getAutoRange()
getAutoRange
in interface IAxisCore
public final void setAutoRange(AutoRange autoRange)
If AutoRange.Always, the axis should scale to fit the data.
If AutoRange.Once, the axis will try to fit the data once.
If AutoRange.Never, then the axis will never auto range.
setAutoRange
in interface IAxisCore
autoRange
- The new auto range valuepublic final com.scichart.drawing.common.PenStyle getMajorGridLineStyle()
getMajorGridLineStyle
in interface IAxisCore
public final void setMajorGridLineStyle(com.scichart.drawing.common.PenStyle majorGridLineStyle)
setMajorGridLineStyle
in interface IAxisCore
majorGridLineStyle
- The new major grid line stylepublic final com.scichart.drawing.common.PenStyle getMinorGridLineStyle()
getMinorGridLineStyle
in interface IAxisCore
public final void setMinorGridLineStyle(com.scichart.drawing.common.PenStyle minorGridLineStyle)
setMinorGridLineStyle
in interface IAxisCore
minorGridLineStyle
- The new minor grid line stylepublic final com.scichart.drawing.common.PenStyle getMajorTickLineStyle()
getMajorTickLineStyle
in interface IAxisCore
public final void setMajorTickLineStyle(com.scichart.drawing.common.PenStyle majorTickLineStyle)
setMajorTickLineStyle
in interface IAxisCore
majorTickLineStyle
- The new major tick line stylepublic final com.scichart.drawing.common.PenStyle getMinorTickLineStyle()
getMinorTickLineStyle
in interface IAxisCore
public final void setMinorTickLineStyle(com.scichart.drawing.common.PenStyle minorTickLineStyle)
setMinorTickLineStyle
in interface IAxisCore
minorTickLineStyle
- The new minor tick line stylepublic final void setMajorTickLineLength(float majorTickLineLength)
setMajorTickLineLength
in interface IAxisCore
majorTickLineLength
- The new major tick line length in pixelspublic final float getMajorTickLineLength()
getMajorTickLineLength
in interface IAxisCore
public final void setMinorTickLineLength(float minorTickLineLength)
setMinorTickLineLength
in interface IAxisCore
minorTickLineLength
- The new minor tick line length in pixelspublic final float getMinorTickLineLength()
getMinorTickLineLength
in interface IAxisCore
@NonNull public final ITickProvider getTickProvider()
ITickProvider
instance on current axis,
which is used to compute the data-values of Axis Grid Lines, Ticks and Labels.getTickProvider
in interface IAxisCore
public final void setTickProvider(@NonNull ITickProvider tickProvider)
ITickProvider
instance on current axis,
which is used to compute the data-values of Axis Grid Lines, Ticks and Labels.setTickProvider
in interface IAxisCore
tickProvider
- The new tick provider@NonNull public final ITickCoordinatesProvider getTickCoordinatesProvider()
ITickCoordinatesProvider
instance on current axis,
which is used to transform the data-values received from the ITickProvider
instance
to the coordinates for Axis Grid Lines, Ticks and Labels drawing.getTickCoordinatesProvider
in interface IAxisCore
public final void setTickCoordinatesProvider(@NonNull ITickCoordinatesProvider tickCoordinatesProvider)
ITickCoordinatesProvider
instance on current axis,
which is used to transform the data-values received from the ITickProvider
instance
to the coordinates for Axis Grid Lines, Ticks and Labels drawing.setTickCoordinatesProvider
in interface IAxisCore
tickCoordinatesProvider
- The new tick coordinates provider@NonNull public final ILabelProvider getLabelProvider()
ILabelProvider
instance, which may be used to programmatically override the formatting of text and cursor labels.getLabelProvider
in interface IAxisCore
NumericLabelProvider
public final void setLabelProvider(@NonNull ILabelProvider labelProvider)
ILabelProvider
instance, which may be used to programmatically override the formatting of text and cursor labels.setLabelProvider
in interface IAxisCore
labelProvider
- The new label providerpublic final java.lang.String getCursorTextFormatting()
getCursorTextFormatting
in interface IAxisCore
public final void setCursorTextFormatting(java.lang.String cursorTextFormatting)
setCursorTextFormatting
in interface IAxisCore
cursorTextFormatting
- The new cursor text formattingpublic final java.lang.String getTextFormatting()
getTextFormatting
in interface IAxisCore
public final void setTextFormatting(java.lang.String textFormatting)
setTextFormatting
in interface IAxisCore
textFormatting
- The new text formattingpublic final com.scichart.drawing.common.FontStyle getTitleStyle()
getTitleStyle
in interface IAxisCore
public final void setTitleStyle(com.scichart.drawing.common.FontStyle titleStyle)
setTitleStyle
in interface IAxisCore
titleStyle
- The new axis title stylepublic final com.scichart.drawing.common.FontStyle getTickLabelStyle()
getTickLabelStyle
in interface IAxisCore
public final void setTickLabelStyle(com.scichart.drawing.common.FontStyle tickLabelStyle)
setTickLabelStyle
in interface IAxisCore
tickLabelStyle
- The new tick label stylepublic final com.scichart.drawing.common.BrushStyle getAxisBandsStyle()
getAxisBandsStyle
in interface IAxisCore
public final void setAxisBandsStyle(com.scichart.drawing.common.BrushStyle axisBandsPaint)
setDrawMajorBands
to enable this behaviorsetAxisBandsStyle
in interface IAxisCore
axisBandsPaint
- The new axis bands stylepublic final void invalidateElement()
invalidateElement
in interface com.scichart.core.framework.IInvalidatableElement
public abstract void invalidateElement(boolean isAxisDirty)
isAxisDirty
- True if axis layout has changedprotected abstract void recreateCalculator()
public final boolean getIsSuspended()
getIsSuspended
in interface com.scichart.core.framework.ISuspendable
public final com.scichart.core.framework.IUpdateSuspender suspendUpdates()
suspendUpdates
in interface com.scichart.core.framework.ISuspendable
public void resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender)
resumeUpdates
in interface com.scichart.core.framework.ISuspendable
public void decrementSuspend()
decrementSuspend
in interface com.scichart.core.framework.ISuspendable
public final boolean hasDefaultVisibleRange()
hasDefaultVisibleRange
in interface IAxisCore
public final boolean hasValidVisibleRange()
hasValidVisibleRange
in interface IAxisCore
protected boolean isValidVisibleRange(com.scichart.data.model.IRange visibleRange)
IRange
instance is valid for current axisvisibleRange
- The range to checkpublic boolean isValidRange(com.scichart.data.model.IRange range)
range
is valid visible range for this axisisValidRange
in interface IAxisCore
range
- The range to checkprotected abstract java.lang.Class<? extends com.scichart.data.model.IRange<T>> getVisibleRangeType()
protected java.lang.Class<? extends java.lang.Comparable> getZoomConstrainType()
protected abstract java.lang.Class<T> getType()
public final com.scichart.data.model.IRange<T> getDefaultNonZeroRange()
IRange
, called internally by SciChart to reset the VisibleRange of an axis to an default stategetDefaultNonZeroRange
in interface IAxisCore
public void animateVisibleRangeTo(com.scichart.data.model.IRange range, long duration)
range
, over the specified duration
.animateVisibleRangeTo
in interface IAxisCore
range
- The end rangeduration
- The duration of the animationpublic void setDataRangeChangeListener(DataRangeChangeListener listener)
DataRangeChangeListener
for this axis instancesetDataRangeChangeListener
in interface IAxisCore
listener
- The listener to setpublic void setVisibleRangeChangeListener(VisibleRangeChangeListener listener)
VisibleRangeChangeListener
for this axis instancesetVisibleRangeChangeListener
in interface IAxisCore
listener
- The listener to setpublic void onDataRangeChanged()
onDataRangeChanged
in interface IAxisCore
public java.lang.Comparable getDataValue(float pixelCoordinate)
getDataValue
in interface IAxisCore
pixelCoordinate
- The coordinate in pixels to convertpublic float getCoordinate(java.lang.Comparable value)
getCoordinate
in interface IAxisCore
value
- The data value to convertprotected static <T extends IAxisCore> void tryAttachTo(T axis, @NonNull com.scichart.core.framework.IAttachable attachable)
IAttachable
instance to axis.T
- The type of axis which should extend IAxisCore
axis
- The target axisattachable
- The IAttachable
to attachprotected static <T extends IAxisCore> void tryDetachFrom(T axis, @NonNull com.scichart.core.framework.IAttachable attachable)
IAttachable
instance from axis.T
- The type of axis which should extend IAxisCore
axis
- The target axisattachable
- The IAttachable
to detach