|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.util.AutoscrollSupport
public class AutoscrollSupport
A support class, which enables the autoscroll feature for the tree table and the layer container. These components will automatically scroll when the user performs a drag & drop operation and the mouse cursor reaches any one the edges of the component's visible rectangle.
Constructor Summary | |
---|---|
AutoscrollSupport(javax.swing.JComponent comp)
Constructs a new autoscroll support object. |
|
AutoscrollSupport(javax.swing.JComponent comp,
java.awt.Insets insets)
Constructs a new autoscroll support object. |
|
AutoscrollSupport(javax.swing.JComponent comp,
java.awt.Insets insets,
java.awt.Insets scrollUnits)
Constructs a new autoscroll support object. |
Method Summary | |
---|---|
void |
autoscroll(java.awt.Point cursorLoc)
|
java.awt.Insets |
getAutoscrollInsets()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoscrollSupport(javax.swing.JComponent comp)
comp
- the component for which to activate automatic scrolling during
drag and drop operationspublic AutoscrollSupport(javax.swing.JComponent comp, java.awt.Insets insets)
comp
- the component for which to activate automatic scrolling during
drag and drop operationsinsets
- the container insets where autoscrolling should be activepublic AutoscrollSupport(javax.swing.JComponent comp, java.awt.Insets insets, java.awt.Insets scrollUnits)
comp
- the component for which to activate automatic scrolling during
drag and drop operationsinsets
- the container insets where autoscrolling should be activescrollUnits
- the number of units to scroll when the mouse cursor causes
automatic scrollingMethod Detail |
---|
public void autoscroll(java.awt.Point cursorLoc)
autoscroll
in interface java.awt.dnd.Autoscroll
public java.awt.Insets getAutoscrollInsets()
getAutoscrollInsets
in interface java.awt.dnd.Autoscroll
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |