public class IlvVerticalScrollBar extends JScrollBar
IlvVerticalScrollBar is a JScrollBar extension that
coordinates vertical scrolling with other Gantt components via connection to
an IlvGanttConfiguration.JScrollBar.AccessibleJScrollBarJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_PAGE_PIXELS
The block increment scrolling mode that indicates
that block up/down requests will result in scrolling by vertical pages.
|
static int |
BLOCK_PAGE_ROWS
The block increment scrolling mode that indicates
that block up/down requests will result in scrolling by vertical pages, truncated
to the nearest row.
|
static int |
BLOCK_PIXELS
The block increment scrolling mode that indicates
that block up/down requests will result in scrolling by the value of the
blockIncrement property. |
static int |
BLOCK_ROWS
The block increment scrolling mode that indicates
that block up/down requests will result in scrolling to the next row, up or
down.
|
static int |
UNIT_PIXELS
The unit increment scrolling mode that indicates
that unit up/down requests will result in scrolling by the value of the
unitIncrement property. |
static int |
UNIT_ROWS
The unit increment scrolling mode that indicates
that unit up/down requests will result in scrolling to the next row, up or
down.
|
blockIncrement, orientation, unitIncrementlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTHORIZONTAL, NO_ORIENTATION, VERTICALABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
IlvVerticalScrollBar()
Creates a new vertical scroll bar.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockIncrement(int direction)
Returns the amount to change the scroll bar's value by, given a block (usually "page")
up/down request.
|
int |
getBlockIncrementMode()
Returns the block increment scrolling mode, which can be one of:
BLOCK_PAGE_ROWS: Indicates that block up/down requests will result in
scrolling by pages, truncated to the nearest row, up or down. |
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration that is coordinating vertical scrolling, row
visibility, and centralized event routing.
|
int |
getUnitIncrement(int direction)
Returns the amount to change the scroll bar's value by, given a unit up/down request.
|
int |
getUnitIncrementMode()
Returns the unit increment scrolling mode.
|
void |
setBlockIncrementMode(int mode)
Sets the block increment scrolling mode, which must be one of:
BLOCK_PAGE_ROWS: Indicates that block up/down requests will result in
scrolling by pages, truncated to the nearest row, up or down. |
void |
setGanttConfiguration(IlvGanttConfiguration ganttConfig)
Sets the Gantt configuration that will coordinate vertical scrolling, row visibility,
and centralized event routing.
|
void |
setUnitIncrementMode(int mode)
Sets the unit increment scrolling mode.
|
void |
setValue(int value)
Sets the scroll bar's value.
|
addAdjustmentListener, fireAdjustmentValueChanged, getAccessibleContext, getAdjustmentListeners, getBlockIncrement, getMaximum, getMaximumSize, getMinimum, getMinimumSize, getModel, getOrientation, getUI, getUIClassID, getUnitIncrement, getValue, getValueIsAdjusting, getVisibleAmount, paramString, removeAdjustmentListener, setBlockIncrement, setEnabled, setMaximum, setMinimum, setModel, setOrientation, setUI, setUnitIncrement, setValueIsAdjusting, setValues, setVisibleAmount, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int UNIT_PIXELS
unitIncrement property.public static final int UNIT_ROWS
public static final int BLOCK_PIXELS
blockIncrement property.public static final int BLOCK_PAGE_PIXELS
public static final int BLOCK_ROWS
public static final int BLOCK_PAGE_ROWS
public IlvVerticalScrollBar()
public IlvGanttConfiguration getGanttConfiguration()
setGanttConfiguration(ilog.views.gantt.IlvGanttConfiguration)public void setGanttConfiguration(IlvGanttConfiguration ganttConfig)
ganttConfig - The Gantt configuration.getGanttConfiguration()public int getUnitIncrementMode()
UNIT_ROWS
indicates that unit up/down requests will result in scrolling to the next row, up or
down. The value UNIT_PIXELS indicates that unit up/down requests will result
in scrolling by the value of the unitIncrement property.setUnitIncrementMode(int),
getUnitIncrement(int)public void setUnitIncrementMode(int mode)
UNIT_ROWS
indicates that unit up/down requests will result in scrolling to the next row, up or
down. The value UNIT_PIXELS indicates that unit up/down requests will result
in scrolling by the value of the unitIncrement property.mode - The unit increment scrolling mode that must be either UNIT_ROWS or
UNIT_PIXELS.getUnitIncrementMode(),
getUnitIncrement(int)public int getUnitIncrement(int direction)
UNIT_ROWS, then this method
returns a value that will result in scrolling to the next row, up or down. If the
unit increment mode is set to UNIT_PIXELS, then this method returns the
value of the unitIncrement property.getUnitIncrement in class JScrollBardirection - The direction which is -1 or 1 for up/down respectively.getUnitIncrementMode()public int getBlockIncrementMode()
BLOCK_PAGE_ROWS: Indicates that block up/down requests will result in
scrolling by pages, truncated to the nearest row, up or down.BLOCK_ROWS: Indicates that block up/down requests will result in
scrolling to the next row, up or down.BLOCK_PAGE_PIXELS: Indicates that block up/down requests will result in
scrolling by vertical pages.BLOCK_PIXELS: Indicates that block up/down requests will result in
scrolling by the value of the blockIncrement property.BLOCK_PAGE_ROWSsetBlockIncrementMode(int),
getBlockIncrement(int)public void setBlockIncrementMode(int mode)
BLOCK_PAGE_ROWS: Indicates that block up/down requests will result in
scrolling by pages, truncated to the nearest row, up or down.BLOCK_ROWS: Indicates that block up/down requests will result in
scrolling to the next row, up or down.BLOCK_PAGE_PIXELS: Indicates that block up/down requests will result in
scrolling by vertical pages.BLOCK_PIXELS: Indicates that block up/down requests will result in
scrolling by the value of the blockIncrement property.mode - The block increment scrolling mode, which must be one of
BLOCK_PAGE_ROWS, BLOCK_ROWS, BLOCK_PAGE_PIXELS, or
UNIT_PIXELS.getBlockIncrementMode(),
getBlockIncrement(int)public int getBlockIncrement(int direction)
BLOCK_PAGE_ROWS (default): This method returns a value that will
result in scrolling by a page, truncated to the nearest row, up or down.BLOCK_ROWS: This method returns a value that will result in scrolling to
the next row, up or down.BLOCK_PAGE_PIXELS: This method returns the a value that will result in
scrolling by vertical pages.BLOCK_PIXELS: This method returns the value of the
blockIncrement property.getBlockIncrement in class JScrollBardirection - The direction which is -1 or 1 for up/down respectively.getBlockIncrementMode()public void setValue(int value)
UNIT_ROWS.setValue in interface AdjustablesetValue in class JScrollBarvalue - The value.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.