| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
net.sourceforge.geeboss.view.widget.knob.KnobControl
public abstract class KnobControl
Base class for knob controls
| Field Summary | |
|---|---|
| static int | HEIGHTKnob height | 
| static int | WIDTHKnob width | 
| Fields inherited from class org.eclipse.swt.widgets.Control | 
|---|
| handle | 
| Constructor Summary | |
|---|---|
| KnobControl(Parameter parameter,
            org.eclipse.swt.widgets.Composite comp,
            int flag,
            org.eclipse.swt.graphics.Image background)Construct a new KnobControl given a background image | |
| Method Summary | |
|---|---|
| protected abstract  org.eclipse.swt.graphics.Image[] | getKnobImages()Get implementation specific knob images | 
|  int | getMaximum()Getter for max value | 
|  int | getMinimum()Getter for min value | 
|  int | getValue()Getter for current value | 
|  void | redraw()Redraw method override | 
|  void | setMaximum(int max)Setter for max value | 
|  void | setMinimum(int min)Setter for min value | 
|  void | setValue(int value)Externally set the value | 
| Methods inherited from class org.eclipse.swt.widgets.Composite | 
|---|
| changed, checkSubclass, computeSize, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setFocus, setLayout, setLayoutDeferred, setTabList | 
| Methods inherited from class org.eclipse.swt.widgets.Scrollable | 
|---|
| computeTrim, getClientArea, getHorizontalBar, getVerticalBar | 
| Methods inherited from class org.eclipse.swt.widgets.Control | 
|---|
| addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update | 
| Methods inherited from class org.eclipse.swt.widgets.Widget | 
|---|
| addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int WIDTH
public static final int HEIGHT
| Constructor Detail | 
|---|
public KnobControl(Parameter parameter,
                   org.eclipse.swt.widgets.Composite comp,
                   int flag,
                   org.eclipse.swt.graphics.Image background)
parameter - the parameter edited by this controlcomp - the parent compositeflag - the style flagbackground - the background image| Method Detail | 
|---|
protected abstract org.eclipse.swt.graphics.Image[] getKnobImages()
public void redraw()
redraw in class org.eclipse.swt.widgets.Controlpublic void setMaximum(int max)
max - the max valuepublic int getMaximum()
public void setMinimum(int min)
min - the min valuepublic int getMinimum()
public void setValue(int value)
value - the new valuepublic int getValue()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||