public class ScrollPaneSkin extends BehaviorSkinBase<ScrollPane,ScrollPaneBehavior> implements TraverseListener
Modifier and Type | Field and Description |
---|---|
protected ScrollBar |
hsb |
protected ScrollBar |
vsb |
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
ScrollPaneSkin(ScrollPane scrollpane)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the minimum allowable height of the Skin, based on the provided
width.
|
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the minimum allowable width of the Skin, based on the provided
height.
|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred height of this
SkinBase . |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
*
Layout *
*
|
protected void |
handleControlPropertyChanged(String p)
Skin subclasses will override this method to handle changes in corresponding
control's properties.
|
void |
hsbDecrement() |
void |
hsbIncrement() |
void |
hsbPageDecrement() |
void |
hsbPageIncrement() |
protected void |
layoutChildren(double x,
double y,
double w,
double h)
Called during the layout pass of the scenegraph.
|
void |
onTraverse(Node n,
Bounds b) |
protected Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
Object... parameters) |
protected void |
startContentsToViewport() |
protected void |
startSBReleasedAnimation() |
void |
vsbDecrement() |
void |
vsbIncrement() |
void |
vsbPageDecrement() |
void |
vsbPageIncrement() |
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeBaselineOffset, computeMaxHeight, computeMaxWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
public ScrollPaneSkin(ScrollPane scrollpane)
protected void handleControlPropertyChanged(String p)
BehaviorSkinBase
handleControlPropertyChanged
in class BehaviorSkinBase<ScrollPane,ScrollPaneBehavior>
public void onTraverse(Node n, Bounds b)
onTraverse
in interface TraverseListener
public void hsbIncrement()
public void hsbDecrement()
public void hsbPageIncrement()
public void hsbPageDecrement()
public void vsbIncrement()
public void vsbDecrement()
public void vsbPageIncrement()
public void vsbPageDecrement()
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class SkinBase<ScrollPane>
height
- the height that should be used if preferred width depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
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.computePrefHeight
in class SkinBase<ScrollPane>
width
- the width that should be used if preferred height depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
computeMinWidth
in class SkinBase<ScrollPane>
height
- The height of the Skin, in case this value might dictate
the minimum width.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
computeMinHeight
in class SkinBase<ScrollPane>
width
- The width of the Skin, in case this value might dictate
the minimum height.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected void layoutChildren(double x, double y, double w, double h)
SkinBase
layoutChildren
in class SkinBase<ScrollPane>
protected void startSBReleasedAnimation()
protected void startContentsToViewport()
protected Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
queryAccessibleAttribute
in class SkinBase<ScrollPane>
Node.queryAccessibleAttribute(javafx.scene.AccessibleAttribute, java.lang.Object...)
Copyright © 2020. All rights reserved.