public class IntSlider extends Panel implements AdjustmentListener, ActionListener
Panel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
EAST |
static int |
HORIZONTAL |
static int |
NORTH |
static int |
SOUTH |
static int |
VERTICAL |
static int |
WEST |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IntSlider(int minValue,
int maxValue)
Creates a horizontal IntSlider with the IntField on the right,
value minValue, BlockIncrement 1, and a range from minValue to maxValue.
|
IntSlider(int value,
int minValue,
int maxValue,
int orientation,
int visible,
int textPosition)
Creates a horizontal IntSlider with the specified starting value, minimum and maximum values,
HORIZONTAL or VERTICAL orientation of the slider, specified BlockIncrement (visible)
and IntField in NORTH, SOUTH, WEST or EAST textPosition and size columns.
|
IntSlider(int value,
int minValue,
int maxValue,
int orientation,
int visible,
int textPosition,
String actionCommand)
Creates a horizontal IntSlider with the specified starting value, minimum and maximum values,
HORIZONTAL or VERTICAL orientation of the slider, specified BlockIncrement (visible),
IntField in NORTH, SOUTH, WEST or EAST textPosition,
and command string of the ActionEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
addActionListener(ActionListener l) |
void |
adjustmentValueChanged(AdjustmentEvent e) |
String |
getActionCommand()
Returns the action command string.
|
int |
getColumns()
Gets the horizontal size of the IntField
|
int |
getValue()
Returns the current value.
|
protected void |
processActionEvent(ActionEvent e) |
protected void |
processEvent(AWTEvent e) |
void |
removeActionListener(ActionListener l) |
void |
setActionCommand(String newCommand)
Sets the command string returned by an ActionEvent.
|
void |
setColumns(int columns)
Sets the horizontal size of the IntField
|
void |
setValue(int newValue)
Sets the value of the slider to newValue without sending an ActionEvent.
|
void |
setValue(int newValue,
boolean sendEvent)
Sets the value of the slider to newValue.
|
addNotify, getAccessibleContext
add, 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, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int HORIZONTAL
public static final int VERTICAL
public static final int NORTH
public static final int SOUTH
public static final int EAST
public static final int WEST
public IntSlider(int minValue, int maxValue)
public IntSlider(int value, int minValue, int maxValue, int orientation, int visible, int textPosition)
public IntSlider(int value, int minValue, int maxValue, int orientation, int visible, int textPosition, String actionCommand)
public void setValue(int newValue)
public void setValue(int newValue, boolean sendEvent)
public int getValue()
public void setActionCommand(String newCommand)
public String getActionCommand()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged
in interface AdjustmentListener
public void setColumns(int columns)
public int getColumns()
public void addActionListener(ActionListener l)
public void removeActionListener(ActionListener l)
protected void processEvent(AWTEvent e)
processEvent
in class Container
protected void processActionEvent(ActionEvent e)
Copyright © 2015–2021 Fiji. All rights reserved.