Java Code Examples for org.eclipse.swt.widgets.Scrollable#getVerticalBar()

The following examples show how to use org.eclipse.swt.widgets.Scrollable#getVerticalBar() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScrollingSmoother.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @param c2
 * @param movement
 */
public ScrollingSmoother(final Scrollable c2, IMovement movement) {
	this.component = c2;
	verticalScrollBar = c2.getVerticalBar();
	horizontalScrollBar = c2.getHorizontalBar();
	this.movement = movement;
}
 
Example 2
Source File: ScrollbarHandler.java    From depan with Apache License 2.0 4 votes vote down vote up
public ScrollbarHandler(Scrollable view, GLScene scene) {
  this.view = view;
  this.scene = scene;
  this.vertBar = view.getVerticalBar();
  this.horizBar = view.getHorizontalBar();
}
 
Example 3
Source File: ScrollingSmoother.java    From nebula with Eclipse Public License 2.0 3 votes vote down vote up
/**
 * Create a Scrolling Smoother instance over a scrollable widget. This
 * effect can then be activated using
 * {@link ScrollingSmoother#smoothControl(boolean)}.
 * 
 * @see ScrollingSmoother#smoothControl(boolean)
 * 
 * @param c2
 * @param movement
 */
public ScrollingSmoother(final Scrollable c2, IMovement movement) {
	this.component = c2;
	verticalScrollBar = c2.getVerticalBar();
	horizontalScrollBar = c2.getHorizontalBar();
	this.movement = movement;
}