Package org.fxmisc.flowless
Class HorizontalHelper
- java.lang.Object
-
- org.fxmisc.flowless.HorizontalHelper
-
- All Implemented Interfaces:
OrientationHelper
final class HorizontalHelper extends java.lang.Object implements OrientationHelper
Implementation ofOrientationHelperwherelengthrepresents width of the node/viewport andbreadthrepresents the height of the node/viewport. "layoutY" isNode.layoutXand "layoutX" isNode.layoutY. "viewport offset" values are based on width. The viewport's "top" and "bottom" edges are either it's left/right edges (SeeVirtualFlow.Gravity).
-
-
Constructor Summary
Constructors Constructor Description HorizontalHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublebreadth(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.OrientationgetContentBias()doublegetX(double x, double y)doublegetY(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)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<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:
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
public org.reactfx.value.Val<java.lang.Double> widthEstimateProperty(VirtualFlow<?,?> content)
- Specified by:
widthEstimatePropertyin interfaceOrientationHelper
-
heightEstimateProperty
public org.reactfx.value.Val<java.lang.Double> heightEstimateProperty(VirtualFlow<?,?> content)
- Specified by:
heightEstimatePropertyin interfaceOrientationHelper
-
estimatedScrollXProperty
public org.reactfx.value.Var<java.lang.Double> estimatedScrollXProperty(VirtualFlow<?,?> content)
- Specified by:
estimatedScrollXPropertyin interfaceOrientationHelper
-
estimatedScrollYProperty
public org.reactfx.value.Var<java.lang.Double> estimatedScrollYProperty(VirtualFlow<?,?> content)
- Specified by:
estimatedScrollYPropertyin interfaceOrientationHelper
-
scrollHorizontallyBy
public void scrollHorizontallyBy(VirtualFlow<?,?> content, double dx)
- Specified by:
scrollHorizontallyByin interfaceOrientationHelper
-
scrollVerticallyBy
public void scrollVerticallyBy(VirtualFlow<?,?> content, double dy)
- Specified by:
scrollVerticallyByin interfaceOrientationHelper
-
scrollHorizontallyToPixel
public void scrollHorizontallyToPixel(VirtualFlow<?,?> content, double pixel)
- Specified by:
scrollHorizontallyToPixelin interfaceOrientationHelper
-
scrollVerticallyToPixel
public void scrollVerticallyToPixel(VirtualFlow<?,?> content, double pixel)
- Specified by:
scrollVerticallyToPixelin interfaceOrientationHelper
-
hitBeforeCells
public <C extends Cell<?,?>> VirtualFlowHit<C> hitBeforeCells(double bOff, double lOff)
- Specified by:
hitBeforeCellsin interfaceOrientationHelper
-
hitAfterCells
public <C extends Cell<?,?>> VirtualFlowHit<C> hitAfterCells(double bOff, double lOff)
- Specified by:
hitAfterCellsin interfaceOrientationHelper
-
cellHit
public <C extends Cell<?,?>> VirtualFlowHit<C> cellHit(int itemIndex, C cell, double bOff, double lOff)
- Specified by:
cellHitin interfaceOrientationHelper
-
-