|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TitleAreaDialog
com.groovemanager.gui.custom.ChooseFormatDialog
This class represents a dialog in which the user can select some attributes of an AudioFormat
| Nested Class Summary | |
|---|---|
private static class |
ChooseFormatDialog.PseudoAudioFormat
A Pseudo-class that is needed for accessing the AudioFormat.Encoding constructor in versions prior to 1.4 |
| Nested classes inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary | |
|---|---|
private boolean |
bigEndian
Current value of the endianess of the AudioFormat |
private int |
channels
Current number of channels of the AudioFormat |
static int |
CHANNELS
Constant for the AudioFormat attributes |
private org.eclipse.swt.widgets.Combo |
channelSelect
Drop-Down Menu for user selection of the number of channels. |
private javax.sound.sampled.AudioFormat.Encoding |
encoding
Current value for the encoding of the AudioFormat |
static int |
ENCODING
Constant for the AudioFormat attributes |
private javax.sound.sampled.AudioFormat.Encoding[] |
encodings
Possible values for Encoding selection |
private org.eclipse.swt.widgets.Combo |
encodingSelect
Drop-Down Menu for user selection of the encoding. |
static int |
ENDIAN
Constant for the AudioFormat attributes |
private org.eclipse.swt.widgets.Combo |
endianSelect
Drop-Down Menu for user selection of the endianess. |
private javax.sound.sampled.AudioFormat |
format
The pre-defined or the last selected AudioFormat |
private int |
maxChannels
Maximum value that can be selected as channels |
private java.lang.String |
msg
The message of this dialog |
static int |
SAMPLE_SIZE
Constant for the AudioFormat attributes |
private float |
sampleRate
Current value for the sample rate of the AudioFormat |
private float[] |
sampleRates
Possible values for sampleRate selection |
private org.eclipse.swt.widgets.Combo |
sampleRateSelect
Drop-Down Menu for user selection of the sample rate. |
private org.eclipse.swt.widgets.Text |
sampleRateValue
Text field for user input of the sample rate. |
private int |
sampleSize
Current value for the sample size of the AudioFormat |
private org.eclipse.swt.widgets.Combo |
sampleSizeSelect
Drop-Down Menu for user selection of the sample size. |
private org.eclipse.swt.widgets.Text |
sampleSizeValue
Text field for user input of the sample size. |
static int |
SAMPLING_RATE
Constant for the AudioFormat attributes |
private int |
showWhat
The constants of all attributes that should be selectable by the user combined with |, for example CHANNELS | SAMPLING_RATE. |
private int[] |
sizes
Possible values for Sample size selection |
| Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
|---|
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE |
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
buttonBar, dialogArea, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
ChooseFormatDialog(org.eclipse.swt.widgets.Shell parentShell,
javax.sound.sampled.AudioFormat format,
java.lang.String message,
int showWhat,
int[] sizes,
float[] sampleRates,
javax.sound.sampled.AudioFormat.Encoding[] encodings,
int maxChannels)
Constructs a new ChooseFormatDialog |
|
| Method Summary | |
|---|---|
void |
create()
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
|
javax.sound.sampled.AudioFormat |
getFormat()
Get the current AudioFormat of this dialog. |
protected void |
okPressed()
|
void |
setFormat(javax.sound.sampled.AudioFormat format)
Set the AudioFormat of this dialog |
| Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
|---|
createContents, getInitialSize, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
applyDialogFont, buttonPressed, cancelPressed, close, configureShell, constrainShellSize, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonBar, createButtonsForButtonBar, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, setButtonLayoutData, setButtonLayoutFormData |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, createShell, getContents, getDefaultImage, getInitialLocation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean bigEndian
private int channels
public static final int CHANNELS
private org.eclipse.swt.widgets.Combo channelSelect
showWhat & CHANNELS > 0.
private javax.sound.sampled.AudioFormat.Encoding encoding
public static final int ENCODING
private javax.sound.sampled.AudioFormat.Encoding[] encodings
private org.eclipse.swt.widgets.Combo encodingSelect
showWhat & ENCODING > 0 and if possible
values for user selection of the encoding are given.
public static final int ENDIAN
private org.eclipse.swt.widgets.Combo endianSelect
showWhat & ENDIAN > 0.
private javax.sound.sampled.AudioFormat format
private int maxChannels
private java.lang.String msg
public static final int SAMPLE_SIZE
private float sampleRate
private float[] sampleRates
private org.eclipse.swt.widgets.Combo sampleRateSelect
showWhat & SAMPLING_RATE > 0 and if possible
values for user selection of the sample rate are given.
private org.eclipse.swt.widgets.Text sampleRateValue
showWhat & SAMPLING_RATE > 0 and if no possible values
for user selection of the sample rate are given.
private int sampleSize
private org.eclipse.swt.widgets.Combo sampleSizeSelect
showWhat & SAMPLE_SIZE > 0 and if possible
values for user selection of the sample size are given.
private org.eclipse.swt.widgets.Text sampleSizeValue
showWhat & SAMPLE_SIZE > 0 and if no possible values
for user selection of the sample size are given.
public static final int SAMPLING_RATE
private int showWhat
private int[] sizes
| Constructor Detail |
|---|
public ChooseFormatDialog(org.eclipse.swt.widgets.Shell parentShell,
javax.sound.sampled.AudioFormat format,
java.lang.String message,
int showWhat,
int[] sizes,
float[] sampleRates,
javax.sound.sampled.AudioFormat.Encoding[] encodings,
int maxChannels)
parentShell - The Shell to be used as parent Shell of the dialogformat - The initial AudioFormat valuemessage - The message shown to the usershowWhat - Mask of attributes that should be selectable for the
user. For example: CHANNELS | SAMPLING_RATEsizes - Array of possible values for the sample size. If this
parameter is null, a text input will be shown for the user to input
any sample sizesampleRates - Array of possible values for the sample rate. If this
parameter is null, a text input will be shown for the user to input
any sample rateencodings - Array of possible Encodings foir user selectionmaxChannels - The maximum number of channels| Method Detail |
|---|
public void create()
create in class org.eclipse.jface.window.Windowprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea in class org.eclipse.jface.dialogs.TitleAreaDialogpublic javax.sound.sampled.AudioFormat getFormat()
protected void okPressed()
okPressed in class org.eclipse.jface.dialogs.DialogDialog.okPressed()public void setFormat(javax.sound.sampled.AudioFormat format)
format - The current AudioFormat value of this dialog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||