Class MaskedViewSkin

java.lang.Object
javafx.scene.control.SkinBase<MaskedView>
com.dlsc.gemsfx.skins.GemsSkinBase<MaskedView>
com.dlsc.gemsfx.skins.MaskedViewSkin
All Implemented Interfaces:
javafx.scene.control.Skin<MaskedView>

public class MaskedViewSkin extends GemsSkinBase<MaskedView>
Skin for MaskedView.

The skin places the view content in a stack pane clipped by left, center, and right rectangles; the edge clips switch between solid and gradient fills to fade overflowing translated content.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a skin for the given masked view.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected void
    layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
     

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxWidth, computeMinWidth, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MaskedViewSkin

      public MaskedViewSkin(MaskedView view)
      Creates a skin for the given masked view.
      Parameters:
      view - the masked view rendered by this skin
  • Method Details

    • computePrefHeight

      protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<MaskedView>
    • computeMinHeight

      protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinHeight in class javafx.scene.control.SkinBase<MaskedView>
    • computeMaxHeight

      protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxHeight in class javafx.scene.control.SkinBase<MaskedView>
    • layoutChildren

      protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
      Overrides:
      layoutChildren in class javafx.scene.control.SkinBase<MaskedView>