ToggleSwitch
| Modifier and Type | Field and Description |
|---|---|
| private final Label | |
| private final StackPane | |
| private static final List | |
| private final StackPane | |
| private static final CssMetaData | |
| private final StackPane | |
| private DoubleProperty | thumbMoveAnimationTime
How many milliseconds it should take for the thumb to go from one edge to the other |
| private final TranslateTransition |
| Access | Constructor and Description |
|---|---|
| public | ToggleSwitchSkin(ToggleSwitch
The ToggleSwitch for which this Skin should attach to. control)Constructor for all ToggleSwitchSkin instances. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| public static List | Returns: The CssMetaData associated with this class, which may include the CssMetaData of its super classes.Hides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| public List | getCssMetaData()
Overrides javafx. This method should delegate to |
| private double | |
| protected void | layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
Overrides javafx. Called during the layout pass of the scenegraph. |
| private void | |
| private DoubleProperty | |
| private void |
| label | back to summary |
|---|---|
| private final Label label | |
| labelContainer | back to summary |
|---|---|
| private final StackPane labelContainer | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| thumb | back to summary |
|---|---|
| private final StackPane thumb | |
| THUMB_MOVE_ANIMATION_TIME | back to summary |
|---|---|
| private static final CssMetaData<ToggleSwitch, Number> THUMB_MOVE_ANIMATION_TIME | |
| thumbArea | back to summary |
|---|---|
| private final StackPane thumbArea | |
| thumbMoveAnimationTime | back to summary |
|---|---|
| private DoubleProperty thumbMoveAnimationTime How many milliseconds it should take for the thumb to go from one edge to the other | |
| transition | back to summary |
|---|---|
| private final TranslateTransition transition | |
| ToggleSwitchSkin | back to summary |
|---|---|
| public ToggleSwitchSkin(ToggleSwitch control) Constructor for all ToggleSwitchSkin instances.
| |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable width of the Skin, based on the provided height.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. This method should delegate to
| |
| getThumbMoveAnimationTime | back to summary |
|---|---|
| private double getThumbMoveAnimationTime() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| selectedStateChanged | back to summary |
|---|---|
| private void selectedStateChanged() | |
| thumbMoveAnimationTimeProperty | back to summary |
|---|---|
| private DoubleProperty thumbMoveAnimationTimeProperty() | |
| toggle | back to summary |
|---|---|
| private void toggle(ToggleSwitch toggleSwitch) | |