|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sc.seis.fissuresUtil.display.registrar.IndividualizedAmpConfig
public class IndividualizedAmpConfig
| Constructor Summary | |
|---|---|
IndividualizedAmpConfig(AmpConfig wrapped)
|
|
IndividualizedAmpConfig(AmpConfig wrapped,
DataSetSeismogram[] seismos)
|
|
| Method Summary | |
|---|---|
void |
add(DataSetSeismogram[] seismos)
add adds all of the seismograms in the array to the
receptacle |
void |
addListener(AmpListener listener)
addListener causes listener to receive updates when this
AmpConfig changes |
AmpEvent |
calculate()
|
void |
clear()
clear removes all seismograms from this receptacle |
boolean |
contains(DataSetSeismogram seismo)
contains checks the receptacle for the presence of seismo |
void |
fireAmpEvent()
fireAmpEvent makes the AmpConfig create a new AmpEvent
reflecting its current internal state and send it to all AmpListeners |
UnitRangeImpl |
getAmp()
|
UnitRangeImpl |
getAmp(DataSetSeismogram seis)
|
AmpConfigData[] |
getAmpData()
|
AmpConfigData |
getAmpData(DataSetSeismogram seis)
|
DataSetSeismogram[] |
getSeismograms()
returns all of the seismograms held by this receptacle |
void |
remove(DataSetSeismogram[] seismos)
remove removes all of the seismograms in this array |
void |
removeListener(AmpListener listener)
removeListener causes listener to no longer receive updates from
this AmpConfig |
void |
reset()
reset takes all of the seismograms contained in this receptacle and sets their state as if they had just been added to the receptacle and sets the instance varaibles of the receptacle back to their initial states |
void |
reset(DataSetSeismogram[] seismos)
reset takes all of the seismograms in the array and sets
their state as if they had just been initially added to the receptacle |
void |
shaleAmp(double shift,
double scale)
shaleAmp shifts then scales all the seismograms in the config. |
void |
shaleAmp(double shift,
double scale,
DataSetSeismogram[] seismos)
shaleAmp performs a shaleAmp on the seismograms in the array |
void |
updateAmp(AmpEvent e)
|
void |
updateTime(TimeEvent event)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndividualizedAmpConfig(AmpConfig wrapped)
public IndividualizedAmpConfig(AmpConfig wrapped,
DataSetSeismogram[] seismos)
| Method Detail |
|---|
public AmpEvent calculate()
calculate in interface AmpConfigpublic void clear()
DataSetSeismogramReceptacleclear removes all seismograms from this receptacle
clear in interface DataSetSeismogramReceptaclepublic void reset(DataSetSeismogram[] seismos)
DataSetSeismogramReceptaclereset takes all of the seismograms in the array and sets
their state as if they had just been initially added to the receptacle
reset in interface DataSetSeismogramReceptacleseismos - a DataSetSeismogram[] value containing
seismograms to be resetpublic boolean contains(DataSetSeismogram seismo)
DataSetSeismogramReceptaclecontains checks the receptacle for the presence of seismo
contains in interface DataSetSeismogramReceptacleseismo - the seismogram whose presence is to be tested
public void add(DataSetSeismogram[] seismos)
DataSetSeismogramReceptacleadd adds all of the seismograms in the array to the
receptacle
add in interface DataSetSeismogramReceptacleseismos - a DataSetSeismogram[] containing seismograms to
be added to this receptaclepublic void reset()
DataSetSeismogramReceptacle
reset in interface DataSetSeismogramReceptaclepublic void removeListener(AmpListener listener)
AmpConfigremoveListener causes listener to no longer receive updates from
this AmpConfig
removeListener in interface AmpConfigpublic void updateTime(TimeEvent event)
updateTime in interface TimeListenerpublic void addListener(AmpListener listener)
AmpConfigaddListener causes listener to receive updates when this
AmpConfig changes
addListener in interface AmpConfig
public void shaleAmp(double shift,
double scale,
DataSetSeismogram[] seismos)
AmpConfigshaleAmp performs a shaleAmp on the seismograms in the array
shaleAmp in interface AmpConfigpublic void remove(DataSetSeismogram[] seismos)
DataSetSeismogramReceptacleremove removes all of the seismograms in this array
remove in interface DataSetSeismogramReceptacleseismos - DataSetSeismogram[] an array of seismograms to
be removed
public void shaleAmp(double shift,
double scale)
AmpConfigshaleAmp shifts then scales all the seismograms in the config.
First, the shift value is used to move the amp range by shift*amp range.
Then the scale value is used to adjust the high amp value so that the new amp range is
scale*amp range.
So, if shift = 1 and scale = 2, the shift is applied and the new low end on the amp range is equal to the
old high value. Then the range itself is modified to be two times its original size. The new
range starts at the old low end and is twice as wide
An adjustment of shift = 0, scale = 1 will leave the seismograms unchanged. A scale value must
be greater than 0, or it will reduce the range to nothing.
shaleAmp in interface AmpConfigshift - the percentage of current amp range by which the seismograms
will be shiftedscale - the percentage of the current amp range that will exist after
the high end is adjustedpublic UnitRangeImpl getAmp()
getAmp in interface AmpConfigpublic UnitRangeImpl getAmp(DataSetSeismogram seis)
getAmp in interface AmpConfigpublic AmpConfigData getAmpData(DataSetSeismogram seis)
getAmpData in interface AmpConfigpublic AmpConfigData[] getAmpData()
getAmpData in interface AmpConfigpublic void fireAmpEvent()
AmpConfigfireAmpEvent makes the AmpConfig create a new AmpEvent
reflecting its current internal state and send it to all AmpListeners
fireAmpEvent in interface AmpConfigpublic DataSetSeismogram[] getSeismograms()
DataSetSeismogramReceptacle
getSeismograms in interface DataSetSeismogramReceptaclepublic void updateAmp(AmpEvent e)
updateAmp in interface AmpListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||