skin.
A user interface control is abstracted behind the Skinnable interface.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private ObservableList | children
A local field that directly refers to the children list inside the Control. |
| private C | control
The |
| private LambdaMultiplePropertyChangeListenerHandler | lambdaChangeListenerHandler
This is part of the workaround introduced during delomboking. |
| private ListenerHelper | |
| private static final EventHandler | mouseEventConsumer
Mouse handler used for consuming all mouse events (preventing them from bubbling up to parent) |
| Access | Constructor and Description |
|---|---|
| protected | SkinBase(final C
The control for which this Skin should attach to. control)Constructor for all SkinBase instances. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | Returns: baseline offsetthe pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Calculates the baseline offset based on the first managed child. |
| protected double | Returns: A double representing the maximum height of this Skin.The width of the Skin, in case this value might dictate
the maximum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | Returns: A double representing the maximum width of this Skin.The height of the Skin, in case this value might dictate
the maximum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | Returns: A double representing the minimum height of this Skin.The width of the Skin, in case this value might dictate
the minimum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | Returns: A double representing the minimum width of this Skin.The height of the Skin, in case this value might dictate
the minimum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | Returns: the calculated preferred heightthe width that should be used if preferred height depends on it width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Calculates the preferred height of this |
| protected double | Returns: the calculated preferred widththe height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Calculates the preferred width of this |
| protected final void | consumeMouseEvents(boolean
the consume mouse events flag value)Determines whether all mouse events should be automatically consumed. |
| public void | dispose()
Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| protected void | executeAccessibleAction(AccessibleAction
the action to execute action, Object... optional list of parameters parameters)This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| public final ObservableList | |
| public static List | Returns: the CssMetaData associated with this class, which may include the CssMetaData of its superclassesReturns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| public List | Returns: The CssMetaData associated with this node, which may include the CssMetaData of its superclasses.This method should delegate to |
| public final Node | |
| public final C | getSkinnable()
Implements javafx. Gets the Skinnable to which this Skin is assigned. |
| protected void | layoutChildren(final double
the x position contentX, final double the y position contentY, final double the width contentWidth, final double the height contentHeight)Called during the layout pass of the scenegraph. |
| protected void | layoutInArea(Node
the child being positioned within this skin child, double the horizontal offset of the layout area relative to this skin areaX, double the vertical offset of the layout area relative to this skin areaY, double the width of the layout area areaWidth, double the height of the layout area areaHeight, double the baseline offset to be used if VPos is BASELINE areaBaselineOffset, HPos the horizontal alignment for the child within the area halignment, VPos the vertical alignment for the child within the area valignment)Utility method which lays out the child within an area of this
skin defined by |
| protected void | layoutInArea(Node
the child being positioned within this skin child, double the horizontal offset of the layout area relative to this skin areaX, double the vertical offset of the layout area relative to this skin areaY, double the width of the layout area areaWidth, double the height of the layout area areaHeight, double the baseline offset to be used if VPos is BASELINE areaBaselineOffset, Insets the margin of space to be allocated around the child margin, HPos the horizontal alignment for the child within the area halignment, VPos the vertical alignment for the child within the area valignment)Utility method which lays out the child within an area of this
skin defined by |
| protected void | layoutInArea(Node
the child being positioned within this skin child, double the horizontal offset of the layout area relative to this skin areaX, double the vertical offset of the layout area relative to this skin areaY, double the width of the layout area areaWidth, double the height of the layout area areaHeight, double the baseline offset to be used if VPos is BASELINE areaBaselineOffset, Insets the margin of space to be allocated around the child margin, boolean whether or not the child should be resized to fill the area width or kept to its preferred width fillWidth, boolean whether or not the child should e resized to fill the area height or kept to its preferred height fillHeight, HPos the horizontal alignment for the child within the area halignment, VPos the vertical alignment for the child within the area valignment)Utility method which lays out the child within an area of this
skin defined by |
| pack-priv ListenerHelper | |
| protected void | positionInArea(Node
the child being positioned within this skin child, double the horizontal offset of the layout area relative to this skin areaX, double the vertical offset of the layout area relative to this skin areaY, double the width of the layout area areaWidth, double the height of the layout area areaHeight, double the baseline offset to be used if VPos is BASELINE areaBaselineOffset, HPos the horizontal alignment for the child within the area halignment, VPos the vertical alignment for the child within the area valignment)Utility method which positions the child within an area of this
skin defined by |
| protected void | positionInArea(Node
the child being positioned within this skin child, double the horizontal offset of the layout area relative to this skin areaX, double the vertical offset of the layout area relative to this skin areaY, double the width of the layout area areaWidth, double the height of the layout area areaHeight, double the baseline offset to be used if VPos is BASELINE areaBaselineOffset, Insets the margin of space to be allocated around the child margin, HPos the horizontal alignment for the child within the area halignment, VPos the vertical alignment for the child within the area valignment)Utility method which positions the child within an area of this
skin defined by |
| public final void | pseudoClassStateChanged(PseudoClass
the pseudo-class that has changed state pseudoClass, boolean whether or not the state is active active)Used to specify that a pseudo-class of this Node has changed. |
| protected Object | Returns: the value for the requested attributethe requested attribute attribute, Object... optional list of parameters parameters)This method is called by the assistive technology to request the value for an attribute. |
| protected final void | registerChangeListener(ObservableValue<?>
the observable to observe for change events, may be observable, Consumer<ObservableValue<?>> nullthe operation to perform when the observable sends a change event,
may be operation)nullRegisters an operation to perform when the given |
| protected final void | registerInvalidationListener(Observable
the observable to observe for invalidation events, may be observable, Consumer<Observable> nullthe operation to perform when the observable sends an invalidation event,
may be operation)nullRegisters an operation to perform when the given |
| protected final void | registerListChangeListener(ObservableList<?>
the observableList to observe for list change events, may be observableList, Consumer<ListChangeListener.nullthe operation to perform when the observableList sends a list change event,
may be operationnullRegisters an operation to perform when the given |
| protected double | Returns: Rounded up insets bottomUtility method to get the bottom inset which includes padding and border inset. |
| protected double | Returns: Rounded up insets leftUtility method to get the left inset which includes padding and border inset. |
| protected double | Returns: Rounded up insets rightUtility method to get the right inset which includes padding and border inset. |
| protected double | Returns: Rounded up insets topUtility method to get the top inset which includes padding and border inset. |
| protected double | Returns: value rounded to nearest pixelthe position value to be snapped value)
Deprecated
since 9. replaced by
snapPositionX() and snapPositionY()
If |
| protected double | Returns: value rounded to nearest pixelthe position value to be snapped value)Convenience method for accessing the
|
| protected double | Returns: value rounded to nearest pixelthe position value to be snapped value)Convenience method for accessing the
|
| protected double | Returns: value ceiled to nearest pixelthe size value to be snapped value)
Deprecated
since 9. replaced by
snapSizeX() and snapSizeY()
If |
| protected double | Returns: value ceiled to nearest pixelthe size value to be snapped value)Convenience method for accessing the
|
| protected double | Returns: value ceiled to nearest pixelthe size value to be snapped value)Convenience method for accessing the
|
| protected double | Returns: value rounded to nearest pixelthe space value to be snapped value)
Deprecated
since 9. replaced by
snapSpaceX() and snapSpaceY()
If |
| protected double | Returns: value rounded to nearest pixelthe space value to be snapped value)Convenience method for accessing the
|
| protected double | Returns: value rounded to nearest pixelthe space value to be snapped value)Convenience method for accessing the
|
| protected final Consumer | Returns: a composed consumer representing all previously registered operations, ornull if none have been registered or the observable is nullthe observable for which the registered operations should be removed,
may be observable)nullUnregisters all operations that have been registered using
|
| protected final Consumer | Returns: a composed consumer representing all previously registered operations, ornull if none have been registered or the observable is nullthe observable for which the registered operations should be removed,
may be observable)nullUnregisters all operations that have been registered using
|
| protected final Consumer | Returns: a composed consumer representing all previously registered operations, ornull if none have been registered or the observableList is nullthe observableList for which the registered operations should be removed,
may be observableList)nullUnregisters all operations that have been registered using
|