|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control org.eclipse.swt.widgets.Scrollable org.eclipse.swt.widgets.Composite net.sourceforge.geeboss.view.widget.led.LedControl
public abstract class LedControl
Base class for led controls
Field Summary | |
---|---|
static int |
HEIGHT
Led height |
static int |
WIDTH
Led width |
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
LedControl(Parameter parameter,
org.eclipse.swt.widgets.Composite comp,
int flag,
org.eclipse.swt.graphics.Image background)
Construct a new LedControl given a background image |
Method Summary | |
---|---|
protected abstract org.eclipse.swt.graphics.Image |
getLedOffImage()
Get implementation specific led off image |
protected abstract org.eclipse.swt.graphics.Image |
getLedOnImage()
Get implementation specific led on image |
boolean |
getState()
Getter for current state |
void |
redraw()
Redraw method overlaod |
void |
setState(boolean state)
Externally set the state |
boolean |
toggleState()
Toggle the state of the led |
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 LedControl(Parameter parameter, org.eclipse.swt.widgets.Composite comp, int flag, org.eclipse.swt.graphics.Image background)
parameter
- the parameter associated to this ledcomp
- the parent compositeflag
- the style flagbackground
- the background imageMethod Detail |
---|
protected abstract org.eclipse.swt.graphics.Image getLedOnImage()
protected abstract org.eclipse.swt.graphics.Image getLedOffImage()
public void redraw()
redraw
in class org.eclipse.swt.widgets.Control
public void setState(boolean state)
state
- the new statepublic boolean toggleState()
public boolean getState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |