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

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
                              extended by net.sourceforge.geeboss.view.editors.pedal.TwoButtonStomp
All Implemented Interfaces:
Editor, ParameterUpdateListener, org.eclipse.swt.graphics.Drawable
Direct Known Subclasses:
Chorus, Comp, Delay, Eq, Loop, Ns, OdDs, Reverb

public abstract class TwoButtonStomp
extends Stomp

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 int LEFT_KNOB_X_LOCATION
          Left knob x location
static int LEFT_KNOB_Y_LOCATION
          Left knob y location
protected  KnobControl mLeftKnob
          Left knob
protected  KnobControl mRightKnob
          Right knob
static int RIGHT_KNOB_X_LOCATION
          Right knob x location
static int RIGHT_KNOB_Y_LOCATION
          Right knob y location
 
Fields inherited from class net.sourceforge.geeboss.view.editors.pedal.Stomp
DETAIL_BUTTON_LOCATION, FOOT_SWITCH_BOUNDS, FOOT_SWITCH_X_LOCATION, FOOT_SWITCH_Y_LOCATION, LED_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
TwoButtonStomp(EditorHandler handler, org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.graphics.Image background)
          Create a new stom component
 
Method Summary
protected abstract  Parameter getLeftParameter()
          Returns the implementation specific left parameter
protected abstract  Parameter getRightParameter()
          Returns the implementation specific right parameter
 
Methods inherited from class net.sourceforge.geeboss.view.editors.pedal.Stomp
getDetailButtonLocation, getFootSwitchBounds, getFootSwitchImage, getFootSwitchPressedImage, getLedLocation
 
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

LEFT_KNOB_X_LOCATION

public static final int LEFT_KNOB_X_LOCATION
Left knob x location

See Also:
Constant Field Values

LEFT_KNOB_Y_LOCATION

public static final int LEFT_KNOB_Y_LOCATION
Left knob y location

See Also:
Constant Field Values

RIGHT_KNOB_X_LOCATION

public static final int RIGHT_KNOB_X_LOCATION
Right knob x location

See Also:
Constant Field Values

RIGHT_KNOB_Y_LOCATION

public static final int RIGHT_KNOB_Y_LOCATION
Right knob y location

See Also:
Constant Field Values

mLeftKnob

protected KnobControl mLeftKnob
Left knob


mRightKnob

protected KnobControl mRightKnob
Right knob

Constructor Detail

TwoButtonStomp

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

getLeftParameter

protected abstract Parameter getLeftParameter()
Returns the implementation specific left parameter

Returns:
the implementation specific left parameter

getRightParameter

protected abstract Parameter getRightParameter()
Returns the implementation specific right parameter

Returns:
the implementation specific right parameter


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