Class ToggleSwitchSkin

java.lang.Object
javafx.scene.control.SkinBase<ToggleSwitch>
impl.org.controlsfx.skin.ToggleSwitchSkin
All Implemented Interfaces:
javafx.scene.control.Skin<ToggleSwitch>

public class ToggleSwitchSkin extends javafx.scene.control.SkinBase<ToggleSwitch>
Basic Skin implementation for the ToggleSwitch
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for all ToggleSwitchSkin instances.
  • 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)
     
    static List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>
     
    List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>
    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, 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
  • Constructor Details

    • ToggleSwitchSkin

      public ToggleSwitchSkin(ToggleSwitch control)
      Constructor for all ToggleSwitchSkin instances.
      Parameters:
      control - The ToggleSwitch for which this Skin should attach to.
  • Method Details

    • 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>
    • getClassCssMetaData

      public static List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getClassCssMetaData()
      Returns:
      The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
    • getCssMetaData

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