java.lang.Object
javafx.scene.control.SkinBase<MFXRectangleToggleNode>
io.github.palexdev.materialfx.skins.MFXRectangleToggleNodeSkin
- All Implemented Interfaces:
Skin<MFXRectangleToggleNode>
This is the default skin for every
MFXRectangleToggleNode.-
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 doublecomputeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected voidHandles the various settable icons of this control.protected voidSets up the ripple generator.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, 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
-
Constructor Details
-
MFXRectangleToggleNodeSkin
-
-
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:
computeMinWidthin classSkinBase<MFXRectangleToggleNode>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classSkinBase<MFXRectangleToggleNode>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classSkinBase<MFXRectangleToggleNode>
-