net.sourceforge.geeboss.view.editors.pedal
Class LedPedal

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.editors.pedal.Pedal
                      extended by net.sourceforge.geeboss.view.editors.pedal.LedPedal
All Implemented Interfaces:
Editor, ParameterUpdateListener, org.eclipse.swt.graphics.Drawable
Direct Known Subclasses:
Amp, ExpressionPedal, Stomp

public abstract class LedPedal
extends Pedal

Base class for led pedals

Author:
Frederic BORRY

Nested Class Summary
static class LedPedal.FootSwitch
          Inner foot switch control
 
Field Summary
protected  LedPedal.FootSwitch mFootSwitch
          Foot switch
protected  LedControl mStateLed
          State led
 
Fields inherited from class net.sourceforge.geeboss.view.editors.pedal.Pedal
HEIGHT, mBackgroundImage, mDetailButton, mEditorHandler, mLayeredBackgroundImage, WIDTH
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
LedPedal(EditorHandler handler, org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.graphics.Image background)
          Create a new LedPedal component
 
Method Summary
protected abstract  org.eclipse.swt.graphics.Rectangle getFootSwitchBounds()
          Get the implementation specific foot switch bounds
protected abstract  org.eclipse.swt.graphics.Image getFootSwitchImage()
          Get the implementation specific foot switch image
protected abstract  org.eclipse.swt.graphics.Image getFootSwitchPressedImage()
          Get the implementation specific foot switch pressed image
protected abstract  org.eclipse.swt.graphics.Point getLedLocation()
          Get the implementation specific led location
 boolean getOnOffState()
          Returns true if the pedal is on
 
Methods inherited from class net.sourceforge.geeboss.view.editors.pedal.Pedal
getBackgroundImage, getBackGroundImage, getDetailButtonLocation, getHandler, parametersUpdated, setActive
 
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, 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

mStateLed

protected LedControl mStateLed
State led


mFootSwitch

protected LedPedal.FootSwitch mFootSwitch
Foot switch

Constructor Detail

LedPedal

public LedPedal(EditorHandler handler,
                org.eclipse.swt.widgets.Composite parent,
                int style,
                org.eclipse.swt.graphics.Image background)
Create a new LedPedal component

Parameters:
handler - the associated editor handler
parent - the parent component
style - the style flag
background - the background the pedal will be displayed on
Method Detail

getOnOffState

public boolean getOnOffState()
Returns true if the pedal is on

Returns:
true if the pedal is on

getLedLocation

protected abstract org.eclipse.swt.graphics.Point getLedLocation()
Get the implementation specific led location

Returns:
the implementation specific led location

getFootSwitchBounds

protected abstract org.eclipse.swt.graphics.Rectangle getFootSwitchBounds()
Get the implementation specific foot switch bounds

Returns:
the implementation specific foot switch bounds

getFootSwitchImage

protected abstract org.eclipse.swt.graphics.Image getFootSwitchImage()
Get the implementation specific foot switch image

Returns:
the implementation specific foot switch image

getFootSwitchPressedImage

protected abstract org.eclipse.swt.graphics.Image getFootSwitchPressedImage()
Get the implementation specific foot switch pressed image

Returns:
the implementation specific foot switch pressed image


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