Top Description Inners Fields Constructors Methods
impl.com.calendarfx.view

public Class AutoScrollPane

extends ScrollPane
Class Inheritance
Imports
com.calendarfx.view.DayEntryView, javafx.application.Platform, javafx.event.EventTarget, javafx.scene.Node, javafx.scene.control.ScrollBar, .ScrollPane, javafx.scene.input.ClipboardContent, .DragEvent, .Dragboard, .MouseEvent, .TransferMode

A specialized scrollpane used for automatic scrolling when the user performs a drag operation close to the edges of the pane.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv final double
private AutoScrollPane.ScrollThread

Constructor Summary

AccessConstructor and Description
public
AutoScrollPane()

Constructs a new scrollpane.

public
AutoScrollPane(Node
the content node
content
)

Constructs a new scrollpane for the given content node.

Method Summary

Modifier and TypeMethod and Description
private void
autoscroll(double yOffset)

private void
private void
private boolean
private boolean
private boolean
private void
private void
Inherited from javafx.scene.control.ScrollPane:
contentPropertycreateDefaultSkinfitToHeightPropertyfitToWidthPropertygetClassCssMetaDatagetContentgetControlCssMetaDatagetHbarPolicygetHmaxgetHmingetHvaluegetInitialFocusTraversablegetMinViewportHeightgetMinViewportWidthgetPrefViewportHeightgetPrefViewportWidthgetVbarPolicygetViewportBoundsgetVmaxgetVmingetVvaluehbarPolicyPropertyhmaxPropertyhminPropertyhvaluePropertyisFitToHeightisFitToWidthisPannableminViewportHeightPropertyminViewportWidthPropertypannablePropertyprefViewportHeightPropertyprefViewportWidthPropertyqueryAccessibleAttributesetContentsetFitToHeightsetFitToWidthsetHbarPolicysetHmaxsetHminsetHvaluesetMinViewportHeightsetMinViewportWidthsetPannablesetPrefViewportHeightsetPrefViewportWidthsetVbarPolicysetViewportBoundssetVmaxsetVminsetVvaluevbarPolicyPropertyviewportBoundsPropertyvmaxPropertyvminPropertyvvalueProperty

Field Detail

proximityback to summary
pack-priv final double proximity
scrollThreadback to summary
private AutoScrollPane.ScrollThread scrollThread

Constructor Detail

AutoScrollPaneback to summary
public AutoScrollPane()

Constructs a new scrollpane.

AutoScrollPaneback to summary
public AutoScrollPane(Node content)

Constructs a new scrollpane for the given content node.

Parameters
content:Node

the content node

Method Detail

autoscrollback to summary
private void autoscroll(double yOffset)
autoscrollIfNeededback to summary
private void autoscrollIfNeeded(DragEvent evt)
autoscrollIfNeededback to summary
private void autoscrollIfNeeded(MouseEvent evt)
isOnEntryback to summary
private boolean isOnEntry(EventTarget target)
isScrollBarback to summary
private boolean isScrollBar(EventTarget target)
isScrollBarback to summary
private boolean isScrollBar(Node node)
startDragback to summary
private void startDrag(MouseEvent evt)
stopAutoScrollIfNeededback to summary
private void stopAutoScrollIfNeeded()
impl.com.calendarfx.view back to summary

pack-priv Class AutoScrollPane.ScrollThread

extends Thread
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private double
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

private void
public void
setDelta(double yOffset)

public void
Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopthreadIdtoStringyield

Field Detail

runningback to summary
private boolean running
yOffsetback to summary
private double yOffset

Constructor Detail

ScrollThreadback to summary
public ScrollThread()

Method Detail

runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

Annotations
@Override
scrollYback to summary
private void scrollY()
setDeltaback to summary
public void setDelta(double yOffset)
stopRunningback to summary
public void stopRunning()