Top Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class MaskedViewSkin

extends SkinBase<MaskedView>
Class Inheritance
Imports
com.dlsc.gemsfx.MaskedView, javafx.beans.InvalidationListener, .WeakInvalidationListener, javafx.scene.Group, .Node, javafx.scene.control.SkinBase, javafx.scene.layout.StackPane, javafx.scene.paint.Color, .CycleMethod, .LinearGradient, .Stop, javafx.scene.shape.Rectangle

Field Summary

Modifier and TypeField and Description
private final Rectangle
private final Rectangle
private final Rectangle
private final StackPane
private final InvalidationListener
private final WeakInvalidationListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
buildView(Node oldContent, Node newContent)

protected double
computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMaxHeight.

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

protected double
computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinHeight.

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

protected double
computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase.

protected void
layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

private void
resizeRelocate(Rectangle rect, double x, double y, double w, double h)

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

Field Detail

centerClipback to summary
private final Rectangle centerClip
leftClipback to summary
private final Rectangle leftClip
rightClipback to summary
private final Rectangle rightClip
stackPaneback to summary
private final StackPane stackPane
translateXListenerback to summary
private final InvalidationListener translateXListener
weakTranslateXListenerback to summary
private final WeakInvalidationListener weakTranslateXListener

Constructor Detail

MaskedViewSkinback to summary
public MaskedViewSkin(MaskedView view)

Method Detail

buildViewback to summary
private void buildView(Node oldContent, Node newContent)
computeMaxHeightback to summary
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMaxHeight.

Doc from javafx.scene.control.SkinBase.computeMaxHeight.

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

Annotations
@Override
computeMinHeightback to summary
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinHeight.

Doc from javafx.scene.control.SkinBase.computeMinHeight.

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

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Doc from javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.

Annotations
@Override
layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Annotations
@Override
resizeRelocateback to summary
private void resizeRelocate(Rectangle rect, double x, double y, double w, double h)
updateClipback to summary
private void updateClip()