Package org.fxmisc.flowless
Class VerticalHelper
- java.lang.Object
-
- org.fxmisc.flowless.VerticalHelper
-
- All Implemented Interfaces:
OrientationHelper
final class VerticalHelper extends java.lang.Object implements OrientationHelper
Implementation ofOrientationHelper
wherebreadth
represents width of the node/viewport andlength
represents the height of the node/viewport. "layoutX" isNode.layoutX
and "layoutY" isNode.layoutY
. "viewport offset" values are based on height. The viewport's "top" and "bottom" edges are either it's top/bottom edges (SeeVirtualFlow.Gravity
).
-
-
Constructor Summary
Constructors Constructor Description VerticalHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
breadth(javafx.geometry.Bounds bounds)
<C extends Cell<?,?>>
VirtualFlowHit<C>cellHit(int itemIndex, C cell, double bOff, double lOff)
org.reactfx.value.Var<java.lang.Double>
estimatedScrollXProperty(VirtualFlow<?,?> content)
org.reactfx.value.Var<java.lang.Double>
estimatedScrollYProperty(VirtualFlow<?,?> content)
javafx.geometry.Orientation
getContentBias()
double
getX(double x, double y)
double
getY(double x, double y)
org.reactfx.value.Val<java.lang.Double>
heightEstimateProperty(VirtualFlow<?,?> content)
<C extends Cell<?,?>>
VirtualFlowHit<C>hitAfterCells(double bOff, double lOff)
<C extends Cell<?,?>>
VirtualFlowHit<C>hitBeforeCells(double bOff, double lOff)
double
layoutX(javafx.scene.Node node)
double
layoutY(javafx.scene.Node node)
javafx.beans.property.DoubleProperty
layoutYProperty(javafx.scene.Node node)
double
length(javafx.geometry.Bounds bounds)
double
minBreadth(javafx.scene.Node node)
double
minX(javafx.geometry.Bounds bounds)
double
minY(javafx.geometry.Bounds bounds)
double
prefBreadth(javafx.scene.Node node)
double
prefLength(javafx.scene.Node node, double breadth)
void
relocate(javafx.scene.Node node, double b0, double l0)
void
resize(javafx.scene.Node node, double breadth, double length)
void
resizeRelocate(javafx.scene.Node node, double b0, double l0, double breadth, double length)
void
scrollHorizontallyBy(VirtualFlow<?,?> content, double dx)
void
scrollHorizontallyToPixel(VirtualFlow<?,?> content, double pixel)
void
scrollVerticallyBy(VirtualFlow<?,?> content, double dy)
void
scrollVerticallyToPixel(VirtualFlow<?,?> content, double pixel)
org.reactfx.value.Val<java.lang.Double>
widthEstimateProperty(VirtualFlow<?,?> content)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fxmisc.flowless.OrientationHelper
breadth, breadth, length, length, maxX, maxX, maxX, maxY, maxY, maxY, minBreadth, minX, minX, minY, minY, minYProperty, minYProperty, prefLength, relocate, resize
-
-
-
-
Method Detail
-
getContentBias
public javafx.geometry.Orientation getContentBias()
- Specified by:
getContentBias
in interfaceOrientationHelper
-
getX
public double getX(double x, double y)
- Specified by:
getX
in interfaceOrientationHelper
-
getY
public double getY(double x, double y)
- Specified by:
getY
in interfaceOrientationHelper
-
minBreadth
public double minBreadth(javafx.scene.Node node)
- Specified by:
minBreadth
in interfaceOrientationHelper
-
prefBreadth
public double prefBreadth(javafx.scene.Node node)
- Specified by:
prefBreadth
in interfaceOrientationHelper
-
prefLength
public double prefLength(javafx.scene.Node node, double breadth)
- Specified by:
prefLength
in interfaceOrientationHelper
-
breadth
public double breadth(javafx.geometry.Bounds bounds)
- Specified by:
breadth
in interfaceOrientationHelper
-
length
public double length(javafx.geometry.Bounds bounds)
- Specified by:
length
in interfaceOrientationHelper
-
minX
public double minX(javafx.geometry.Bounds bounds)
- Specified by:
minX
in interfaceOrientationHelper
-
minY
public double minY(javafx.geometry.Bounds bounds)
- Specified by:
minY
in interfaceOrientationHelper
-
layoutX
public double layoutX(javafx.scene.Node node)
- Specified by:
layoutX
in interfaceOrientationHelper
-
layoutY
public double layoutY(javafx.scene.Node node)
- Specified by:
layoutY
in interfaceOrientationHelper
-
layoutYProperty
public javafx.beans.property.DoubleProperty layoutYProperty(javafx.scene.Node node)
- Specified by:
layoutYProperty
in interfaceOrientationHelper
-
resizeRelocate
public void resizeRelocate(javafx.scene.Node node, double b0, double l0, double breadth, double length)
- Specified by:
resizeRelocate
in interfaceOrientationHelper
-
resize
public void resize(javafx.scene.Node node, double breadth, double length)
- Specified by:
resize
in interfaceOrientationHelper
-
relocate
public void relocate(javafx.scene.Node node, double b0, double l0)
- Specified by:
relocate
in interfaceOrientationHelper
-
widthEstimateProperty
public org.reactfx.value.Val<java.lang.Double> widthEstimateProperty(VirtualFlow<?,?> content)
- Specified by:
widthEstimateProperty
in interfaceOrientationHelper
-
heightEstimateProperty
public org.reactfx.value.Val<java.lang.Double> heightEstimateProperty(VirtualFlow<?,?> content)
- Specified by:
heightEstimateProperty
in interfaceOrientationHelper
-
estimatedScrollXProperty
public org.reactfx.value.Var<java.lang.Double> estimatedScrollXProperty(VirtualFlow<?,?> content)
- Specified by:
estimatedScrollXProperty
in interfaceOrientationHelper
-
estimatedScrollYProperty
public org.reactfx.value.Var<java.lang.Double> estimatedScrollYProperty(VirtualFlow<?,?> content)
- Specified by:
estimatedScrollYProperty
in interfaceOrientationHelper
-
scrollHorizontallyBy
public void scrollHorizontallyBy(VirtualFlow<?,?> content, double dx)
- Specified by:
scrollHorizontallyBy
in interfaceOrientationHelper
-
scrollVerticallyBy
public void scrollVerticallyBy(VirtualFlow<?,?> content, double dy)
- Specified by:
scrollVerticallyBy
in interfaceOrientationHelper
-
scrollHorizontallyToPixel
public void scrollHorizontallyToPixel(VirtualFlow<?,?> content, double pixel)
- Specified by:
scrollHorizontallyToPixel
in interfaceOrientationHelper
-
scrollVerticallyToPixel
public void scrollVerticallyToPixel(VirtualFlow<?,?> content, double pixel)
- Specified by:
scrollVerticallyToPixel
in interfaceOrientationHelper
-
hitBeforeCells
public <C extends Cell<?,?>> VirtualFlowHit<C> hitBeforeCells(double bOff, double lOff)
- Specified by:
hitBeforeCells
in interfaceOrientationHelper
-
hitAfterCells
public <C extends Cell<?,?>> VirtualFlowHit<C> hitAfterCells(double bOff, double lOff)
- Specified by:
hitAfterCells
in interfaceOrientationHelper
-
cellHit
public <C extends Cell<?,?>> VirtualFlowHit<C> cellHit(int itemIndex, C cell, double bOff, double lOff)
- Specified by:
cellHit
in interfaceOrientationHelper
-
-