|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Scrollbar
org.jlab.coda.afecs.ui.rcgui.util.AScrollSlider
public class AScrollSlider
JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), Nov 23, 2009
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Scrollbar |
---|
java.awt.Scrollbar.AccessibleAWTScrollBar |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class java.awt.Scrollbar |
---|
HORIZONTAL, VERTICAL |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.Adjustable |
---|
NO_ORIENTATION |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AScrollSlider(int orientation,
double cur,
double min,
double max)
uses default visible(20), resolution(1000), and scale (linear). |
|
AScrollSlider(int orientation,
double cur,
double min,
double max,
boolean log)
uses default visible(20) and resolution(1000). |
|
AScrollSlider(int orientation,
double cur,
int vis,
double min,
double max,
int res)
uses default scale (linear). |
|
AScrollSlider(int orientation,
double cur,
int vis,
double min,
double max,
int res,
boolean log)
constructs a FloatSlider using a given number of slider positions. |
Method Summary | |
---|---|
double |
getFloatMaximum()
|
double |
getFloatMinimum()
|
double |
getFloatValue()
|
static void |
main(java.lang.String[] args)
simple test program for ScrollSlider class. |
protected int |
rangeValue(double dval)
returns the closest integer in the range of the actual int extents of the base Scrollbar. |
void |
setAll(double newmin,
double newmax,
double newcur)
|
void |
setFloatMaximum(double newmax)
|
void |
setFloatMinimum(double newmin)
|
void |
setFloatValue(double newcur)
|
Methods inherited from class java.awt.Scrollbar |
---|
addAdjustmentListener, addNotify, getAccessibleContext, getAdjustmentListeners, getBlockIncrement, getLineIncrement, getListeners, getMaximum, getMinimum, getOrientation, getPageIncrement, getUnitIncrement, getValue, getValueIsAdjusting, getVisible, getVisibleAmount, paramString, processAdjustmentEvent, processEvent, removeAdjustmentListener, setBlockIncrement, setLineIncrement, setMaximum, setMinimum, setOrientation, setPageIncrement, setUnitIncrement, setValue, setValueIsAdjusting, setValues, setVisibleAmount |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AScrollSlider(int orientation, double cur, int vis, double min, double max, int res, boolean log)
orientation
- - Scrollbar.VERTICAL or Scrollbar.HORIZONTAL.cur
- - real valued initial value.vis
- - same as in Scrollbar base class.min
- - real valued range minimum.max
- - real valued range maximum.res
- - number of descrete slider positions.log
- - log scale if true, linear otherwise.public AScrollSlider(int orientation, double cur, int vis, double min, double max, int res)
orientation
- - Scrollbar.VERTICAL or Scrollbar.HORIZONTAL.cur
- - real valued initial value.vis
- - same as in Scrollbar base class.min
- - real valued range minimum.max
- - real valued range maximum.res
- - number of descrete slider positions.public AScrollSlider(int orientation, double cur, double min, double max, boolean log)
orientation
- - Scrollbar.VERTICAL or Scrollbar.HORIZONTAL.cur
- - real valued initial value.min
- - real valued range minimum.max
- - real valued range maximum.log
- - log scale if true, linear otherwise.public AScrollSlider(int orientation, double cur, double min, double max)
orientation
- - Scrollbar.VERTICAL or Scrollbar.HORIZONTAL.cur
- - real valued initial value.min
- - real valued range minimum.max
- - real valued range maximum.Method Detail |
---|
protected int rangeValue(double dval)
public double getFloatMinimum()
public double getFloatMaximum()
public double getFloatValue()
public void setFloatMinimum(double newmin)
public void setFloatMaximum(double newmax)
public void setFloatValue(double newcur)
public void setAll(double newmin, double newmax, double newcur)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |