Package org.fxmisc.flowless
Class HorizontalHelper
java.lang.Object
org.fxmisc.flowless.HorizontalHelper
- All Implemented Interfaces:
OrientationHelper
Implementation of
OrientationHelper
where length
represents width of the node/viewport and
breadth
represents the height of the node/viewport. "layoutY" is Node.layoutX
and
"layoutX" is Node.layoutY
. "viewport offset" values are based on width. The viewport's "top"
and "bottom" edges are either it's left/right edges (See VirtualFlow.Gravity
).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
breadth
(javafx.geometry.Bounds bounds) <C extends Cell<?,
?>>
VirtualFlowHit<C> cellHit
(int itemIndex, C cell, double bOff, double lOff) org.reactfx.value.Var
<Double> estimatedScrollXProperty
(VirtualFlow<?, ?> content) org.reactfx.value.Var
<Double> estimatedScrollYProperty
(VirtualFlow<?, ?> content) javafx.geometry.Orientation
double
getX
(double x, double y) double
getY
(double x, double y) org.reactfx.value.Val
<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
<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
-
Constructor Details
-
HorizontalHelper
HorizontalHelper()
-
-
Method Details
-
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
- Specified by:
widthEstimateProperty
in interfaceOrientationHelper
-
heightEstimateProperty
- Specified by:
heightEstimateProperty
in interfaceOrientationHelper
-
estimatedScrollXProperty
- Specified by:
estimatedScrollXProperty
in interfaceOrientationHelper
-
estimatedScrollYProperty
- Specified by:
estimatedScrollYProperty
in interfaceOrientationHelper
-
scrollHorizontallyBy
- Specified by:
scrollHorizontallyBy
in interfaceOrientationHelper
-
scrollVerticallyBy
- Specified by:
scrollVerticallyBy
in interfaceOrientationHelper
-
scrollHorizontallyToPixel
- Specified by:
scrollHorizontallyToPixel
in interfaceOrientationHelper
-
scrollVerticallyToPixel
- Specified by:
scrollVerticallyToPixel
in interfaceOrientationHelper
-
hitBeforeCells
- Specified by:
hitBeforeCells
in interfaceOrientationHelper
-
hitAfterCells
- 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
-