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.Durationprotected final javafx.scene.control.Labelprotected final javafx.scene.layout.StackPaneprotected final javafx.scene.layout.StackPaneprotected final javafx.scene.layout.StackPaneprotected final javafx.animation.TranslateTransition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> protected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) protected voidMethods 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, unregisterListChangeListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
layoutChildrenin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidthin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeightin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeightin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classjavafx.scene.control.SkinBase<ToggleSwitch>
-
getCssMetaData
- Overrides:
getCssMetaDatain classjavafx.scene.control.SkinBase<ToggleSwitch>
-