|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sc.seis.fissuresUtil.display.registrar.AmpConfigData
public class AmpConfigData
AmpConfigData encapsulates the data for a particular seismogram in a particular AmpConfig. It contains convenience methods for updating ampranges, keeping both a clean and shaled range for a seismogram, and storing the seismogram point indices over which the currently stored amp range was calculated. Created: Tue Sep 3 09:37:12 2002
Constructor Summary | |
---|---|
AmpConfigData(DataSetSeismogram seismo,
AmpConfig parent)
|
Method Summary | |
---|---|
double |
addScale(double newScale)
addScale adds this scale to the existing scale after
scaling it by the existing scale |
double |
addShift(double newShift)
addShift adds the new shift to the current shift scaled by
the amount the data is already scaled |
DataSetSeismogram |
getDSS()
|
SeismogramIterator |
getIterator()
|
edu.iris.Fissures.model.UnitRangeImpl |
getRange()
getRange returns the current range shaled by the current
scale and shift |
double |
getScale()
|
static DataSetSeismogram[] |
getSeismograms(AmpConfigData[] ampData)
|
double |
getShift()
|
MicroSecondTimeRange |
getTime()
getTime is an accessor method for the time this range
describes |
boolean |
hasNewData()
|
static boolean |
isAllFromSameSite(AmpConfigData[] ampData)
|
void |
reset()
sets the shift to 0, scale to 1 and clears the calculation indices |
boolean |
setRange(edu.iris.Fissures.model.UnitRangeImpl newRange)
setRange updates the data with a new clean range and
invalidates the old shaled range if the new range is different than the
old range |
void |
setScale(double newScale)
setScale clears any existing scale and sets it to the new
scale |
void |
setShift(double newShift)
setShift clears out the current shift and makes it equal
to the newShift |
boolean |
setTime(MicroSecondTimeRange newRange)
setTime sets the time for this range |
edu.iris.Fissures.model.UnitRangeImpl |
shale(double shift,
double scale)
shale shales the currently held clean range by the shift
and scale passed in addition to any shift or scale already held by the
Data |
edu.iris.Fissures.model.UnitRangeImpl |
shale(double shift,
double scale,
edu.iris.Fissures.model.UnitRangeImpl range)
Sets the clean range to be the passed range, and then shales it by the values given in additon to any alredy held shift and scale. |
java.lang.String |
toString()
|
void |
updateData()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AmpConfigData(DataSetSeismogram seismo, AmpConfig parent)
Method Detail |
---|
public void updateData()
updateData
in interface SeismogramContainerListener
public SeismogramIterator getIterator()
public boolean hasNewData()
public DataSetSeismogram getDSS()
public boolean setRange(edu.iris.Fissures.model.UnitRangeImpl newRange)
setRange
updates the data with a new clean range and
invalidates the old shaled range if the new range is different than the
old range
newRange
- the new clean range
public edu.iris.Fissures.model.UnitRangeImpl shale(double shift, double scale)
shale
shales the currently held clean range by the shift
and scale passed in addition to any shift or scale already held by the
Data
shift
- additional shift for this rangescale
- additional shale for this range
public edu.iris.Fissures.model.UnitRangeImpl shale(double shift, double scale, edu.iris.Fissures.model.UnitRangeImpl range)
shift
- additional shiftscale
- additional shalerange
- the new clean range
public edu.iris.Fissures.model.UnitRangeImpl getRange()
getRange
returns the current range shaled by the current
scale and shift
public MicroSecondTimeRange getTime()
getTime
is an accessor method for the time this range
describes
public boolean setTime(MicroSecondTimeRange newRange)
setTime
sets the time for this range
newRange
- the new time range
public double getShift()
public void setShift(double newShift)
setShift
clears out the current shift and makes it equal
to the newShift
newShift
- the new shift for the datapublic double addShift(double newShift)
addShift
adds the new shift to the current shift scaled by
the amount the data is already scaled
newShift
- the amount of shift to be added in percentage of display
shifted
public double getScale()
public void setScale(double newScale)
setScale
clears any existing scale and sets it to the new
scale
newScale
- the new scale valuepublic double addScale(double newScale)
addScale
adds this scale to the existing scale after
scaling it by the existing scale
newScale
- a double describing the percentage of the current display the
new scale will equal
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public static DataSetSeismogram[] getSeismograms(AmpConfigData[] ampData)
public static boolean isAllFromSameSite(AmpConfigData[] ampData)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |