edu.sc.seis.sod.process.waveform
Class SeismogramImageProcess
java.lang.Object
edu.sc.seis.sod.process.waveform.SeismogramImageProcess
- All Implemented Interfaces:
- WaveformProcess, SodElement, Subsetter
- Direct Known Subclasses:
- VectorImageProcess
public class SeismogramImageProcess
- extends java.lang.Object
- implements WaveformProcess
Method Summary |
WaveformResult |
accept(CacheEvent event,
ChannelImpl channel,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogramImpl[] seismograms,
CookieJar cookieJar)
Processes localSeismograms, possibly modifying them. |
protected void |
addFlags(java.util.List<edu.sc.seis.TauP.Arrival> arrivals,
Origin o,
SeismogramDisplay bsd,
DataSetSeismogram seis)
|
SeismogramDisplay |
createPopulatedDisplay(EventAccessOperations event,
Channel channel,
DataSetSeismogram[] seis,
java.lang.String[] phases)
|
static MemoryDataSetSeismogram |
createSeis(LocalSeismogramImpl[] seismograms,
RequestFilter[] original)
|
protected java.util.List<edu.sc.seis.TauP.Arrival> |
getArrivals(Channel chan,
Origin o,
java.lang.String[] phases)
|
static MicroSecondTimeRange |
getTimeWindow(PhaseWindow pw,
DataSetSeismogram dss)
|
BorderConfiguration |
getTitleBorder()
|
WaveformResult |
process(CacheEvent event,
Channel channel,
RequestFilter[] original,
LocalSeismogramImpl[] seismograms,
java.lang.String fileType,
CookieJar cookieJar)
allows specifying a fileType, png or pdf. |
WaveformResult |
process(CacheEvent event,
Channel channel,
RequestFilter[] original,
LocalSeismogramImpl[] seismograms,
java.lang.String fileType,
java.lang.String[] phases,
boolean relTime,
CookieJar cookieJar)
allows specifying a fileType, png or pdf, and a list of phases. |
WaveformResult |
process(CacheEvent event,
Channel channel,
RequestFilter[] original,
LocalSeismogramImpl[] seismograms,
java.lang.String fileType,
java.lang.String[] phases,
CookieJar cookieJar)
allows specifying a fileType, png or pdf, and a list of phases. |
static void |
setTimeWindow(TimeConfig tc,
DataSetSeismogram dss)
|
static void |
setTimeWindow(TimeConfig tc,
MicroSecondTimeRange newTime,
MicroSecondTimeRange currentTime)
|
static void |
setTimeWindow(TimeConfig tc,
PhaseWindow pw,
DataSetSeismogram dss)
|
void |
updateTitles(EventAccessOperations event,
Channel channel,
MicroSecondTimeRange timeRange)
|
protected void |
writeImage(SeismogramDisplay disp,
java.lang.String fileType,
java.lang.String picFileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator
protected SeismogramImageOutputLocator locator
titleBorder
protected BorderConfiguration titleBorder
phaseWindow
protected PhaseWindow phaseWindow
phaseFlagNames
protected java.lang.String[] phaseFlagNames
dims
protected java.awt.Dimension dims
PDF
public static final java.lang.String PDF
- See Also:
- Constant Field Values
PNG
public static final java.lang.String PNG
- See Also:
- Constant Field Values
SeismogramImageProcess
public SeismogramImageProcess(SeismogramImageOutputLocator locator)
SeismogramImageProcess
public SeismogramImageProcess(org.w3c.dom.Element el)
throws java.lang.Exception
- Throws:
java.lang.Exception
accept
public WaveformResult accept(CacheEvent event,
ChannelImpl channel,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogramImpl[] seismograms,
CookieJar cookieJar)
throws java.lang.Exception
- Description copied from interface:
WaveformProcess
- Processes localSeismograms, possibly modifying them.
- Specified by:
accept
in interface WaveformProcess
- Throws:
java.lang.Exception
process
public WaveformResult process(CacheEvent event,
Channel channel,
RequestFilter[] original,
LocalSeismogramImpl[] seismograms,
java.lang.String fileType,
CookieJar cookieJar)
throws java.lang.Exception
- allows specifying a fileType, png or pdf.
- Throws:
java.lang.Exception
process
public WaveformResult process(CacheEvent event,
Channel channel,
RequestFilter[] original,
LocalSeismogramImpl[] seismograms,
java.lang.String fileType,
java.lang.String[] phases,
CookieJar cookieJar)
throws java.lang.Exception
- allows specifying a fileType, png or pdf, and a list of phases.
- Throws:
java.lang.Exception
createSeis
public static MemoryDataSetSeismogram createSeis(LocalSeismogramImpl[] seismograms,
RequestFilter[] original)
throws java.lang.Exception
- Throws:
java.lang.Exception
getArrivals
protected java.util.List<edu.sc.seis.TauP.Arrival> getArrivals(Channel chan,
Origin o,
java.lang.String[] phases)
throws edu.sc.seis.TauP.TauModelException
- Throws:
edu.sc.seis.TauP.TauModelException
addFlags
protected void addFlags(java.util.List<edu.sc.seis.TauP.Arrival> arrivals,
Origin o,
SeismogramDisplay bsd,
DataSetSeismogram seis)
process
public WaveformResult process(CacheEvent event,
Channel channel,
RequestFilter[] original,
LocalSeismogramImpl[] seismograms,
java.lang.String fileType,
java.lang.String[] phases,
boolean relTime,
CookieJar cookieJar)
throws java.lang.Exception
- allows specifying a fileType, png or pdf, and a list of phases.
- Throws:
java.lang.Exception
createPopulatedDisplay
public SeismogramDisplay createPopulatedDisplay(EventAccessOperations event,
Channel channel,
DataSetSeismogram[] seis,
java.lang.String[] phases)
throws java.lang.Exception
- Throws:
java.lang.Exception
setTimeWindow
public static void setTimeWindow(TimeConfig tc,
DataSetSeismogram dss)
throws java.lang.Exception
- Throws:
java.lang.Exception
setTimeWindow
public static void setTimeWindow(TimeConfig tc,
PhaseWindow pw,
DataSetSeismogram dss)
throws java.lang.Exception
- Throws:
java.lang.Exception
setTimeWindow
public static void setTimeWindow(TimeConfig tc,
MicroSecondTimeRange newTime,
MicroSecondTimeRange currentTime)
getTimeWindow
public static MicroSecondTimeRange getTimeWindow(PhaseWindow pw,
DataSetSeismogram dss)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateTitles
public void updateTitles(EventAccessOperations event,
Channel channel,
MicroSecondTimeRange timeRange)
getTitleBorder
public BorderConfiguration getTitleBorder()
writeImage
protected void writeImage(SeismogramDisplay disp,
java.lang.String fileType,
java.lang.String picFileName)
throws java.lang.Exception
- Throws:
java.lang.Exception