Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class NumberAxis extends ValueAxis<java.lang.Number>
Type | Property and Description |
---|---|
BooleanProperty |
forceZeroInRange
When true zero is always included in the visible range.
|
DoubleProperty |
tickUnit
The value between each major tick mark in data units.
|
lowerBound, minorTickCount, minorTickLength, minorTickVisible, scale, tickLabelFormatter, upperBound
animated, autoRanging, label, side, tickLabelFill, tickLabelFont, tickLabelGap, tickLabelRotation, tickLabelsVisible, tickLength, tickMarkVisible
height, maxHeight, maxWidth, minHeight, minWidth, padding, prefHeight, prefWidth, snapToPixel, width
needsLayout
blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, visible
Modifier and Type | Class and Description |
---|---|
static class |
NumberAxis.DefaultFormatter
Default number formatter for NumberAxis, this stays in sync with auto-ranging and formats values appropriately.
|
Axis.TickMark<T>
currentLowerBound
USE_COMPUTED_SIZE, USE_PREF_SIZE
Constructor and Description |
---|
NumberAxis()
Create a auto-ranging NumberAxis
|
NumberAxis(double lowerBound,
double upperBound,
double tickUnit)
Create a non-auto-ranging NumberAxis with the given upper bound, lower bound and tick unit
|
NumberAxis(java.lang.String axisLabel,
double lowerBound,
double upperBound,
double tickUnit)
Create a non-auto-ranging NumberAxis with the given upper bound, lower bound and tick unit
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
autoRange(double minValue,
double maxValue,
double length,
double labelSize)
Called to set the upper and lower bound and anything else that needs to be auto-ranged
|
protected java.util.List<java.lang.Number> |
calculateMinorTickMarks()
Calculate a list of the data values for every minor tick mark
|
protected java.util.List<java.lang.Number> |
calculateTickValues(double length,
java.lang.Object range)
Calculate a list of all the data values for each tick mark in range
|
BooleanProperty |
forceZeroInRangeProperty()
When true zero is always included in the visible range.
|
protected java.lang.Object |
getRange()
Called to get the current axis range.
|
protected java.lang.String |
getTickMarkLabel(java.lang.Number value)
Get the string label name for a tick mark with the given value
|
double |
getTickUnit()
Gets the value of the property tickUnit.
|
boolean |
isForceZeroInRange()
Gets the value of the property forceZeroInRange.
|
protected Dimension2D |
measureTickMarkSize(java.lang.Number value,
java.lang.Object range)
Measure the size of the label for given tick mark value.
|
void |
setForceZeroInRange(boolean value)
Sets the value of the property forceZeroInRange.
|
protected void |
setRange(java.lang.Object range,
boolean animate)
Called to set the current axis range to the given range.
|
void |
setTickUnit(double value)
Sets the value of the property tickUnit.
|
DoubleProperty |
tickUnitProperty()
The value between each major tick mark in data units.
|
autoRange, calculateNewScale, getDisplayPosition, getLowerBound, getMinorTickCount, getMinorTickLength, getScale, getTickLabelFormatter, getUpperBound, getValueForDisplay, getZeroPosition, invalidateRange, isMinorTickVisible, isValueOnAxis, layoutChildren, lowerBoundProperty, minorTickCountProperty, minorTickLengthProperty, minorTickVisibleProperty, scaleProperty, setLowerBound, setMinorTickCount, setMinorTickLength, setMinorTickVisible, setScale, setTickLabelFormatter, setUpperBound, tickLabelFormatterProperty, tickMarksUpdated, toNumericValue, toRealValue, upperBoundProperty
animatedProperty, autoRangingProperty, computePrefHeight, computePrefWidth, getAnimated, getLabel, getSide, getTickLabelFill, getTickLabelFont, getTickLabelGap, getTickLabelRotation, getTickLength, getTickMarks, invalidateRange, isAutoRanging, isRangeValid, isTickLabelsVisible, isTickMarkVisible, labelProperty, measureTickMarkLabelSize, measureTickMarkSize, requestAxisLayout, requestLayout, setAnimated, setAutoRanging, setLabel, setSide, setTickLabelFill, setTickLabelFont, setTickLabelGap, setTickLabelRotation, setTickLabelsVisible, setTickLength, setTickMarkVisible, shouldAnimate, sideProperty, tickLabelFillProperty, tickLabelFontProperty, tickLabelGapProperty, tickLabelRotationProperty, tickLabelsVisibleProperty, tickLengthProperty, tickMarkVisibleProperty
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPadding, getPrefHeight, getPrefWidth, getWidth, heightProperty, isResizable, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setSnapToPixel, setWidth, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthProperty
getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, setNeedsLayout
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, 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, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getUserData, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToSceneTransformProperty, lookupAll, managedProperty, mouseTransparentProperty, 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, pickOnBoundsProperty, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, 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, visibleProperty
public final BooleanProperty forceZeroInRangeProperty
public final DoubleProperty tickUnitProperty
getTickUnit()
,
setTickUnit(double)
public NumberAxis()
public NumberAxis(double lowerBound, double upperBound, double tickUnit)
lowerBound
- The lower bound for this axis, ie min plottable valueupperBound
- The upper bound for this axis, ie max plottable valuetickUnit
- The tick unit, ie space between tickmarkspublic NumberAxis(java.lang.String axisLabel, double lowerBound, double upperBound, double tickUnit)
axisLabel
- The name to display for this axislowerBound
- The lower bound for this axis, ie min plottable valueupperBound
- The upper bound for this axis, ie max plottable valuetickUnit
- The tick unit, ie space between tickmarkspublic final boolean isForceZeroInRange()
public final void setForceZeroInRange(boolean value)
public final BooleanProperty forceZeroInRangeProperty()
public final double getTickUnit()
public final void setTickUnit(double value)
public final DoubleProperty tickUnitProperty()
getTickUnit()
,
setTickUnit(double)
protected java.lang.String getTickMarkLabel(java.lang.Number value)
getTickMarkLabel
in class Axis<java.lang.Number>
value
- The value to format into a tick label stringprotected java.lang.Object getRange()
protected void setRange(java.lang.Object range, boolean animate)
protected java.util.List<java.lang.Number> calculateTickValues(double length, java.lang.Object range)
calculateTickValues
in class Axis<java.lang.Number>
length
- The length of the axis in display unitsrange
- A range object returned from autoRange()protected java.util.List<java.lang.Number> calculateMinorTickMarks()
calculateMinorTickMarks
in class ValueAxis<java.lang.Number>
protected Dimension2D measureTickMarkSize(java.lang.Number value, java.lang.Object range)
measureTickMarkSize
in class Axis<java.lang.Number>
value
- tick mark valuerange
- range to use during calculationsprotected java.lang.Object autoRange(double minValue, double maxValue, double length, double labelSize)
autoRange
in class ValueAxis<java.lang.Number>
minValue
- The min data value that needs to be plotted on this axismaxValue
- The max data value that needs to be plotted on this axislength
- The length of the axis in display coordinateslabelSize
- The approximate average size a label takes along the axisCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to