public class ScrollbarWithLabel extends Panel implements Adjustable, AdjustmentListener
Panel.AccessibleAWTPanelContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTHORIZONTAL, NO_ORIENTATION, VERTICALABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
ScrollbarWithLabel(int orientation,
int value,
int visible,
int minimum,
int maximum,
String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdjustmentListener(AdjustmentListener l) |
void |
addKeyListener(KeyListener l) |
void |
adjustmentValueChanged(AdjustmentEvent e) |
int |
getBlockIncrement() |
int |
getMaximum() |
int |
getMinimum() |
Dimension |
getMinimumSize() |
int |
getOrientation() |
Dimension |
getPreferredSize() |
Scrollbar |
getScrollbar()
Deprecated.
Returns a reference to the Scrollbar. Ideally the scrollbar
should be fully handled by this class and hidden to other
classes, but as it was once exposed this method is kept for
backward compatibility. SyncWindows up to version 1.6 needs
this method. The Image5DWindow also needs it to mimick the
SliceSelector of StackWindow.
|
int |
getUnitIncrement() |
int |
getValue() |
int |
getVisibleAmount() |
void |
removeAdjustmentListener(AdjustmentListener l) |
void |
removeKeyListener(KeyListener l) |
void |
setBlockIncrement(int b) |
void |
setFocusable(boolean focusable) |
void |
setMaximum(int max) |
void |
setMinimum(int min) |
void |
setUnitIncrement(int u) |
void |
setValue(int v) |
void |
setVisibleAmount(int v) |
addNotify, getAccessibleContextadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic ScrollbarWithLabel(int orientation,
int value,
int visible,
int minimum,
int maximum,
String label)
public Dimension getPreferredSize()
getPreferredSize in class Containerpublic Dimension getMinimumSize()
getMinimumSize in class Container@Deprecated public Scrollbar getScrollbar()
public void addKeyListener(KeyListener l)
addKeyListener in class Componentpublic void removeKeyListener(KeyListener l)
removeKeyListener in class Componentpublic void addAdjustmentListener(AdjustmentListener l)
addAdjustmentListener in interface Adjustablepublic int getBlockIncrement()
getBlockIncrement in interface Adjustablepublic int getMaximum()
getMaximum in interface Adjustablepublic int getMinimum()
getMinimum in interface Adjustablepublic int getOrientation()
getOrientation in interface Adjustablepublic int getUnitIncrement()
getUnitIncrement in interface Adjustablepublic int getValue()
getValue in interface Adjustablepublic int getVisibleAmount()
getVisibleAmount in interface Adjustablepublic void removeAdjustmentListener(AdjustmentListener l)
removeAdjustmentListener in interface Adjustablepublic void setBlockIncrement(int b)
setBlockIncrement in interface Adjustablepublic void setMaximum(int max)
setMaximum in interface Adjustablepublic void setMinimum(int min)
setMinimum in interface Adjustablepublic void setUnitIncrement(int u)
setUnitIncrement in interface Adjustablepublic void setValue(int v)
setValue in interface Adjustablepublic void setVisibleAmount(int v)
setVisibleAmount in interface Adjustablepublic void setFocusable(boolean focusable)
setFocusable in class Componentpublic void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged in interface AdjustmentListenerCopyright © 2015–2021 Fiji. All rights reserved.