public class DrawableSeismogram extends java.lang.Object implements NamedDrawable, SeismogramDisplayListener
| Modifier and Type | Field and Description |
|---|---|
protected SeismogramShape |
shape |
| Modifier | Constructor and Description |
|---|---|
|
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) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected SeismogramShape shape
public DrawableSeismogram(SeismogramDisplay parent, DataSetSeismogram seis, java.awt.Color color)
public 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)
protected void setRemover(SeismogramRemover remover)
public SeismogramDisplay getParent()
public void setVisibility(boolean vis)
setVisibility in interface Drawablepublic boolean getVisiblity()
public void addToTimeAndAmp()
public void draw(java.awt.Graphics2D canvas,
java.awt.Dimension size,
TimeEvent currentTime,
AmpEvent currentAmp)
public java.awt.geom.Rectangle2D drawName(java.awt.Graphics2D canvas,
int xPosition,
int yPosition)
drawName in interface NamedDrawablepublic void add(Drawable child)
public void add(Drawable child, java.awt.Color color)
public void remove(Drawable child)
public void clear(java.lang.Class drawableClass)
public DrawableIterator iterator(java.lang.Class drawableClass)
public void added(SeismogramDisplay recipient, Drawable drawable)
added in interface SeismogramDisplayListenerpublic void removed(SeismogramDisplay bereaved, Drawable drawable)
removed in interface SeismogramDisplayListenerpublic void switching(SeismogramDisplay from, SeismogramDisplay to)
from is being replaced by
toswitching in interface SeismogramDisplayListenerpublic void switching(TimeConfig from, TimeConfig to)
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic DataSetSeismogram getSeismogram()
public java.lang.String getDataStatus()
public void getData()
public static void setDefaultVisibility(boolean visible)