- java.lang.Object
-
- javafx.scene.control.SkinBase<ToggleSwitch>
-
- impl.org.controlsfx.skin.ToggleSwitchSkin
-
- All Implemented Interfaces:
Skin<ToggleSwitch>
public class ToggleSwitchSkin extends SkinBase<ToggleSwitch>
Basic Skin implementation for theToggleSwitch
-
-
Constructor Summary
Constructors Constructor Description ToggleSwitchSkin(ToggleSwitch control)
Constructor for all ToggleSwitchSkin instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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)
static List<CssMetaData<? extends Styleable,?>>
getClassCssMetaData()
List<CssMetaData<? extends Styleable,?>>
getCssMetaData()
protected void
layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
-
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
-
-
-
Constructor Detail
-
ToggleSwitchSkin
public ToggleSwitchSkin(ToggleSwitch control)
Constructor for all ToggleSwitchSkin instances.- Parameters:
control
- The ToggleSwitch for which this Skin should attach to.
-
-
Method Detail
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
- Overrides:
layoutChildren
in classSkinBase<ToggleSwitch>
-
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computeMinWidth
in classSkinBase<ToggleSwitch>
-
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computeMinHeight
in classSkinBase<ToggleSwitch>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computePrefWidth
in classSkinBase<ToggleSwitch>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computePrefHeight
in classSkinBase<ToggleSwitch>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computeMaxWidth
in classSkinBase<ToggleSwitch>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computeMaxHeight
in classSkinBase<ToggleSwitch>
-
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
- Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
-
getCssMetaData
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
- Overrides:
getCssMetaData
in classSkinBase<ToggleSwitch>
-
-