|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.common.option.AbstractOption<AudioMixerOption.MixerWrapper>
net.sf.freecol.common.option.AudioMixerOption
public class AudioMixerOption
Option for selecting an audio mixer.
Element MixerWrapper may return a null value in
getMixerInfo().
Element MixerWrapper may be
null in getValue() (unusual).
| Nested Class Summary | |
|---|---|
static class |
AudioMixerOption.MixerWrapper
|
| Field Summary | |
|---|---|
private static java.util.Comparator<AudioMixerOption.MixerWrapper> |
audioMixerComparator
|
private static java.util.Map<java.lang.String,AudioMixerOption.MixerWrapper> |
audioMixers
|
static java.lang.String |
AUTO
|
private static javax.sound.sampled.Mixer |
AUTODETECT_MIXER
|
private static AudioMixerOption.MixerWrapper |
DEFAULT
|
private static java.util.logging.Logger |
logger
|
private AudioMixerOption.MixerWrapper |
value
|
| Fields inherited from class net.sf.freecol.common.option.AbstractOption |
|---|
isDefined, previewEnabled |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, INFINITY, NO_ID, PARTIAL_ATTRIBUTE, UNDEFINED, VALUE_TAG |
| Constructor Summary | |
|---|---|
AudioMixerOption(javax.xml.stream.XMLStreamReader in)
Creates a new AudioMixerOption. |
|
| Method Summary | |
|---|---|
private void |
findAudioMixers()
Finds the audioMixers available. |
AudioMixerOption.MixerWrapper[] |
getOptions()
Returns a list of the available audioMixers. |
AudioMixerOption.MixerWrapper |
getValue()
Get the Value value. |
static java.lang.String |
getXMLElementTagName()
Gets the tag name of the root element representing this object. |
protected void |
readAttributes(javax.xml.stream.XMLStreamReader in)
Reads the attributes of this object from an XML stream. |
void |
setValue(AudioMixerOption.MixerWrapper newValue)
Set the Value value. |
protected void |
setValue(java.lang.String valueString,
java.lang.String defaultValueString)
Sets the value of this Option from the given string representation. |
protected void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
private static javax.sound.sampled.Mixer |
tryGetDefaultMixer()
|
protected void |
writeAttributes(javax.xml.stream.XMLStreamWriter out)
Write the attributes of this object to a stream. |
| Methods inherited from class net.sf.freecol.common.option.AbstractOption |
|---|
getGroup, isPreviewEnabled, readFromXMLImpl, setGroup, setPreviewEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.freecol.common.option.Option |
|---|
addPropertyChangeListener, getId, readFromXML, readFromXMLElement, removePropertyChangeListener, toString, toXML, toXMLElement |
| Field Detail |
|---|
private static java.util.logging.Logger logger
private static final java.util.Map<java.lang.String,AudioMixerOption.MixerWrapper> audioMixers
public static final java.lang.String AUTO
private static final javax.sound.sampled.Mixer AUTODETECT_MIXER
private static final AudioMixerOption.MixerWrapper DEFAULT
private static java.util.Comparator<AudioMixerOption.MixerWrapper> audioMixerComparator
private AudioMixerOption.MixerWrapper value
| Constructor Detail |
|---|
public AudioMixerOption(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
AudioMixerOption.
in - The XMSStreamReader to read the data from
javax.xml.stream.XMLStreamException - if an error occurs| Method Detail |
|---|
private static javax.sound.sampled.Mixer tryGetDefaultMixer()
public final AudioMixerOption.MixerWrapper getValue()
Value value.
getValue in class AbstractOption<AudioMixerOption.MixerWrapper>String valuepublic final void setValue(AudioMixerOption.MixerWrapper newValue)
Value value.
setValue in class AbstractOption<AudioMixerOption.MixerWrapper>newValue - The new Value value.
protected void setValue(java.lang.String valueString,
java.lang.String defaultValueString)
setValue in class AbstractOption<AudioMixerOption.MixerWrapper>valueString - the string representation of the value of
this OptiondefaultValueString - the string representation of the
default value of this Optionpublic AudioMixerOption.MixerWrapper[] getOptions()
private void findAudioMixers()
protected void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
toXMLImpl in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
protected void writeAttributes(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
writeAttributes in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing to
the stream.
protected void readAttributes(javax.xml.stream.XMLStreamReader in)
throws javax.xml.stream.XMLStreamException
readAttributes in class AbstractOption<AudioMixerOption.MixerWrapper>in - The XML input stream.
javax.xml.stream.XMLStreamException - if a problem was encountered
during parsing.public static java.lang.String getXMLElementTagName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||