public class AutoScrollingParameters
extends java.lang.Object
| Constructor and Description |
|---|
AutoScrollingParameters() |
| Modifier and Type | Method and Description |
|---|---|
double |
getBaseJumpAmount()
Gets the amount by which the window jumps when the cursor is dragged to the window-edge.
|
double |
getInsetToBeginScroll()
Gets the inset from the window-edge where auto-scrolling will begin.
|
double |
getJumpAmountIncreasePerJump()
Gets how much (in pixels) that the jump-amount increases with each jump.
|
double |
getJumpPeriod()
Gets the interval at which auto-scroll 'jumps' occur when the cursor is dragged outside the window.
|
double |
getMaxJumpAmount()
Gets the maximum amount by which the window will jump when the cursor is dragged far outside the window.
|
void |
setBaseJumpAmount(double baseJumpAmount)
Sets the amount by which the window will jump when the cursor is dragged to the window-edge.
|
void |
setInsetToBeginScroll(double insetToBeginScroll)
Sets the inset from the window-edge where auto-scrolling will begin.
|
void |
setJumpAmountIncreasePerJump(double jumpAmountIncreasePerJump)
Sets how much (in pixels) that the jump-amount increases with each jump.
|
void |
setJumpPeriod(double jumpPeriod)
Sets the interval at which auto-scroll 'jumps' occur when the cursor is dragged outside the window.
|
void |
setMaxJumpAmount(double maxJumpAmount)
Gets the maximum amount by which the window will jump when the cursor is dragged far outside the window.
|
public double getJumpPeriod()
public void setJumpPeriod(double jumpPeriod)
Defaults to 25ms. It shouldn't be necessary to change this unless performance is slow.
jumpPeriod - a value in millisecondspublic double getBaseJumpAmount()
public void setBaseJumpAmount(double baseJumpAmount)
Defaults to 10 pixels.
baseJumpAmount - a value in pixelspublic double getMaxJumpAmount()
public void setMaxJumpAmount(double maxJumpAmount)
public double getJumpAmountIncreasePerJump()
public void setJumpAmountIncreasePerJump(double jumpAmountIncreasePerJump)
This leads to an "acceleration" effect. Defaults to 0.5.
jumpAmountIncreasePerJump - the amount that the jump-amount increases with each jumppublic double getInsetToBeginScroll()
public void setInsetToBeginScroll(double insetToBeginScroll)
Defaults to 1 pixel. Should not be 0 if the graph-editor can be full-screen.
insetToBeginScroll - the inset from the window-edge where auto-scrolling beginsCopyright © 2015 TESIS DYNAware. All Rights Reserved.