@Deprecated
public class SwWheel
extends java.awt.Canvas
SwThumbwheel
,
SwWheelListener
,
SwWheelEvent
,
Serialized FormConstructor and Description |
---|
SwWheel()
Deprecated.
Create a default wheel with minimum value 0 and maximum value 100.
|
SwWheel(float minimum,
float maximum)
Deprecated.
Create a wheel.
|
SwWheel(float minimum,
float maximum,
float angleRange,
float value)
Deprecated.
Create a wheel.
|
SwWheel(float minimum,
float maximum,
float angleRange,
float value,
float homePosition)
Deprecated.
Create a wheel with a home position.
|
SwWheel(float minimum,
float maximum,
float angleRange,
float value,
float homePosition,
float unitsPerRotation)
Deprecated.
Create a wheel with a number of units per rotation.
|
SwWheel(float minimum,
float maximum,
float angleRange,
float value,
float homePosition,
float unitsPerRotation,
boolean horizontal)
Deprecated.
Create a wheel
|
Modifier and Type | Method and Description |
---|---|
void |
addWheelListener(SwWheelListener l)
Deprecated.
Add a wheel listener to the list of listeners.
|
float |
getAngleFactor()
Deprecated.
Return the number of user unit per rotation.
|
float |
getAngleRange()
Deprecated.
Return the range of degrees within which the wheel can roll.
|
float |
getLowerBound()
Deprecated.
Return the lower bound.
|
java.awt.Dimension |
getPreferredSize()
Deprecated.
Return the preferred size of the wheel.
|
float |
getUpperBound()
Deprecated.
Return the upper bound.
|
float |
getValue()
Deprecated.
Return the current wheel value.
|
float |
getViewablePixels()
Deprecated.
Return the number of pixels currently viewable (its corresponds to the wheel width).
|
boolean |
isHorizontal()
Deprecated.
Return true if the wheel is horizontal.
|
boolean |
isInfinite()
Deprecated.
Say wether the wheel can roll indefinitely or not.
|
void |
paint(java.awt.Graphics g)
Deprecated.
|
void |
processEvent(java.awt.AWTEvent e)
Deprecated.
Process all events for a wheel.
|
void |
processWheelEvent(SwWheelEvent e)
Deprecated.
Process wheel events for a wheel.
|
void |
redraw()
Deprecated.
|
void |
removeWheelListener(SwWheelListener l)
Deprecated.
Remove a wheel listener from the list of listeners.
|
void |
setEnabled(boolean enable)
Deprecated.
|
void |
setHomePosition(float homeValue)
Deprecated.
Set the new home position value.
|
void |
setHorizontal(boolean isHorizontal)
Deprecated.
Set the wheel horizontal or vertical.
|
void |
setLowerBound(float minimum)
Deprecated.
Set the lower bound.
|
void |
setToHomePosition()
Deprecated.
Reset the wheel value to its home position.
|
void |
setUnitsPerRotation(float units)
Deprecated.
Set the number of user unit the wheel should changed when doing a whole rotation.
|
void |
setUpperBound(float maximum)
Deprecated.
Set the upper bound.
|
void |
setValue(float newValue)
Deprecated.
Modify the current value of the wheel.
|
void |
setValue(float newValue,
boolean event)
Deprecated.
Modify the current value of the wheel.
|
void |
wheelDrawLine(java.awt.Graphics g,
java.awt.Color c,
int x1,
int y1,
int x2,
int y2)
Deprecated.
Draw a segment on the wheel given its graphic context and the color and depending
on the wheel is horizontal or not.
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, 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, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
public SwWheel()
public SwWheel(float minimum, float maximum)
minimum
- is the lowest value that can have a wheel.maximum
- is the highest value for a wheel.public SwWheel(float minimum, float maximum, float angleRange, float value)
angleRange
- represents the viewable range (in degree) of the wheel if the
wheel is limited (does not roll indefinitely)value
- is the start value for the wheel.public SwWheel(float minimum, float maximum, float angleRange, float value, float homePosition)
homePosition
- is the default value when setting the wheel to home position.public SwWheel(float minimum, float maximum, float angleRange, float value, float homePosition, float unitsPerRotation)
unitsPerRotation
- is the number of units that correspond to the whole wheel.public SwWheel(float minimum, float maximum, float angleRange, float value, float homePosition, float unitsPerRotation, boolean horizontal)
horizontal
- tells whether to draw the wheel horizontally or verticallypublic void addWheelListener(SwWheelListener l)
SwWheelListener
public void removeWheelListener(SwWheelListener l)
SwWheelListener
public void processEvent(java.awt.AWTEvent e)
processEvent
in class java.awt.Component
public void processWheelEvent(SwWheelEvent e)
public void setToHomePosition()
public void setHorizontal(boolean isHorizontal)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Component
public void setUnitsPerRotation(float units)
public float getViewablePixels()
public void setValue(float newValue)
public void setValue(float newValue, boolean event)
event
- if true, if the wheel detects a change, a WheelEvent is generated
(same behaviour than setValue(int). Otherwise, no event is thrown.public float getValue()
public float getAngleFactor()
public float getUpperBound()
public float getLowerBound()
public float getAngleRange()
public void setUpperBound(float maximum)
public void setLowerBound(float minimum)
public void setHomePosition(float homeValue)
public boolean isInfinite()
public boolean isHorizontal()
public void wheelDrawLine(java.awt.Graphics g, java.awt.Color c, int x1, int y1, int x2, int y2)
public void paint(java.awt.Graphics g)
paint
in class java.awt.Canvas
public void redraw()
public void setEnabled(boolean enable)
setEnabled
in class java.awt.Component
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com