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 TypeMethodDescriptiondoublebreadth(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.OrientationdoublegetX(double x, double y) doublegetY(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) doublelayoutX(javafx.scene.Node node) doublelayoutY(javafx.scene.Node node) javafx.beans.property.DoublePropertylayoutYProperty(javafx.scene.Node node) doublelength(javafx.geometry.Bounds bounds) doubleminBreadth(javafx.scene.Node node) doubleminX(javafx.geometry.Bounds bounds) doubleminY(javafx.geometry.Bounds bounds) doubleprefBreadth(javafx.scene.Node node) doubleprefLength(javafx.scene.Node node, double breadth) voidrelocate(javafx.scene.Node node, double b0, double l0) voidresize(javafx.scene.Node node, double breadth, double length) voidresizeRelocate(javafx.scene.Node node, double b0, double l0, double breadth, double length) voidscrollHorizontallyBy(VirtualFlow<?, ?> content, double dx) voidscrollHorizontallyToPixel(VirtualFlow<?, ?> content, double pixel) voidscrollVerticallyBy(VirtualFlow<?, ?> content, double dy) voidscrollVerticallyToPixel(VirtualFlow<?, ?> content, double pixel) org.reactfx.value.Val<Double> widthEstimateProperty(VirtualFlow<?, ?> content) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
getContentBiasin interfaceOrientationHelper
-
getX
public double getX(double x, double y) - Specified by:
getXin interfaceOrientationHelper
-
getY
public double getY(double x, double y) - Specified by:
getYin interfaceOrientationHelper
-
minBreadth
public double minBreadth(javafx.scene.Node node) - Specified by:
minBreadthin interfaceOrientationHelper
-
prefBreadth
public double prefBreadth(javafx.scene.Node node) - Specified by:
prefBreadthin interfaceOrientationHelper
-
prefLength
public double prefLength(javafx.scene.Node node, double breadth) - Specified by:
prefLengthin interfaceOrientationHelper
-
breadth
public double breadth(javafx.geometry.Bounds bounds) - Specified by:
breadthin interfaceOrientationHelper
-
length
public double length(javafx.geometry.Bounds bounds) - Specified by:
lengthin interfaceOrientationHelper
-
minX
public double minX(javafx.geometry.Bounds bounds) - Specified by:
minXin interfaceOrientationHelper
-
minY
public double minY(javafx.geometry.Bounds bounds) - Specified by:
minYin interfaceOrientationHelper
-
layoutX
public double layoutX(javafx.scene.Node node) - Specified by:
layoutXin interfaceOrientationHelper
-
layoutY
public double layoutY(javafx.scene.Node node) - Specified by:
layoutYin interfaceOrientationHelper
-
layoutYProperty
public javafx.beans.property.DoubleProperty layoutYProperty(javafx.scene.Node node) - Specified by:
layoutYPropertyin interfaceOrientationHelper
-
resizeRelocate
public void resizeRelocate(javafx.scene.Node node, double b0, double l0, double breadth, double length) - Specified by:
resizeRelocatein interfaceOrientationHelper
-
resize
public void resize(javafx.scene.Node node, double breadth, double length) - Specified by:
resizein interfaceOrientationHelper
-
relocate
public void relocate(javafx.scene.Node node, double b0, double l0) - Specified by:
relocatein interfaceOrientationHelper
-
widthEstimateProperty
- Specified by:
widthEstimatePropertyin interfaceOrientationHelper
-
heightEstimateProperty
- Specified by:
heightEstimatePropertyin interfaceOrientationHelper
-
estimatedScrollXProperty
- Specified by:
estimatedScrollXPropertyin interfaceOrientationHelper
-
estimatedScrollYProperty
- Specified by:
estimatedScrollYPropertyin interfaceOrientationHelper
-
scrollHorizontallyBy
- Specified by:
scrollHorizontallyByin interfaceOrientationHelper
-
scrollVerticallyBy
- Specified by:
scrollVerticallyByin interfaceOrientationHelper
-
scrollHorizontallyToPixel
- Specified by:
scrollHorizontallyToPixelin interfaceOrientationHelper
-
scrollVerticallyToPixel
- Specified by:
scrollVerticallyToPixelin interfaceOrientationHelper
-
hitBeforeCells
- Specified by:
hitBeforeCellsin interfaceOrientationHelper
-
hitAfterCells
- Specified by:
hitAfterCellsin interfaceOrientationHelper
-
cellHit
public <C extends Cell<?,?>> VirtualFlowHit<C> cellHit(int itemIndex, C cell, double bOff, double lOff) - Specified by:
cellHitin interfaceOrientationHelper
-