java.lang.Object
javafx.scene.control.SkinBase<ToggleSwitch>
atlantafx.base.controls.ToggleSwitchSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<ToggleSwitch>
The default skin for the
ToggleSwitch
control.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
-
Method Details
-
selectedStateChanged
protected void selectedStateChanged() -
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildren
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidth
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeight
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidth
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeight
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidth
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeight
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-
getCssMetaData
- Overrides:
getCssMetaData
in classjavafx.scene.control.SkinBase<ToggleSwitch>
-