Class ToggleSwitchSkin

java.lang.Object
javafx.scene.control.SkinBase<ToggleSwitch>
atlantafx.base.controls.ToggleSwitchSkin
All Implemented Interfaces:
javafx.scene.control.Skin<ToggleSwitch>

public class ToggleSwitchSkin extends javafx.scene.control.SkinBase<ToggleSwitch>
The default skin for the ToggleSwitch control.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final javafx.util.Duration
     
    protected final javafx.scene.control.Label
     
    protected final javafx.scene.layout.StackPane
     
    protected final javafx.scene.layout.StackPane
     
    protected final javafx.scene.layout.StackPane
     
    protected final javafx.animation.TranslateTransition
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
    protected double
    computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
    protected double
    computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
    protected double
    computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
    protected double
    computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
    protected double
    computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
    List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>
    protected void
    layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
    protected void
     

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface javafx.scene.control.Skin

    install
  • Field Details

    • DEFAULT_ANIMATION_TIME

      protected static final javafx.util.Duration DEFAULT_ANIMATION_TIME
    • thumb

      protected final javafx.scene.layout.StackPane thumb
    • thumbArea

      protected final javafx.scene.layout.StackPane thumbArea
    • label

      protected final javafx.scene.control.Label label
    • labelContainer

      protected final javafx.scene.layout.StackPane labelContainer
    • transition

      protected final javafx.animation.TranslateTransition transition
  • Constructor Details

    • ToggleSwitchSkin

      public ToggleSwitchSkin(ToggleSwitch control)
  • Method Details

    • selectedStateChanged

      protected void selectedStateChanged()
    • layoutChildren

      protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
      Overrides:
      layoutChildren in class javafx.scene.control.SkinBase<ToggleSwitch>
    • computeMinWidth

      protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinWidth in class javafx.scene.control.SkinBase<ToggleSwitch>
    • computeMinHeight

      protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinHeight in class javafx.scene.control.SkinBase<ToggleSwitch>
    • computePrefWidth

      protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefWidth in class javafx.scene.control.SkinBase<ToggleSwitch>
    • computePrefHeight

      protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<ToggleSwitch>
    • computeMaxWidth

      protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxWidth in class javafx.scene.control.SkinBase<ToggleSwitch>
    • computeMaxHeight

      protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxHeight in class javafx.scene.control.SkinBase<ToggleSwitch>
    • getCssMetaData

      public List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getCssMetaData()
      Overrides:
      getCssMetaData in class javafx.scene.control.SkinBase<ToggleSwitch>