Module MaterialFX

Class MFXRectangleToggleNodeSkin

java.lang.Object
javafx.scene.control.SkinBase<MFXRectangleToggleNode>
io.github.palexdev.materialfx.skins.MFXRectangleToggleNodeSkin
All Implemented Interfaces:
Skin<MFXRectangleToggleNode>

public class MFXRectangleToggleNodeSkin extends SkinBase<MFXRectangleToggleNode>
This is the default skin for every MFXRectangleToggleNode.
  • Constructor Details

  • Method Details

    • setupRippleGenerator

      protected void setupRippleGenerator()
      Sets up the ripple generator.
    • handleGraphics

      protected void handleGraphics()
      Handles the various settable icons of this control.

      Prioritizes the nodes coming from the Labeled.graphicProperty(), meaning that even if there is text, even if the leading or trailing icons are set, they will be hidden whenever the graphic property is not null.

    • computeMinWidth

      protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinWidth in class SkinBase<MFXRectangleToggleNode>
    • computeMaxWidth

      protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxWidth in class SkinBase<MFXRectangleToggleNode>
    • computeMaxHeight

      protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxHeight in class SkinBase<MFXRectangleToggleNode>