Class HorizontalScrollbarHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.ganttchart.HorizontalScrollbarHandler
-
- All Implemented Interfaces:
org.eclipse.swt.widgets.Listener
class HorizontalScrollbarHandler extends java.lang.Object implements org.eclipse.swt.widgets.Listener
-
-
Field Summary
Fields Modifier and Type Field Description private static int
_center
private boolean
_fixed
private GanttComposite
_gc
private boolean
_infinite
private int
_lastDetailEvent
private int
_lastScrollbarPosition
private static int
_maxScrollRange
private static int
_minScrollRange
private boolean
_none
private org.eclipse.swt.widgets.ScrollBar
_scrollBar
private boolean
_scrolling
-
Constructor Summary
Constructors Constructor Description HorizontalScrollbarHandler(GanttComposite parent, org.eclipse.swt.widgets.ScrollBar scrollBar, int style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getScrollBarPosition()
void
handleEvent(org.eclipse.swt.widgets.Event e)
boolean
isScrolling()
void
recalculate()
void
resetScrollPosition()
private int
scrollDirectionForEventDetail(int eventDetail)
private void
scrollViewportByOffset(int direction, int diff)
private void
scrollViewportByPage(int direction, int diff)
private void
scrollViewportTo(int direction, int position, int diff)
-
-
-
Field Detail
-
_minScrollRange
private static final int _minScrollRange
- See Also:
- Constant Field Values
-
_maxScrollRange
private static final int _maxScrollRange
- See Also:
- Constant Field Values
-
_center
private static final int _center
- See Also:
- Constant Field Values
-
_gc
private GanttComposite _gc
-
_scrollBar
private org.eclipse.swt.widgets.ScrollBar _scrollBar
-
_scrolling
private boolean _scrolling
-
_lastScrollbarPosition
private int _lastScrollbarPosition
-
_infinite
private boolean _infinite
-
_none
private boolean _none
-
_fixed
private boolean _fixed
-
_lastDetailEvent
private int _lastDetailEvent
-
-
Constructor Detail
-
HorizontalScrollbarHandler
public HorizontalScrollbarHandler(GanttComposite parent, org.eclipse.swt.widgets.ScrollBar scrollBar, int style)
-
-
Method Detail
-
resetScrollPosition
public void resetScrollPosition()
-
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event e)
- Specified by:
handleEvent
in interfaceorg.eclipse.swt.widgets.Listener
-
getScrollBarPosition
public int getScrollBarPosition()
-
scrollViewportByPage
private void scrollViewportByPage(int direction, int diff)
-
scrollViewportByOffset
private void scrollViewportByOffset(int direction, int diff)
-
scrollViewportTo
private void scrollViewportTo(int direction, int position, int diff)
-
scrollDirectionForEventDetail
private int scrollDirectionForEventDetail(int eventDetail)
-
isScrolling
public boolean isScrolling()
-
recalculate
public void recalculate()
-
-