edu.sc.seis.fissuresUtil.display.drawable
Class DrawableSeismogram

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.display.drawable.DrawableSeismogram
All Implemented Interfaces:
Drawable, NamedDrawable, SeismogramDisplayListener
Direct Known Subclasses:
DrawableFilteredSeismogram

public class DrawableSeismogram
extends java.lang.Object
implements NamedDrawable, SeismogramDisplayListener


Field Summary
protected  SeismogramShape shape
           
 
Constructor Summary
  DrawableSeismogram(SeismogramDisplay parent, DataSetSeismogram seis, java.awt.Color color)
           
  DrawableSeismogram(SeismogramDisplay parent, DataSetSeismogram seis, java.lang.String name)
           
protected DrawableSeismogram(SeismogramDisplay parent, SeismogramShape shape)
           
protected DrawableSeismogram(SeismogramDisplay parent, SeismogramShape shape, java.lang.String name, java.awt.Color color)
           
 
Method Summary
 void add(Drawable child)
           
 void add(Drawable child, java.awt.Color color)
           
 void added(SeismogramDisplay recipient, Drawable drawable)
           
 void addToTimeAndAmp()
           
 void clear(java.lang.Class drawableClass)
           
 void draw(java.awt.Graphics2D canvas, java.awt.Dimension size, TimeEvent currentTime, AmpEvent currentAmp)
           
 java.awt.geom.Rectangle2D drawName(java.awt.Graphics2D canvas, int xPosition, int yPosition)
           
 java.awt.Color getColor()
           
 void getData()
           
 java.lang.String getDataStatus()
           
 java.lang.String getName()
           
 SeismogramDisplay getParent()
           
 DataSetSeismogram getSeismogram()
           
 boolean getVisiblity()
           
 DrawableIterator iterator(java.lang.Class drawableClass)
           
 void remove(Drawable child)
           
 void removed(SeismogramDisplay bereaved, Drawable drawable)
           
 void setColor(java.awt.Color c)
           
static void setDefaultVisibility(boolean visible)
           
protected  void setRemover(SeismogramRemover remover)
           
 void setVisibility(boolean vis)
           
 void switching(AmpConfig from, AmpConfig to)
           
 void switching(SeismogramDisplay from, SeismogramDisplay to)
          called when the display from is being replaced by to
 void switching(TimeConfig from, TimeConfig to)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

shape

protected SeismogramShape shape
Constructor Detail

DrawableSeismogram

public DrawableSeismogram(SeismogramDisplay parent,
                          DataSetSeismogram seis,
                          java.awt.Color color)

DrawableSeismogram

public DrawableSeismogram(SeismogramDisplay parent,
                          DataSetSeismogram seis,
                          java.lang.String name)

DrawableSeismogram

protected DrawableSeismogram(SeismogramDisplay parent,
                             SeismogramShape shape)

DrawableSeismogram

protected DrawableSeismogram(SeismogramDisplay parent,
                             SeismogramShape shape,
                             java.lang.String name,
                             java.awt.Color color)
Method Detail

setRemover

protected void setRemover(SeismogramRemover remover)

getParent

public SeismogramDisplay getParent()

setVisibility

public void setVisibility(boolean vis)
Specified by:
setVisibility in interface Drawable

getVisiblity

public boolean getVisiblity()

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface Drawable

setColor

public void setColor(java.awt.Color c)
Specified by:
setColor in interface Drawable

addToTimeAndAmp

public void addToTimeAndAmp()

draw

public void draw(java.awt.Graphics2D canvas,
                 java.awt.Dimension size,
                 TimeEvent currentTime,
                 AmpEvent currentAmp)
Specified by:
draw in interface Drawable

drawName

public java.awt.geom.Rectangle2D drawName(java.awt.Graphics2D canvas,
                                          int xPosition,
                                          int yPosition)
Specified by:
drawName in interface NamedDrawable

add

public void add(Drawable child)

add

public void add(Drawable child,
                java.awt.Color color)

remove

public void remove(Drawable child)

clear

public void clear(java.lang.Class drawableClass)

iterator

public DrawableIterator iterator(java.lang.Class drawableClass)

added

public void added(SeismogramDisplay recipient,
                  Drawable drawable)
Specified by:
added in interface SeismogramDisplayListener

removed

public void removed(SeismogramDisplay bereaved,
                    Drawable drawable)
Specified by:
removed in interface SeismogramDisplayListener

switching

public void switching(SeismogramDisplay from,
                      SeismogramDisplay to)
called when the display from is being replaced by to

Specified by:
switching in interface SeismogramDisplayListener

switching

public void switching(AmpConfig from,
                      AmpConfig to)

switching

public void switching(TimeConfig from,
                      TimeConfig to)

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSeismogram

public DataSetSeismogram getSeismogram()

getDataStatus

public java.lang.String getDataStatus()

getData

public void getData()

setDefaultVisibility

public static void setDefaultVisibility(boolean visible)