Top Description Fields Constructors Methods
org.fxmisc.flowless

public Class ScaledVirtualized<V extends Node & Virtualized>

extends Region
implements Virtualized
Class Inheritance
All Implemented Interfaces
org.fxmisc.flowless.Virtualized
Type Parameters
<V>
the Virtualized content to be scaled when inside a VirtualizedScrollPane
Imports
javafx.scene.Node, javafx.scene.layout.Region, javafx.scene.transform.Scale, org.reactfx.value.Val, .Var

Acts as an intermediate class between VirtualizedScrollPane and its Virtualized content in that it scales the content without also scaling the ScrollPane's scroll bars.
    Virtualized actualContent = // creation code
    ScaledVirtualized<Virtualized> wrapper = new ScaledVirtualized(actualContent);
    VirtualizedScrollPane<ScaledVirtualized> vsPane = new VirtualizedScrollPane(wrapper);

    // To scale actualContent without also scaling vsPane's scrollbars:
    wrapper.getZoom().setY(3);
    wrapper.getZoom().setX(2);
    

Field Summary

Modifier and TypeField and Description
private final V
private Val<Double>
private Var<Double>
private Var<Double>
private Val<Double>
private Scale
Inherited from javafx.scene.layout.Region:
USE_COMPUTED_SIZEUSE_PREF_SIZE

Constructor Summary

AccessConstructor and Description
public
ScaledVirtualized(V content)

Method Summary

Modifier and TypeMethod and Description
public Var<Double>
public Var<Double>
public Scale
getZoom()

The Scale object that scales the virtualized content: named "zoom" to prevent confusion with Node#getScaleX(), etc. Not to be confused with Node#getOnZoom() or similar methods/objects.

protected void
layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

public void
scrollXBy(double deltaX)

Implements org.fxmisc.flowless.Virtualized.scrollXBy.

Scroll the content horizontally by the given amount.

public void
scrollXToPixel(double pixel)

Implements org.fxmisc.flowless.Virtualized.scrollXToPixel.

Scroll the content horizontally to the pixel

public void
scrollYBy(double deltaY)

Implements org.fxmisc.flowless.Virtualized.scrollYBy.

Scroll the content vertically by the given amount.

public void
scrollYToPixel(double pixel)

Implements org.fxmisc.flowless.Virtualized.scrollYToPixel.

Scroll the content vertically to the pixel

public Val<Double>
public Val<Double>
Inherited from javafx.scene.layout.Region:
backgroundPropertyborderPropertycacheShapePropertycenterShapePropertycomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetBackgroundgetBordergetClassCssMetaDatagetCssMetaDatagetHeightgetInsetsgetMaxHeightgetMaxWidthgetMinHeightgetMinWidthgetOpaqueInsetsgetPaddinggetPrefHeightgetPrefWidthgetShapegetUserAgentStylesheetgetWidthheightPropertyinsetsPropertyisCacheShapeisCenterShapeisResizableisScaleShapeisSnapToPixellayoutInArealayoutInArealayoutInArealayoutInAreamaxHeightmaxHeightPropertymaxWidthmaxWidthPropertyminHeightminHeightPropertyminWidthminWidthPropertyopaqueInsetsPropertypaddingPropertypositionInAreapositionInAreaprefHeightprefHeightPropertyprefWidthprefWidthPropertyresizescaleShapePropertysetBackgroundsetBordersetCacheShapesetCenterShapesetHeightsetMaxHeightsetMaxSizesetMaxWidthsetMinHeightsetMinSizesetMinWidthsetOpaqueInsetssetPaddingsetPrefHeightsetPrefSizesetPrefWidthsetScaleShapesetShapesetSnapToPixelsetWidthshapePropertysnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYsnapToPixelPropertywidthProperty

Field Detail

contentback to summary
private final V content
estHeightback to summary
private Val<Double> estHeight
estScrollXback to summary
private Var<Double> estScrollX
estScrollYback to summary
private Var<Double> estScrollY
estWidthback to summary
private Val<Double> estWidth
zoomback to summary
private Scale zoom

Constructor Detail

ScaledVirtualizedback to summary
public ScaledVirtualized(V content)

Method Detail

estimatedScrollXPropertyback to summary
public Var<Double> estimatedScrollXProperty()

Implements org.fxmisc.flowless.Virtualized.estimatedScrollXProperty.

Annotations
@Override
estimatedScrollYPropertyback to summary
public Var<Double> estimatedScrollYProperty()

Implements org.fxmisc.flowless.Virtualized.estimatedScrollYProperty.

Annotations
@Override
getZoomback to summary
public Scale getZoom()

The Scale object that scales the virtualized content: named "zoom" to prevent confusion with Node#getScaleX(), etc. Not to be confused with Node#getOnZoom() or similar methods/objects.

layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
scrollXByback to summary
public void scrollXBy(double deltaX)

Implements org.fxmisc.flowless.Virtualized.scrollXBy.

Doc from org.fxmisc.flowless.Virtualized.scrollXBy.

Scroll the content horizontally by the given amount.

Annotations
@Override
scrollXToPixelback to summary
public void scrollXToPixel(double pixel)

Implements org.fxmisc.flowless.Virtualized.scrollXToPixel.

Doc from org.fxmisc.flowless.Virtualized.scrollXToPixel.

Scroll the content horizontally to the pixel

Annotations
@Override
scrollYByback to summary
public void scrollYBy(double deltaY)

Implements org.fxmisc.flowless.Virtualized.scrollYBy.

Doc from org.fxmisc.flowless.Virtualized.scrollYBy.

Scroll the content vertically by the given amount.

Annotations
@Override
scrollYToPixelback to summary
public void scrollYToPixel(double pixel)

Implements org.fxmisc.flowless.Virtualized.scrollYToPixel.

Doc from org.fxmisc.flowless.Virtualized.scrollYToPixel.

Scroll the content vertically to the pixel

Annotations
@Override
totalHeightEstimatePropertyback to summary
public Val<Double> totalHeightEstimateProperty()

Implements org.fxmisc.flowless.Virtualized.totalHeightEstimateProperty.

Annotations
@Override
totalWidthEstimatePropertyback to summary
public Val<Double> totalWidthEstimateProperty()

Implements org.fxmisc.flowless.Virtualized.totalWidthEstimateProperty.

Annotations
@Override