|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.gui.custom.CustomComposite
com.groovemanager.gui.custom.mc909.Mc909Key
An Mc909Key represents a Composite surrounding a Mc909Pad. A number of Mc909Keys can be packed into a Mc909KeyComposite.
| Field Summary | |
|---|---|
static int |
BLACK_LEFT
Constants for different types of keys |
static int |
BLACK_MIDDLE
Constants for different types of keys |
static int |
BLACK_RIGHT
Constants for different types of keys |
private static int |
LINE_WIDTH
The constant for the line width |
private org.eclipse.swt.widgets.Label |
note
The Label containing the note name and octave |
private static java.lang.String[] |
notes
Note names |
private Mc909Pad |
pad
The Mc909Pad contained in this Key |
static int |
WHITE_BEGIN
Constants for different types of keys |
static int |
WHITE_END
Constants for different types of keys |
static int |
WHITE_MIDDLE
Constants for different types of keys |
| Constructor Summary | |
|---|---|
Mc909Key(org.eclipse.swt.widgets.Composite parent,
int type,
int key)
Construct a new Mc909Key |
|
| Method Summary | |
|---|---|
protected org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parent,
int style)
This method is to be overwritten by concrete subclasses to create the real contents of this CustomComposite |
private void |
drawKey(int type)
Internal method for adding the PaintListener to the main composite |
protected int[] |
getListenerTypes()
For all types of listeners that should be possible to add to this Composite directly, the corresponding SWT.* constant should be contained in the returned Array. |
Mc909Pad |
getPad()
Get the Mc909Pad contained in this Key |
protected int |
getPossibleStyles()
Get a combination of all allowed SWT.* style constants |
void |
setNoteVisible(boolean visible)
Set the visible status of the note name |
| Methods inherited from class com.groovemanager.gui.custom.CustomComposite |
|---|
addListener, checkStyle, getComposite, getData, getListeners, getParent, removeListener, setData, setLayoutData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BLACK_LEFT
public static final int BLACK_MIDDLE
public static final int BLACK_RIGHT
private static final int LINE_WIDTH
private org.eclipse.swt.widgets.Label note
private static final java.lang.String[] notes
private Mc909Pad pad
public static final int WHITE_BEGIN
public static final int WHITE_END
public static final int WHITE_MIDDLE
| Constructor Detail |
|---|
public Mc909Key(org.eclipse.swt.widgets.Composite parent,
int type,
int key)
parent - The parent Compositetype - The type of the key (one of the type constants, e.g.
WHITE_BEGINkey - The key number in the range from 0 to 127| Method Detail |
|---|
protected org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent,
int style)
CustomComposite
createComposite in class CustomCompositeparent - The parent Composite under which this Composite should
be createdstyle - Combination of valid SWT.* style constants
CustomComposite.createComposite(org.eclipse.swt.widgets.Composite, int)private void drawKey(int type)
type - The type of this Keyprotected int[] getListenerTypes()
CustomComposite
getListenerTypes in class CustomCompositeCustomComposite.getListenerTypes()public Mc909Pad getPad()
protected int getPossibleStyles()
CustomComposite
getPossibleStyles in class CustomCompositeSWT.BORDER | SWT.LEFT | SWT.BORDERCustomComposite.getPossibleStyles()public void setNoteVisible(boolean visible)
visible - true, if the note name and octave should be visible,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||