public abstract class AbstractAxis extends AbstractAxisParameter implements Axis
| Type | Property and Description |
|---|---|
ObjectProperty<AxisLabelFormatter> |
axisLabelFormatter |
animatedProperty, animationDurationProperty, autoGrowRangingProperty, autoRangePaddingProperty, autoRangeRoundingProperty, autoRangingProperty, autoUnitScalingProperty, axisLabelGapProperty, axisLabelTextAlignmentProperty, axisPaddingProperty, centerAxisPositionProperty, invertAxisProperty, maxProperty, minorTickCountProperty, minorTickLengthProperty, minorTickVisibleProperty, minProperty, nameProperty, overlapPolicyProperty, scaleProperty, sideProperty, tickLabelFillProperty, tickLabelFontProperty, tickLabelFormatterProperty, tickLabelGapProperty, tickLabelRotationProperty, tickLabelsVisibleProperty, tickLengthProperty, tickMarkVisibleProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visiblePropertyautoGrowRangingProperty, autoRangingProperty, autoUnitScalingProperty, invertAxisProperty, maxProperty, minProperty, nameProperty, sideProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingProperty| Modifier and Type | Field and Description |
|---|---|
protected Timeline |
animator |
protected static int |
BURST_LIMIT_CSS_MS |
protected double |
cachedOffset |
protected DoubleProperty |
currentLowerBound
The current value for the lowerBound of this axis, ie min value.
|
protected boolean |
labelOverlap |
protected ReentrantLock |
lock |
protected double |
maxLabelHeight |
protected double |
maxLabelWidth |
protected static int |
RANGE_ANIMATION_DURATION_MS |
protected WeakHashMap<Double,TickMark> |
tickMarkDoubleCache |
protected WeakHashMap<Number,Dimension2D> |
tickMarkSizeCache |
protected WeakHashMap<String,TickMark> |
tickMarkStringCache |
autoRange, axisLabel, DEFAULT_MINOR_TICK_COUNT, isInvertedAxis, isTimeAxis, majorTickMarks, majorTickStyle, maxProp, measureInvalid, minorTickMarks, minorTickStyle, minProp, oldAxisLength, rangeValid, scaleBinding, tickLabelRotation, tickLabelsVisibleInvalid, tickUnit, userRangeUSE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| Constructor and Description |
|---|
AbstractAxis() |
AbstractAxis(double lowerBound,
double upperBound) |
| Modifier and Type | Method and Description |
|---|---|
protected AxisRange |
autoRange(double length)
This calculates the upper and lower bound based on the data provided to invalidateRange() method.
|
protected AxisRange |
autoRange(double minValue,
double maxValue,
double length,
double labelSize)
We suppress requestLayout() calls here by doing nothing as we don't want changes to our children to cause layout.
|
ObjectProperty<AxisLabelFormatter> |
axisLabelFormatterProperty() |
protected abstract List<Double> |
calculateMajorTickValues(double length,
AxisRange range)
Calculate a list of all the data values for each tick mark in range
|
protected abstract List<Double> |
calculateMinorTickValues()
Calculate a list of the data values for every minor tick mark
|
protected double |
calculateNewScale(double length,
double lowerBound,
double upperBound)
Calculate a new scale for this axis.
|
protected void |
clearAxisCanvas(GraphicsContext gc,
double width,
double height) |
abstract double |
computePreferredTickUnit(double axisLength)
Computes the preferred tick unit based on the upper/lower bounds and the length of the axis in screen
coordinates.
|
protected double |
computePrefHeight(double width)
Computes the preferred height of this axis for the given width.
|
protected double |
computePrefWidth(double height)
Computes the preferred width of this axis for the given height.
|
protected abstract AxisRange |
computeRange(double minValue,
double maxValue,
double axisLength,
double labelSize)
Computes range of this axis, similarly to
autoRange(double, double, double, double). |
protected List<TickMark> |
computeTickMarks(AxisRange range,
boolean majorTickMark) |
void |
drawAxis(GraphicsContext gc,
double axisWidth,
double axisHeight)
Function allows custom drawing of axes outside the Axis environment (ie.
|
protected void |
drawAxisLabel(GraphicsContext gc,
double x,
double y,
Text label) |
protected void |
drawAxisLabel(GraphicsContext gc,
double axisWidth,
double axisHeight,
Text axisName,
ObservableList<TickMark> tickMarks,
double tickLength) |
protected void |
drawAxisLine(GraphicsContext gc,
double axisLength,
double axisWidth,
double axisHeight) |
protected void |
drawAxisPost()
function to be executed after the axis has been drawn can be used to execute user-specific code (e.g.
|
protected void |
drawAxisPre()
function to be executed prior to drawing axis can be used to execute user-specific code (e.g.
|
protected void |
drawTickLabels(GraphicsContext gc,
double axisWidth,
double axisHeight,
ObservableList<TickMark> tickMarks,
double tickLength) |
protected static void |
drawTickMarkLabel(GraphicsContext gc,
double x,
double y,
double rotation,
TickMark tickMark) |
protected void |
drawTickMarks(GraphicsContext gc,
double axisLength,
double axisWidth,
double axisHeight,
ObservableList<TickMark> tickMarks,
double tickLength,
Path tickStyle) |
void |
fireInvalidated()
Notifies listeners that the data has been invalidated.
|
void |
forceRedraw()
forces redrawing of axis (via layoutChildren()).
|
AxisLabelFormatter |
getAxisLabelFormatter()
Gets the value of the property axisLabelFormatter.
|
protected AxisRange |
getAxisRange() |
Canvas |
getCanvas() |
double |
getDisplayPosition(double value)
Get the display position along this axis for a given value.
|
GraphicsContext |
getGraphicsContext() |
protected static double |
getMaxTickLabelHeight(List<TickMark> tickMarks) |
protected static double |
getMaxTickLabelWidth(List<TickMark> tickMarks) |
TickMark |
getNewTickMark(Double tickValue,
Double tickPosition,
String tickMarkLabel) |
String |
getTickMarkLabel(double value)
Get the string label name for a tick mark with the given value
|
double |
getZeroPosition()
Get the display position of the zero line along this axis.
|
protected void |
invalidateRange()
Mark the current range invalid, this will cause anything that depends on the range to be recalculated on the next
layout.
|
void |
invalidateRange(List<Number> data)
Called when data has changed and the range may not be valid any more.
|
boolean |
isLabelOverlapping() |
protected boolean |
isRangeValid()
See if the current range is valid, if it is not then any range dependent calculations need to redone on the next
layout pass
|
boolean |
isValueOnAxis(double value)
Checks if the given value is plottable on this axis
|
protected void |
layoutChildren()
Invoked during the layout pass to layout this axis and all its content.
|
protected double |
measureTickMarkLength(double major) |
void |
recomputeTickMarks() |
protected void |
recomputeTickMarks(AxisRange range) |
void |
requestAxisLayout()
Request that the axis is laid out in the next layout pass.
|
void |
setAxisLabelFormatter(AxisLabelFormatter value)
Sets the value of the property axisLabelFormatter.
|
boolean |
setMax(double value) |
boolean |
setMin(double value) |
protected void |
setRange(AxisRange rangeObj,
boolean animate) |
protected boolean |
shouldAnimate()
This is used to check if any given animation should run.
|
protected static double |
snap(double coordinate) |
protected void |
tickMarksUpdated()
Called during layout if the tickmarks have been updated, allowing subclasses to do anything they need to in
reaction.
|
protected void |
updateCachedVariables()
to be overwritten by derived class that want to cache variables for efficiency reasons
|
protected void |
updateCSS() |
add, add, animatedProperty, animationDurationProperty, autoGrowRangingProperty, autoNotification, autoRangePaddingProperty, autoRangeRoundingProperty, autoRangingProperty, autoUnitScalingProperty, axisLabelGapProperty, axisLabelTextAlignmentProperty, axisPaddingProperty, centerAxisPositionProperty, clear, contains, decadeRange, getaAxisLabelTextAlignment, getAnimationDuration, getAutoRange, getAutoRangePadding, getAxisLabel, getAxisLabelGap, getAxisPadding, getCenterAxisPosition, getClassCssMetaData, getCssMetaData, getLength, getMajorTickStyle, getMax, getMin, getMinorTickCount, getMinorTickLength, getMinorTickMarks, getMinorTickStyle, getName, getOverlapPolicy, getRange, getScale, getSide, getTickLabelFill, getTickLabelFont, getTickLabelFormatter, getTickLabelGap, getTickLabelRotation, getTickLength, getTickMarks, getTickUnit, getUnit, getUnitScaling, getUserRange, invertAxis, invertAxisProperty, invokeListener, isAnimated, isAutoGrowRanging, isAutoRangeRounding, isAutoRanging, isAutoUnitScaling, isDefined, isInvertedAxis, isMinorTickVisible, isTickLabelsVisible, isTickMarkVisible, isTimeAxis, maxProperty, minorTickCountProperty, minorTickLengthProperty, minorTickVisibleProperty, minProperty, nameProperty, overlapPolicyProperty, scaleProperty, set, set, set, setAnimated, setAnimationDuration, setAutoGrowRanging, setAutoRangePadding, setAutoRangeRounding, setAutoRanging, setAutoUnitScaling, setAxisCentrePosition, setAxisLabelAlignment, setAxisLabelGap, setAxisPadding, setMinorTickCount, setMinorTickLength, setMinorTickVisible, setName, setOverlapPolicy, setScale, setSide, setTickLabelFill, setTickLabelFont, setTickLabelFormatter, setTickLabelGap, setTickLabelRotation, setTickLabelsVisible, setTickLength, setTickMarkVisible, setTickUnit, setTimeAxis, setUnit, setUnitScaling, setUnitScaling, sideProperty, tickLabelFillProperty, tickLabelFontProperty, tickLabelFormatterProperty, tickLabelGapProperty, tickLabelRotationProperty, tickLabelsVisibleProperty, tickLengthProperty, tickMarkVisibleProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingProperty, updateAxisLabelAndUnit, updateEventListener, updateScaleAndUnitPrefixgetChildrenbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthPropertygetBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitautoGrowRangingProperty, autoRangingProperty, autoUnitScalingProperty, getAutoRange, getAxisTransform, getHeight, getLength, getLogAxisType, getMinorTickCount, getMinorTickMarks, getRange, getSide, getTickLabelFill, getTickLabelFont, getTickLabelFormatter, getTickLabelGap, getTickMarks, getTickUnit, getUnitScaling, getUserRange, getValueForDisplay, getWidth, invertAxis, invertAxisProperty, invokeListener, isAutoGrowRanging, isAutoRanging, isAutoUnitScaling, isInvertedAxis, isLogAxis, isTimeAxis, maxProperty, minProperty, nameProperty, setAnimated, setAutoGrowRanging, setAutoRanging, setAutoUnitScaling, setName, setSide, setTickUnit, setTimeAxis, setUnit, setUnitScaling, setUnitScaling, sideProperty, tickUnitProperty, timeAxisProperty, unitProperty, unitScalingPropertyadd, add, add, clear, contains, getMax, getMin, getName, getUnit, isDefined, set, set, set, setaddListener, autoNotification, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerpublic ObjectProperty<AxisLabelFormatter> axisLabelFormatterProperty
protected static final int RANGE_ANIMATION_DURATION_MS
protected static final int BURST_LIMIT_CSS_MS
protected WeakHashMap<Number,Dimension2D> tickMarkSizeCache
protected final Timeline animator
protected boolean labelOverlap
protected double cachedOffset
protected final transient ReentrantLock lock
protected double maxLabelHeight
protected double maxLabelWidth
protected final DoubleProperty currentLowerBound
protected WeakHashMap<String,TickMark> tickMarkStringCache
protected WeakHashMap<Double,TickMark> tickMarkDoubleCache
public AbstractAxis()
public AbstractAxis(double lowerBound,
double upperBound)
protected AxisRange autoRange(double length)
length - The length of the axis in screen coordinatesprotected AxisRange autoRange(double minValue, double maxValue, double length, double labelSize)
public ObjectProperty<AxisLabelFormatter> axisLabelFormatterProperty()
protected abstract List<Double> calculateMajorTickValues(double length, AxisRange range)
length - The length of the axis in display unitsrange - A range object returned from autoRange()protected abstract List<Double> calculateMinorTickValues()
protected double calculateNewScale(double length,
double lowerBound,
double upperBound)
length - The display length of the axislowerBound - The lower bound valueupperBound - The upper bound valueprotected void clearAxisCanvas(GraphicsContext gc, double width, double height)
public abstract double computePreferredTickUnit(double axisLength)
axisLength - the length in screen coordinatesprotected double computePrefHeight(double width)
computePrefHeight in class Regionprotected double computePrefWidth(double height)
computePrefWidth in class Regionprotected abstract AxisRange computeRange(double minValue, double maxValue, double axisLength, double labelSize)
autoRange(double, double, double, double). The major
difference is that this method is called when auto-range is off.minValue - The min data value that needs to be plotted on this axismaxValue - The max data value that needs to be plotted on this axisaxisLength - The length of the axis in display coordinateslabelSize - The approximate average size a label takes along the axisautoRange(double, double, double, double)public void drawAxis(GraphicsContext gc, double axisWidth, double axisHeight)
Axisprotected void drawAxisLabel(GraphicsContext gc, double x, double y, Text label)
protected void drawAxisLabel(GraphicsContext gc, double axisWidth, double axisHeight, Text axisName, ObservableList<TickMark> tickMarks, double tickLength)
protected void drawAxisLine(GraphicsContext gc, double axisLength, double axisWidth, double axisHeight)
protected void drawAxisPost()
protected void drawAxisPre()
protected void drawTickLabels(GraphicsContext gc, double axisWidth, double axisHeight, ObservableList<TickMark> tickMarks, double tickLength)
protected void drawTickMarks(GraphicsContext gc, double axisLength, double axisWidth, double axisHeight, ObservableList<TickMark> tickMarks, double tickLength, Path tickStyle)
public void fireInvalidated()
fireInvalidated in class AbstractAxisParameterpublic void forceRedraw()
AxisforceRedraw in interface Axispublic AxisLabelFormatter getAxisLabelFormatter()
protected AxisRange getAxisRange()
public Canvas getCanvas()
public double getDisplayPosition(double value)
getDisplayPosition in interface Axisvalue - The data value to work out display position forpublic GraphicsContext getGraphicsContext()
public TickMark getNewTickMark(Double tickValue, Double tickPosition, String tickMarkLabel)
public String getTickMarkLabel(double value)
getTickMarkLabel in interface Axisvalue - The value to format into a tick label stringpublic double getZeroPosition()
getZeroPosition in interface Axisprotected void invalidateRange()
invalidateRange in class AbstractAxisParameterpublic void invalidateRange(List<Number> data)
invalidateRange in interface Axisdata - The current set of all data that needs to be plotted on this axispublic boolean isLabelOverlapping()
protected boolean isRangeValid()
public boolean isValueOnAxis(double value)
isValueOnAxis in interface Axisvalue - The value to check if its on axisprotected void layoutChildren()
layoutChildren in class Parentprotected double measureTickMarkLength(double major)
public void recomputeTickMarks()
protected void recomputeTickMarks(AxisRange range)
public void requestAxisLayout()
requestAxisLayout in interface Axispublic void setAxisLabelFormatter(AxisLabelFormatter value)
public boolean setMax(double value)
setMax in interface AxisDescriptionsetMax in class AbstractAxisParameterpublic boolean setMin(double value)
setMin in interface AxisDescriptionsetMin in class AbstractAxisParameterprotected void setRange(AxisRange rangeObj, boolean animate)
protected boolean shouldAnimate()
protected void tickMarksUpdated()
protected void updateCachedVariables()
protected void updateCSS()
protected static void drawTickMarkLabel(GraphicsContext gc, double x, double y, double rotation, TickMark tickMark)
protected static double snap(double coordinate)
coordinate - double coordinate to snapped to actual pixel indexCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.