Class RatingSkin

  • All Implemented Interfaces:
    javafx.scene.control.Skin<Rating>

    public class RatingSkin
    extends javafx.scene.control.SkinBase<Rating>
    • Constructor Summary

      Constructors 
      Constructor Description
      RatingSkin​(Rating control)
      Constructors
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected double computeMaxWidth​(double height, double topInset, double rightInset, double bottomInset, double leftInset)  
      protected javafx.scene.Node createButtonNode()
      Creates the node for one star.
      • Methods inherited from class javafx.scene.control.SkinBase

        computeBaselineOffset, computeMaxHeight, computeMinHeight, computeMinWidth, 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 Detail

      • RatingSkin

        public RatingSkin​(Rating control)
        Constructors
    • Method Detail

      • createButtonNode

        protected javafx.scene.Node createButtonNode()
        Creates the node for one star. By default, an empty region is returned. This method can be overwritten to customize the styling of the star, e.g. to use a font-based icon.
      • computeMaxWidth

        protected double computeMaxWidth​(double height,
                                         double topInset,
                                         double rightInset,
                                         double bottomInset,
                                         double leftInset)
        Overrides:
        computeMaxWidth in class javafx.scene.control.SkinBase<Rating>