Top Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class StripViewSkin<T>

extends SkinBase<StripView<T>>
Class Inheritance
Imports
com.dlsc.gemsfx.MaskedView, .StripView, .StripView.StripCell, javafx.animation.Animation, .FadeTransition, .Interpolator, .KeyFrame, .KeyValue, .Timeline, javafx.application.Platform, javafx.beans.Observable, javafx.beans.binding.Bindings, .BooleanBinding, javafx.beans.property.BooleanProperty, .DoubleProperty, .SimpleBooleanProperty, .SimpleDoubleProperty, javafx.collections.MapChangeListener, .WeakMapChangeListener, javafx.geometry.Bounds, .Pos, javafx.scene.Node, javafx.scene.control.SkinBase, javafx.scene.input.KeyEvent, .MouseButton, .MouseEvent, .ScrollEvent, javafx.scene.layout.HBox, .Region, .StackPane, javafx.scene.shape.Rectangle, javafx.util.Duration, java.util.HashMap, .List, .Map, java.util.stream.Collectors

Field Summary

Modifier and TypeField and Description
private final HBox
private final Region
private final MapChangeListener<? super Object, ? super Object>
private final MaskedView
private final Map<T, Node>
private final Region
private static final String
private final BooleanProperty
private final BooleanProperty
private Timeline
private final DoubleProperty
private final WeakMapChangeListener<? super Object, ? super Object>

Constructor Summary

AccessConstructor and Description
public
StripViewSkin(StripView<T>
The strip for which this Skin should attach to.
strip
)

Constructor for all SkinBase instances.

Method Summary

Modifier and TypeMethod and Description
private void
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.

private FadeTransition
createFadeTransition(Node node, double from, double to)

private void
fadeSupport(Boolean newShow, Region button)

private void
private void
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
scroll(boolean scrollToRight)

private void
scrollTo(T item)

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

Field Detail

contentback to summary
private final HBox content
leftBtnback to summary
private final Region leftBtn
mapChangeListenerback to summary
private final MapChangeListener<? super Object, ? super Object> mapChangeListener
maskedViewback to summary
private final MaskedView maskedView
nodeMapback to summary
private final Map<T, Node> nodeMap
rightBtnback to summary
private final Region rightBtn
SCROLL_TO_KEYback to summary
private static final String SCROLL_TO_KEY
showLeftScrollback to summary
private final BooleanProperty showLeftScroll
showRightScrollback to summary
private final BooleanProperty showRightScroll
timelineback to summary
private Timeline timeline
translateXback to summary
private final DoubleProperty translateX
weakMapChangeListenerback to summary
private final WeakMapChangeListener<? super Object, ? super Object> weakMapChangeListener

Constructor Detail

StripViewSkinback to summary
public StripViewSkin(StripView<T> strip)

Constructor for all SkinBase instances.

Parameters
strip:StripView<T>

The strip for which this Skin should attach to.

Method Detail

buildContentback to summary
private void buildContent()
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
createFadeTransitionback to summary
private FadeTransition createFadeTransition(Node node, double from, double to)
fadeSupportback to summary
private void fadeSupport(Boolean newShow, Region button)
fixTranslateback to summary
private void fixTranslate()
handleKeyPressback to summary
private void handleKeyPress(KeyEvent event)
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
scrollback to summary
private void scroll(boolean scrollToRight)
scrollToback to summary
private void scrollTo(T item)
setupBindingsback to summary
private void setupBindings()
setupEventHandlersback to summary
private void setupEventHandlers()
setupListenersback to summary
private void setupListeners()