public interface TimeConfig extends DataSetSeismogramReceptacle
Modifier and Type | Method and Description |
---|---|
void |
addListener(TimeListener listener)
add adds the listener to the group of objects that are
updated when this time config changes |
TimeEvent |
fireTimeEvent()
fireTimeEvent causes the config to prepare a time event and fire it
to all of its TimeEvent objects |
double |
getScale() |
double |
getShift() |
MicroSecondTimeRange |
getTime() |
MicroSecondTimeRange |
getTime(DataSetSeismogram seis) |
void |
removeListener(TimeListener listener)
remove removes listener from the update group |
void |
shaleTime(double shift,
double scale)
shaleTime shifts then scales all the seismograms in the config. |
void |
shaleTime(double shift,
double scale,
DataSetSeismogram[] seismos)
shaleTime performs a shale on the seismograms in the array |
add, clear, contains, getSeismograms, remove, reset, reset
void shaleTime(double shift, double scale)
shaleTime
shifts then scales all the seismograms in the config.
First, the shift value is used to move the begin time by shift
*timeWidth.
Then the scale value is used to adjust the end time so that the new timeWidth is
scale*timeWidth.
So, if shift = 1 and scale = 2, the shift is applied and the new begin time is equal to the
old end time. Then the time width is modified to be two times its original size. The new
time starts at the old begin time and lasts twice as long.
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 time width to nothing.shift
- the percentage of current time width by which the seismograms
will be shiftedscale
- the percentage of the current time width that will exist after
the end time is movedvoid shaleTime(double shift, double scale, DataSetSeismogram[] seismos)
shaleTime
performs a shale on the seismograms in the arrayvoid addListener(TimeListener listener)
add
adds the listener to the group of objects that are
updated when this time config changeslistener
- a TimeEventListener
that will be updated
as this config changesvoid removeListener(TimeListener listener)
remove
removes listener from the update grouplistener
- a TimeEventListener
that will no longer
receive updates from this configTimeEvent fireTimeEvent()
fireTimeEvent
causes the config to prepare a time event and fire it
to all of its TimeEvent
objectsMicroSecondTimeRange getTime()
MicroSecondTimeRange getTime(DataSetSeismogram seis)
seis
- a DataSetSeismogram a time is desired fordouble getShift()
double getScale()