net.sourceforge.geeboss.view.widget.button
Class BlackLedButton

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by net.sourceforge.geeboss.view.widget.button.LedButton
                      extended by net.sourceforge.geeboss.view.widget.button.BlackLedButton
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class BlackLedButton
extends LedButton

Black led button implementation

Author:
Frederic BORRY

Field Summary
 
Fields inherited from class net.sourceforge.geeboss.view.widget.button.LedButton
HEIGHT, WIDTH
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
BlackLedButton(org.eclipse.swt.widgets.Composite comp, int flag, org.eclipse.swt.graphics.Image background)
          Construct a new BlackLedButton given a background image
 
Method Summary
protected  org.eclipse.swt.graphics.Image getLedOffImage()
          Get implementatiOff specific led Off image
protected  org.eclipse.swt.graphics.Image getLedOffPressedImage()
          Get implementation specific led off pressed image
protected  org.eclipse.swt.graphics.Image getLedOnImage()
          Get implementation specific led on image
protected  org.eclipse.swt.graphics.Image getLedOnPressedImage()
          Get implementation specific led on pressed image
 
Methods inherited from class net.sourceforge.geeboss.view.widget.button.LedButton
getState, redraw, setState, toggleState
 
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
 

Constructor Detail

BlackLedButton

public BlackLedButton(org.eclipse.swt.widgets.Composite comp,
                      int flag,
                      org.eclipse.swt.graphics.Image background)
Construct a new BlackLedButton given a background image

Parameters:
comp - the parent composite
flag - the style flag
background - the background image
Method Detail

getLedOnImage

protected org.eclipse.swt.graphics.Image getLedOnImage()
Get implementation specific led on image

Specified by:
getLedOnImage in class LedButton
Returns:
a led on image

getLedOnPressedImage

protected org.eclipse.swt.graphics.Image getLedOnPressedImage()
Get implementation specific led on pressed image

Specified by:
getLedOnPressedImage in class LedButton
Returns:
a led on pressed image

getLedOffImage

protected org.eclipse.swt.graphics.Image getLedOffImage()
Get implementatiOff specific led Off image

Specified by:
getLedOffImage in class LedButton
Returns:
a led Off image

getLedOffPressedImage

protected org.eclipse.swt.graphics.Image getLedOffPressedImage()
Get implementation specific led off pressed image

Specified by:
getLedOffPressedImage in class LedButton
Returns:
a led off pressed image


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.