Class BeforeAfterViewSkin

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

public class BeforeAfterViewSkin extends GemsSkinBase<BeforeAfterView>
Skin for the BeforeAfterView control.

The skin layers the before and after nodes, clips them at the divider position, and displays a draggable divider with a handle.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a skin for the given before-after view.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefWidth(double height, 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, computeMaxHeight, computeMinHeight, computePrefHeight, 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

    • BeforeAfterViewSkin

      public BeforeAfterViewSkin(BeforeAfterView view)
      Creates a skin for the given before-after view.
      Parameters:
      view - the before-after view rendered by this skin
  • Method Details

    • layoutChildren

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

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

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

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