Package ucar.unidata.util
Class MidiProperties
java.lang.Object
ucar.unidata.util.MidiProperties
A class to hold properties for a MidiManager
- Version:
- $Revision: 1.5 $
- Author:
- IDV Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionDefault ctor.MidiProperties
(String instrumentName, int lowNote, int highNote, boolean muted) Create a new MidiPropertiesMidiProperties
(MidiProperties that) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply propertiesint
Get the HighNote property.Get the Instrument property.int
Get the LowNote property.boolean
getMuted()
Get the Muted property.getPropertiesComponents
(List comps) Get the Components for setting the propertiesvoid
setHighNote
(int value) Set the HighNote property.void
setInstrumentName
(String value) Set the InstrumentIndex property.void
setLowNote
(int value) Set the LowNote property.void
setMuted
(boolean value) Set the Muted property.void
setProperties
(MidiProperties that) Set the properties from another.boolean
Show a Dialog for setting the properties.
-
Constructor Details
-
MidiProperties
public MidiProperties()Default ctor. -
MidiProperties
Create a new MidiProperties- Parameters:
instrumentName
- name of the instrumentlowNote
- low note valuehighNote
- high note valuemuted
- true if muted
-
MidiProperties
Copy constructor- Parameters:
that
- the other properties object
-
-
Method Details
-
setInstrumentName
Set the InstrumentIndex property.- Parameters:
value
- The new value for InstrumentIndex
-
getInstrumentName
Get the Instrument property.- Returns:
- The Instrument
-
setMuted
public void setMuted(boolean value) Set the Muted property.- Parameters:
value
- The new value for Muted
-
getMuted
public boolean getMuted()Get the Muted property.- Returns:
- The Muted
-
setLowNote
public void setLowNote(int value) Set the LowNote property.- Parameters:
value
- The new value for LowNote
-
getLowNote
public int getLowNote()Get the LowNote property.- Returns:
- The LowNote
-
setHighNote
public void setHighNote(int value) Set the HighNote property.- Parameters:
value
- The new value for HighNote
-
getHighNote
public int getHighNote()Get the HighNote property.- Returns:
- The HighNote
-
setProperties
Set the properties from another.- Parameters:
that
- the other
-
showPropertyDialog
Show a Dialog for setting the properties.- Parameters:
w
- Window for anchor- Returns:
- true if properties changed
-
applyProperties
public boolean applyProperties()Apply properties- Returns:
- success
-
getPropertiesComponents
Get the Components for setting the properties- Parameters:
comps
- compnents to add to- Returns:
- the list for this.
-