Top Fields Constructors Methods
impl.org.controlsfx.skin

public Class RatingSkin

extends SkinBase<Rating>
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, javafx.event.EventHandler, javafx.geometry.Orientation, .Point2D, javafx.scene.Node, javafx.scene.control.SkinBase, javafx.scene.input.MouseEvent, javafx.scene.layout.HBox, .Pane, .Region, .VBox, javafx.scene.shape.Rectangle, org.controlsfx.control.Rating, org.controlsfx.tools.Utils

Field Summary

Modifier and TypeField and Description
private Pane
private Pane
private Rectangle
private final EventHandler<MouseEvent>
private final EventHandler<MouseEvent>
private boolean
private double
private static final String
STRONG

Private fields

private boolean

Constructor Summary

AccessConstructor and Description
public
RatingSkin(Rating control)

Constructors

Method Summary

Modifier and TypeMethod and Description
private double
calculateRating(Point2D sceneLocation)

protected double
computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMaxWidth.

Computes the maximum allowable width of the Skin, based on the provided height.

private Node
protected Node
createButtonNode()

Creates the node for one star.

private boolean
private void
recreateButtons()

Implementation

private void
private void
private void
private void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutChildrenlayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

backgroundContainerback to summary
private Pane backgroundContainer
foregroundContainerback to summary
private Pane foregroundContainer
forgroundClipRectback to summary
private Rectangle forgroundClipRect
mouseClickHandlerback to summary
private final EventHandler<MouseEvent> mouseClickHandler
mouseMoveHandlerback to summary
private final EventHandler<MouseEvent> mouseMoveHandler
partialRatingback to summary
private boolean partialRating
ratingback to summary
private double rating
STRONGback to summary
private static final String STRONG

Private fields

updateOnHoverback to summary
private boolean updateOnHover

Constructor Detail

RatingSkinback to summary
public RatingSkin(Rating control)

Constructors

Method Detail

calculateRatingback to summary
private double calculateRating(Point2D sceneLocation)
computeMaxWidthback to summary
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMaxWidth.

Doc from javafx.scene.control.SkinBase.computeMaxWidth.

Computes the maximum allowable width of the Skin, based on the provided height.

Annotations
@Override
createButtonback to summary
private Node createButton()
createButtonNodeback to summary
protected 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.

isVerticalback to summary
private boolean isVertical()
recreateButtonsback to summary
private void recreateButtons()

Implementation

updateButtonStylesback to summary
private void updateButtonStyles()
updateClipback to summary
private void updateClip()
updateRatingback to summary
private void updateRating()
updateRatingFromMouseEventback to summary
private void updateRatingFromMouseEvent(MouseEvent event)