org.eclipse.gmf.runtime.draw2d.ui.figures
Class ListScrollBar
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.draw2d.ScrollBar
org.eclipse.gmf.runtime.draw2d.ui.figures.ListScrollBar
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener, IFigure, Orientable, PositionConstants
public class ListScrollBar
- extends ScrollBar
Customizes the look of GEF's ScrollBar
| Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
| Fields inherited from interface org.eclipse.draw2d.PositionConstants |
ALWAYS_LEFT, ALWAYS_RIGHT, BOTTOM, CENTER, EAST, EAST_WEST, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, NSEW, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, WEST |
| Methods inherited from class org.eclipse.draw2d.ScrollBar |
createPageDown, createPageUp, getButtonDown, getButtonUp, getExtent, getMaximum, getMinimum, getPageDown, getPageIncrement, getPageUp, getRangeModel, getStepIncrement, getThumb, getValue, getValueRange, isHorizontal, propertyChange, revalidate, setDirection, setDownClickable, setEnabled, setExtent, setHorizontal, setMaximum, setMinimum, setOrientation, setPageDown, setPageIncrement, setPageUp, setRangeModel, setStepIncrement, setThumb, setUpClickable, setValue, stepDown, stepUp |
| Methods inherited from class org.eclipse.draw2d.Figure |
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.draw2d.IFigure |
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, setBackgroundColor, setBorder, setBounds, setConstraint, setCursor, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate |
downButtonFigure
protected ListScrollBar.ArrowButton downButtonFigure
- Since:
- 1.4
upButtonFigure
protected ListScrollBar.ArrowButton upButtonFigure
- Since:
- 1.4
fillLightGrey
protected static Color fillLightGrey
- Since:
- 1.4
outlineLightGrey
protected static Color outlineLightGrey
- Since:
- 1.4
fillDarkGrey
protected static Color fillDarkGrey
- Since:
- 1.4
outlineDarkGrey
protected static Color outlineDarkGrey
- Since:
- 1.4
arrowFill
protected static Color arrowFill
- Since:
- 1.4
mm_1
protected int mm_1
- Since:
- 1.4
mm_2
protected int mm_2
- Since:
- 1.4
ListScrollBar
public ListScrollBar(int orientation,
Insets insets,
Dimension size,
int stepInc,
int pageInc)
- Constructor
- Parameters:
orientation - int that is a define from Orientableinsets - the Insets> that represents the white space buffer around the scroll bar in
logical coordinates.size - the Dimension that is the size of the scroll bar end boxes in
logical coordinatesstepInc - the int space to jump when incrementing the scroll bar one step in
logical coordinatespageInc - the int space to jump when paging the scroll bar up or down in
logical coordinates.
createDefaultDownButton
protected Clickable createDefaultDownButton()
- Overrides:
createDefaultDownButton in class ScrollBar
createDefaultUpButton
protected Clickable createDefaultUpButton()
- Overrides:
createDefaultUpButton in class ScrollBar
initialize
protected void initialize()
- Overrides:
initialize in class ScrollBar
createDefaultThumb
protected IFigure createDefaultThumb()
- Overrides:
createDefaultThumb in class ScrollBar
updateDownColors
protected void updateDownColors()
- Updates colors of down button depending on its state (highlighted,
pressed, or neither)
- Since:
- 1.4
updateUpColors
protected void updateUpColors()
- Updates colors of up button depending on its state (highlighted,
pressed, or neither)
- Since:
- 1.4
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.