T
- The type of data used by axispublic abstract class AxisBase3D<T extends java.lang.Comparable<T>> extends com.scichart.charting.visuals.axes.AxisCore<T> implements IAxis3D
com.scichart.charting.visuals.axes.AxisCore.InvalidateAndRecreateCalculatorsCallback, com.scichart.charting.visuals.axes.AxisCore.InvalidateElementCallback, com.scichart.charting.visuals.axes.AxisCore.RedrawElementCallback
Modifier and Type | Field and Description |
---|---|
protected boolean |
isProvidersDirty |
protected com.scichart.core.framework.SmartPropertyInteger |
textColorProperty |
protected com.scichart.core.framework.SmartProperty<java.lang.String> |
textFontProperty |
protected com.scichart.core.framework.SmartPropertyFloat |
textSizeProperty |
autoRangeProperty, autoTicksProperty, axisBandsStyleProperty, axisParams, axisParamsLock, axisTitleProperty, cursorTextFormattingProperty, DEFAULT_AXIS_ID, drawLabelsProperty, drawMajorBandsProperty, drawMajorGridLinesProperty, drawMajorTicksProperty, drawMinorGridLinesProperty, drawMinorTicksProperty, flipCoordinatesProperty, invalidateAndRecreateCalculatorsCallback, invalidateElement, majorDeltaProperty, majorGridLineStyleProperty, majorTickLineLengthProperty, majorTickLineStyleProperty, maxAutoTicksProperty, minorDeltaProperty, minorGridLineStyleProperty, minorsPerMajorProperty, minorTickLineLengthProperty, minorTickLineStyleProperty, redrawElement, textFormattingProperty
Modifier | Constructor and Description |
---|---|
protected |
AxisBase3D(com.scichart.data.model.IRange<T> defaultNonZeroRange)
Creates a new instance of
AxisBase3D class |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(com.scichart.charting.themes.IThemeProvider themeProvider) |
void |
attachTo(com.scichart.core.IServiceContainer services) |
protected int |
calculateAxisViewportDimension()
Calculates axis viewport dimension in pixels
|
protected com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator |
createCoordinateCalculator(com.scichart.charting.visuals.axes.AxisParams axisParams,
double visibleRangeMin,
double visibleRangeMax)
Creates new
ICoordinateCalculator based on axis params values and double representation of visible range |
com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator |
createCoordinateCalculatorFrom(com.scichart.data.model.IRange visibleRange) |
void |
detach() |
AxisDirection3D |
getAxisDirection3D()
Gets the axis direction used by this axis
|
float |
getAxisTitleOffset()
Gets the offset applied to axis title drawn by this axis
|
int |
getAxisViewportDimension() |
com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator |
getCurrentCoordinateCalculator() |
com.scichart.data.model.IRange<T> |
getDataRange(boolean forceCacheUpdate) |
com.scichart.data.model.IRange<T> |
getMaximumRange(boolean forceCacheUpdate) |
AxisSideClipping |
getNegativeSideClipping()
Gets the clipping for negative axis side
|
ISciChartSurface3D |
getParentSurface()
Gets the parent surface that this instance is associated with
|
int |
getPlaneBorderColor()
Gets the color of axis plane border
|
float |
getPlaneBorderThickness()
Gets the thickness of axis plane border
|
AxisSideClipping |
getPositiveSideClipping()
Gets the clipping for positive axis side
|
int |
getTextColor()
Gets the color of text used by axis
|
java.lang.String |
getTextFont()
Gets font used by axis to draw text
|
float |
getTextSize()
Gets the size of text used by axis
|
TextAlignment3D |
getTickLabelAlignment()
Gets the TextAlignment of tick labels for the axis drawn in the 3D Viewport
|
float |
getTickLabelOffset()
Gets the offset applied to tick labels drawn by this axis
|
void |
invalidateElement(boolean isAxisDirty) |
void |
onDataRangeChanged() |
void |
onWorldDimensionsChanged(Vector3 worldDimensions)
Called when observed world dimensions instance has changed.
|
protected void |
recreateCalculator() |
void |
setAxisDirection3D(AxisDirection3D axisDirection3D)
Sets the axis direction used by this axis
|
void |
setAxisTitleOffset(float axisTitleOffset)
Sets the offset applied to axis title drawn by this axis
|
void |
setNegativeSideClipping(AxisSideClipping negativeSideClipping)
Sets the clipping for negative axis side
|
void |
setPlaneBorderColor(int planeBorderColor)
Sets the color of axis plane border
|
void |
setPlaneBorderThickness(float planeBorderThickness)
Sets the thickness of axis plane border
|
void |
setPositiveSideClipping(AxisSideClipping positiveSideClipping)
Sets the clipping for positive axis side
|
protected void |
setRangeCalculationHelper(IRangeCalculationHelper3D<T> rangeCalculationHelper)
Sets
IRangeCalculationHelper3D instance which will be used for range calculations in this axis |
void |
setTextColor(int textColor)
Sets the color of text used by axis
|
void |
setTextFont(java.lang.String textFont)
Sets font used by axis to draw text
|
void |
setTextSize(float textSize)
Sets the size of text used by axis
|
void |
setTickLabelAlignment(TextAlignment3D tickLabelAlignment)
Sets the TextAlignment of tick labels for the axis drawn in the 3D Viewport
|
void |
setTickLabelOffset(float tickLabelOffset)
Sets the offset applied to tick labels drawn by this axis
|
void |
update(RenderPassState3D renderPassState)
Updates the state of this
IUpdatable3D before rendering |
protected void |
updateAxisParams(com.scichart.charting.visuals.axes.AxisParams axisParams)
Updates axis params according to current state of axis
|
void |
updateCore()
Performs core update of axis
(e.g.
|
protected void |
updateProviders()
Updates axis providers such as
ITickProvider , ILabelProvider , ITickCoordinatesProvider |
animateVisibleRangeTo, coerceVisibleRange, decrementSuspend, formatCursorText, formatText, fromDouble, getAutoRange, getAutoTicks, getAxisBandsStyle, getAxisId, getAxisParamsLock, getAxisTitle, getCoordinate, getCursorTextFormatting, getDataRange, getDataValue, getDefaultNonZeroRange, getDrawLabels, getDrawMajorBands, getDrawMajorGridLines, getDrawMajorTicks, getDrawMinorGridLines, getDrawMinorTicks, getFlipCoordinates, getGrowBy, getIsSuspended, getLabelProvider, getMajorDelta, getMajorGridLineStyle, getMajorTickLineLength, getMajorTickLineStyle, getMaxAutoTicks, getMaximumRange, getMaximumZoomConstrain, getMinimalZoomConstrain, getMinorDelta, getMinorGridLineStyle, getMinorsPerMajor, getMinorTickLineLength, getMinorTickLineStyle, getServices, getTextFormatting, getTickCoordinatesProvider, getTickProvider, getType, getUpdateSuspenderCount, getVisibility, getVisibleRange, getVisibleRangeAnimator, getVisibleRangeLimit, getVisibleRangeLimitMode, getVisibleRangeType, getZoomConstrainType, hasDefaultVisibleRange, hasValidVisibleRange, invalidateElement, isAttached, isValidRange, isValidVisibleRange, isZoomConstrainSatisfied, onVisibilityChanged, onVisibleRangeChanged, resumeUpdates, setAutoRange, setAutoTicks, setAxisBandsStyle, setAxisId, setAxisTitle, setCursorTextFormatting, setDataRangeChangeListener, setDrawLabels, setDrawMajorBands, setDrawMajorGridLines, setDrawMajorTicks, setDrawMinorGridLines, setDrawMinorTicks, setFlipCoordinates, setGrowBy, setLabelProvider, setMajorDelta, setMajorGridLineStyle, setMajorTickLineLength, setMajorTickLineStyle, setMaxAutoTicks, setMaximumZoomConstrain, setMinimalZoomConstrain, setMinorDelta, setMinorGridLineStyle, setMinorsPerMajor, setMinorTickLineLength, setMinorTickLineStyle, setTextFormatting, setTickCoordinatesProvider, setTickProvider, setVisibility, setVisibleRange, setVisibleRangeAnimator, setVisibleRangeChangeListener, setVisibleRangeLimit, setVisibleRangeLimitMode, suspendUpdates, toDouble, tryApplyVisibleRangeLimitTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
animateVisibleRangeTo, formatCursorText, formatText, getAutoRange, getAutoTicks, getAxisBandsStyle, getAxisId, getAxisParamsLock, getAxisTitle, getCoordinate, getCursorTextFormatting, getDataRange, getDataValue, getDefaultNonZeroRange, getDrawLabels, getDrawMajorBands, getDrawMajorGridLines, getDrawMajorTicks, getDrawMinorGridLines, getDrawMinorTicks, getFlipCoordinates, getGrowBy, getLabelProvider, getMajorDelta, getMajorGridLineStyle, getMajorTickLineLength, getMajorTickLineStyle, getMaxAutoTicks, getMaximumRange, getMaximumZoomConstrain, getMinimalZoomConstrain, getMinorDelta, getMinorGridLineStyle, getMinorsPerMajor, getMinorTickLineLength, getMinorTickLineStyle, getTextFormatting, getTickCoordinatesProvider, getTickProvider, getVisibility, getVisibleRange, getVisibleRangeLimit, getVisibleRangeLimitMode, hasDefaultVisibleRange, hasValidVisibleRange, isValidRange, setAutoRange, setAutoTicks, setAxisBandsStyle, setAxisId, setAxisTitle, setCursorTextFormatting, setDataRangeChangeListener, setDrawLabels, setDrawMajorBands, setDrawMajorGridLines, setDrawMajorTicks, setDrawMinorGridLines, setDrawMinorTicks, setFlipCoordinates, setGrowBy, setLabelProvider, setMajorDelta, setMajorGridLineStyle, setMajorTickLineLength, setMajorTickLineStyle, setMaxAutoTicks, setMaximumZoomConstrain, setMinimalZoomConstrain, setMinorDelta, setMinorGridLineStyle, setMinorsPerMajor, setMinorTickLineLength, setMinorTickLineStyle, setTextFormatting, setTickCoordinatesProvider, setTickProvider, setVisibility, setVisibleRange, setVisibleRangeChangeListener, setVisibleRangeLimit, setVisibleRangeLimitMode
decrementSuspend, getIsSuspended, getUpdateSuspenderCount, resumeUpdates, suspendUpdates
protected final com.scichart.core.framework.SmartPropertyInteger textColorProperty
protected final com.scichart.core.framework.SmartPropertyFloat textSizeProperty
protected final com.scichart.core.framework.SmartProperty<java.lang.String> textFontProperty
protected volatile boolean isProvidersDirty
protected AxisBase3D(com.scichart.data.model.IRange<T> defaultNonZeroRange)
AxisBase3D
classdefaultNonZeroRange
- The default non zero range which should be used by axispublic final AxisDirection3D getAxisDirection3D()
getAxisDirection3D
in interface IAxis3D
public final void setAxisDirection3D(AxisDirection3D axisDirection3D)
setAxisDirection3D
in interface IAxis3D
axisDirection3D
- The new axis directionpublic final TextAlignment3D getTickLabelAlignment()
getTickLabelAlignment
in interface IAxis3D
public final void setTickLabelAlignment(TextAlignment3D tickLabelAlignment)
setTickLabelAlignment
in interface IAxis3D
tickLabelAlignment
- The new tick label alignmentpublic final AxisSideClipping getPositiveSideClipping()
getPositiveSideClipping
in interface IAxis3D
public final void setPositiveSideClipping(AxisSideClipping positiveSideClipping)
setPositiveSideClipping
in interface IAxis3D
positiveSideClipping
- The new positive side clipping modepublic final AxisSideClipping getNegativeSideClipping()
getNegativeSideClipping
in interface IAxis3D
public final void setNegativeSideClipping(AxisSideClipping negativeSideClipping)
setNegativeSideClipping
in interface IAxis3D
negativeSideClipping
- The new negative side clipping modepublic final float getPlaneBorderThickness()
getPlaneBorderThickness
in interface IAxis3D
public final void setPlaneBorderThickness(float planeBorderThickness)
setPlaneBorderThickness
in interface IAxis3D
planeBorderThickness
- The new thickness of plane borderpublic final int getPlaneBorderColor()
getPlaneBorderColor
in interface IAxis3D
public void setPlaneBorderColor(int planeBorderColor)
setPlaneBorderColor
in interface IAxis3D
planeBorderColor
- The new plane border colorpublic final float getAxisTitleOffset()
getAxisTitleOffset
in interface IAxis3D
public final void setAxisTitleOffset(float axisTitleOffset)
setAxisTitleOffset
in interface IAxis3D
axisTitleOffset
- The new offset valuepublic final float getTickLabelOffset()
getTickLabelOffset
in interface IAxis3D
public final void setTickLabelOffset(float tickLabelOffset)
setTickLabelOffset
in interface IAxis3D
tickLabelOffset
- The new offset valuepublic final int getTextColor()
getTextColor
in interface IAxis3D
public final void setTextColor(int textColor)
setTextColor
in interface IAxis3D
textColor
- The new text colorpublic final float getTextSize()
getTextSize
in interface IAxis3D
public final void setTextSize(float textSize)
setTextSize
in interface IAxis3D
textSize
- The new text sizepublic final java.lang.String getTextFont()
getTextFont
in interface IAxis3D
public void setTextFont(java.lang.String textFont)
setTextFont
in interface IAxis3D
textFont
- The new text fontpublic void attachTo(com.scichart.core.IServiceContainer services)
public void detach()
protected final void setRangeCalculationHelper(IRangeCalculationHelper3D<T> rangeCalculationHelper)
IRangeCalculationHelper3D
instance which will be used for range calculations in this axisrangeCalculationHelper
- New IRangeCalculationHelper3D
instancepublic void onDataRangeChanged()
public void invalidateElement(boolean isAxisDirty)
public final ISciChartSurface3D getParentSurface()
getParentSurface
in interface ISciChartSurface3DProvider
public final com.scichart.data.model.IRange<T> getMaximumRange(boolean forceCacheUpdate)
public final com.scichart.data.model.IRange<T> getDataRange(boolean forceCacheUpdate)
public final com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator getCurrentCoordinateCalculator()
getCurrentCoordinateCalculator
in interface com.scichart.charting.visuals.axes.IAxisCore
public final com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator createCoordinateCalculatorFrom(com.scichart.data.model.IRange visibleRange)
createCoordinateCalculatorFrom
in interface com.scichart.charting.visuals.axes.IAxisCore
protected com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator createCoordinateCalculator(com.scichart.charting.visuals.axes.AxisParams axisParams, double visibleRangeMin, double visibleRangeMax)
ICoordinateCalculator
based on axis params values and double representation of visible rangeaxisParams
- Axis params to create calculator fromvisibleRangeMin
- The double representation of min value for visible range to create calculator fromvisibleRangeMax
- The double representation of max value for visible range to create calculator fromICoordinateCalculator
instanceprotected void recreateCalculator()
protected void updateAxisParams(com.scichart.charting.visuals.axes.AxisParams axisParams)
axisParams
- Axis params to updateprotected int calculateAxisViewportDimension()
public final int getAxisViewportDimension()
getAxisViewportDimension
in interface com.scichart.charting.visuals.axes.IAxisCore
public void updateCore()
ILabelProvider
, ITickProvider
, ITickCoordinatesProvider
and other providers which are used by axis )updateCore
in interface IAxis3D
protected void updateProviders()
ITickProvider
, ILabelProvider
, ITickCoordinatesProvider
public void update(RenderPassState3D renderPassState)
IUpdatable3D
before renderingupdate
in interface IUpdatable3D
renderPassState
- The RenderPassState3D
used in current render passpublic void onWorldDimensionsChanged(Vector3 worldDimensions)
onWorldDimensionsChanged
in interface WorldDimensionsChangeObserver
worldDimensions
- The target world dimensions that has changedpublic void applyThemeProvider(com.scichart.charting.themes.IThemeProvider themeProvider)