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

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

public abstract class Stomp
extends LedPedal

Base class for stomp boxes

Author:
Frederic BORRY

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.geeboss.view.editors.pedal.LedPedal
LedPedal.FootSwitch
 
Field Summary
static org.eclipse.swt.graphics.Point DETAIL_BUTTON_LOCATION
          Detail button location
static org.eclipse.swt.graphics.Rectangle FOOT_SWITCH_BOUNDS
          Foot switch bounds
static int FOOT_SWITCH_X_LOCATION
          Foot switch x location
static int FOOT_SWITCH_Y_LOCATION
          Foot switch y location
static org.eclipse.swt.graphics.Point LED_LOCATION
          Detail button location
 
Fields inherited from class net.sourceforge.geeboss.view.editors.pedal.LedPedal
mFootSwitch, mStateLed
 
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
Stomp(EditorHandler handler, org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.graphics.Image background)
          Create a new stomp component
 
Method Summary
protected  org.eclipse.swt.graphics.Point getDetailButtonLocation()
          Get the implementation specific detail button location
protected  org.eclipse.swt.graphics.Rectangle getFootSwitchBounds()
          Get the implementation specific foot switch bounds
protected  org.eclipse.swt.graphics.Image getFootSwitchImage()
          Get the implementation specific foot switch image
protected  org.eclipse.swt.graphics.Image getFootSwitchPressedImage()
          Get the implementation specific foot switch pressed image
protected  org.eclipse.swt.graphics.Point getLedLocation()
          Get the implementation specific led location
 
Methods inherited from class net.sourceforge.geeboss.view.editors.pedal.LedPedal
getOnOffState
 
Methods inherited from class net.sourceforge.geeboss.view.editors.pedal.Pedal
getBackgroundImage, getBackGroundImage, 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

FOOT_SWITCH_BOUNDS

public static final org.eclipse.swt.graphics.Rectangle FOOT_SWITCH_BOUNDS
Foot switch bounds


FOOT_SWITCH_X_LOCATION

public static final int FOOT_SWITCH_X_LOCATION
Foot switch x location

See Also:
Constant Field Values

FOOT_SWITCH_Y_LOCATION

public static final int FOOT_SWITCH_Y_LOCATION
Foot switch y location

See Also:
Constant Field Values

DETAIL_BUTTON_LOCATION

public static final org.eclipse.swt.graphics.Point DETAIL_BUTTON_LOCATION
Detail button location


LED_LOCATION

public static final org.eclipse.swt.graphics.Point LED_LOCATION
Detail button location

Constructor Detail

Stomp

public Stomp(EditorHandler handler,
             org.eclipse.swt.widgets.Composite parent,
             int style,
             org.eclipse.swt.graphics.Image background)
Create a new stomp 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

getDetailButtonLocation

protected org.eclipse.swt.graphics.Point getDetailButtonLocation()
Get the implementation specific detail button location

Specified by:
getDetailButtonLocation in class Pedal
Returns:
the implementation specific detail button location

getLedLocation

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

Specified by:
getLedLocation in class LedPedal
Returns:
the implementation specific led location

getFootSwitchBounds

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

Specified by:
getFootSwitchBounds in class LedPedal
Returns:
the implementation specific foot switch bounds

getFootSwitchImage

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

Specified by:
getFootSwitchImage in class LedPedal
Returns:
the implementation specific foot switch image

getFootSwitchPressedImage

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

Specified by:
getFootSwitchPressedImage in class LedPedal
Returns:
the implementation specific foot switch pressed image


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