Class CanvasSpinner

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
eu.hansolo.tilesfx.addons.CanvasSpinner
All Implemented Interfaces:
Spinner, javafx.css.Styleable, javafx.event.EventTarget

@DefaultProperty("children") public class CanvasSpinner extends javafx.scene.layout.Region implements Spinner
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    javafx.beans.property.DoubleProperty
     

    Properties inherited from class javafx.scene.layout.Region

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    Properties inherited from class javafx.scene.Parent

    needsLayout

    Properties inherited from class javafx.scene.Node

    accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, 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, viewOrder, visible
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final double
     
    protected static final double
     
    protected static final double
     
    protected static final double
     
    protected static final double
     
    protected static final double
     

    Fields inherited from class javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.beans.property.BooleanProperty
     
    protected double
    computeMaxHeight(double width)
     
    protected double
    computeMaxWidth(double height)
     
    protected double
    computeMinHeight(double width)
     
    protected double
    computeMinWidth(double height)
     
    protected double
    computePrefHeight(double width)
     
    protected double
    computePrefWidth(double height)
     
    void
     
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    javafx.scene.paint.Color
    Gets the value of the property backgroundColor.
    javafx.collections.ObservableList<javafx.scene.Node>
     
    double
     
    double
     
    javafx.scene.paint.Color
    Gets the value of the property foregroundColor.
    double
     
    double
     
     
    double
     
    double
    Gets the value of the property value.
    boolean
    Gets the value of the property backgroundVisible.
    boolean
    Gets the value of the property overlayVisible.
    boolean
     
    void
     
    javafx.beans.property.BooleanProperty
     
    void
     
    void
     
    void
     
    void
    setBackgroundColor(javafx.scene.paint.Color color)
    Sets the value of the property backgroundColor.
    void
    setBackgroundVisible(boolean visible)
    Sets the value of the property backgroundVisible.
    void
    setForegroundColor(javafx.scene.paint.Color color)
    Sets the value of the property foregroundColor.
    void
     
    void
     
    void
     
    void
    setOverlayVisible(boolean visible)
    Sets the value of the property overlayVisible.
    void
    setSnapshotBackground(javafx.scene.paint.Color color)
     
    void
     
    void
    setValue(double value)
    Sets the value of the property value.
    void
    setValue(Character character)
     
    void
     
    void
     
    javafx.beans.property.DoubleProperty
     

    Methods inherited from class javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, 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, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    Methods inherited from class javafx.scene.Parent

    getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBounds

    Methods inherited from class javafx.scene.Node

    accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, 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, getInitialCursor, getInitialFocusTraversable, 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, getViewOrder, hasProperties, hoverProperty, idProperty, 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, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javafx.css.Styleable

    getStyleableNode
  • Property Details

  • Field Details

  • Constructor Details

    • CanvasSpinner

      public CanvasSpinner()
    • CanvasSpinner

      public CanvasSpinner(SpinnerType SpinnerTYPE)
  • Method Details

    • layoutChildren

      public void layoutChildren()
      Overrides:
      layoutChildren in class javafx.scene.Parent
    • computeMinWidth

      protected double computeMinWidth(double height)
      Overrides:
      computeMinWidth in class javafx.scene.layout.Region
    • computeMinHeight

      protected double computeMinHeight(double width)
      Overrides:
      computeMinHeight in class javafx.scene.layout.Region
    • computePrefWidth

      protected double computePrefWidth(double height)
      Overrides:
      computePrefWidth in class javafx.scene.layout.Region
    • computePrefHeight

      protected double computePrefHeight(double width)
      Overrides:
      computePrefHeight in class javafx.scene.layout.Region
    • computeMaxWidth

      protected double computeMaxWidth(double height)
      Overrides:
      computeMaxWidth in class javafx.scene.layout.Region
    • computeMaxHeight

      protected double computeMaxHeight(double width)
      Overrides:
      computeMaxHeight in class javafx.scene.layout.Region
    • getChildren

      public javafx.collections.ObservableList<javafx.scene.Node> getChildren()
      Overrides:
      getChildren in class javafx.scene.Parent
    • getOldValue

      public double getOldValue()
      Specified by:
      getOldValue in interface Spinner
    • getValue

      public double getValue()
      Gets the value of the property value.
      Specified by:
      getValue in interface Spinner
      Property description:
    • setValue

      public void setValue(double value)
      Sets the value of the property value.
      Specified by:
      setValue in interface Spinner
      Property description:
    • setValue

      public void setValue(Character character)
    • valueProperty

      public javafx.beans.property.DoubleProperty valueProperty()
      Specified by:
      valueProperty in interface Spinner
      See Also:
    • isBackgroundVisible

      public boolean isBackgroundVisible()
      Gets the value of the property backgroundVisible.
      Specified by:
      isBackgroundVisible in interface Spinner
      Property description:
    • setBackgroundVisible

      public void setBackgroundVisible(boolean visible)
      Sets the value of the property backgroundVisible.
      Specified by:
      setBackgroundVisible in interface Spinner
      Property description:
    • backgroundVisibleProperty

      public javafx.beans.property.BooleanProperty backgroundVisibleProperty()
      Specified by:
      backgroundVisibleProperty in interface Spinner
      See Also:
    • isOverlayVisible

      public boolean isOverlayVisible()
      Gets the value of the property overlayVisible.
      Specified by:
      isOverlayVisible in interface Spinner
      Property description:
    • setOverlayVisible

      public void setOverlayVisible(boolean visible)
      Sets the value of the property overlayVisible.
      Specified by:
      setOverlayVisible in interface Spinner
      Property description:
    • overlayVisibleProperty

      public javafx.beans.property.BooleanProperty overlayVisibleProperty()
      Specified by:
      overlayVisibleProperty in interface Spinner
      See Also:
    • spinUp

      public void spinUp()
      Specified by:
      spinUp in interface Spinner
    • spinDown

      public void spinDown()
      Specified by:
      spinDown in interface Spinner
    • getBackgroundColor

      public javafx.scene.paint.Color getBackgroundColor()
      Gets the value of the property backgroundColor.
      Specified by:
      getBackgroundColor in interface Spinner
      Property description:
    • setBackgroundColor

      public void setBackgroundColor(javafx.scene.paint.Color color)
      Sets the value of the property backgroundColor.
      Specified by:
      setBackgroundColor in interface Spinner
      Property description:
    • backgroundColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> backgroundColorProperty()
      Specified by:
      backgroundColorProperty in interface Spinner
      See Also:
    • getForegroundColor

      public javafx.scene.paint.Color getForegroundColor()
      Gets the value of the property foregroundColor.
      Specified by:
      getForegroundColor in interface Spinner
      Property description:
    • setForegroundColor

      public void setForegroundColor(javafx.scene.paint.Color color)
      Sets the value of the property foregroundColor.
      Specified by:
      setForegroundColor in interface Spinner
      Property description:
    • foregroundColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> foregroundColorProperty()
      Specified by:
      foregroundColorProperty in interface Spinner
      See Also:
    • getSpinnerType

      public SpinnerType getSpinnerType()
      Specified by:
      getSpinnerType in interface Spinner
    • setSpinnerType

      public void setSpinnerType(SpinnerType spinnerType)
      Specified by:
      setSpinnerType in interface Spinner
    • isShowing

      public boolean isShowing()
      Specified by:
      isShowing in interface Spinner
    • setSnapshotBackground

      public void setSnapshotBackground(javafx.scene.paint.Color color)
      Specified by:
      setSnapshotBackground in interface Spinner
    • reInit

      public void reInit()
      Specified by:
      reInit in interface Spinner
    • getSpinnerWidth

      public double getSpinnerWidth()
      Specified by:
      getSpinnerWidth in interface Spinner
    • getSpinnerHeight

      public double getSpinnerHeight()
      Specified by:
      getSpinnerHeight in interface Spinner
    • getDigitHeight

      public double getDigitHeight()
      Specified by:
      getDigitHeight in interface Spinner
    • getExtendedHeight

      public double getExtendedHeight()
      Specified by:
      getExtendedHeight in interface Spinner
    • setOnValueChanged

      public void setOnValueChanged(SpinnerObserver observer)
      Specified by:
      setOnValueChanged in interface Spinner
    • setOnZeroPassed

      public void setOnZeroPassed(SpinnerObserver observer)
      Specified by:
      setOnZeroPassed in interface Spinner
    • setOnSpinnerEvent

      public void setOnSpinnerEvent(SpinnerObserver observer)
      Specified by:
      setOnSpinnerEvent in interface Spinner
    • removeSpinnerObserver

      public void removeSpinnerObserver(SpinnerObserver observer)
      Specified by:
      removeSpinnerObserver in interface Spinner
    • removeAllObservers

      public void removeAllObservers()
      Specified by:
      removeAllObservers in interface Spinner
    • fireSpinnerEvent

      public void fireSpinnerEvent(SpinnerEvent evt)
      Specified by:
      fireSpinnerEvent in interface Spinner