public class Selection extends java.lang.Object implements TimeListener, Drawable
Constructor and Description |
---|
Selection(MicroSecondTimeRange range,
SeismogramDisplay parent,
java.awt.Color color) |
Modifier and Type | Method and Description |
---|---|
boolean |
borders(MicroSecondDate selectionBegin,
MicroSecondDate selectionEnd) |
void |
draw(java.awt.Graphics2D canvas,
java.awt.Dimension size,
TimeEvent timeEvent,
AmpEvent ampEvent) |
MicroSecondDate |
getBegin() |
SeismogramDisplay |
getChild() |
java.awt.Color |
getColor() |
MicroSecondDate |
getEnd() |
SeismogramDisplay |
getParent() |
DataSetSeismogram[] |
getSeismograms() |
TimeConfig |
getTimeConfig() |
double |
getWidth(TimeEvent currentExternalState) |
float |
getX(int width,
TimeEvent currentExternalState) |
boolean |
isRemoveable() |
boolean |
isVisible(TimeEvent externalTime) |
void |
remove() |
void |
repaintParent() |
void |
setBegin(MicroSecondDate newBegin) |
void |
setChild(SeismogramDisplay child) |
void |
setColor(java.awt.Color color) |
void |
setEnd(MicroSecondDate newEnd) |
void |
setParent(SeismogramDisplay parent) |
void |
setTime(MicroSecondTimeRange selRange) |
void |
setTimeConfig(TimeConfig config) |
void |
setVisibility(boolean b) |
void |
toggleVisibility() |
void |
updateTime(TimeEvent event) |
public Selection(MicroSecondTimeRange range, SeismogramDisplay parent, java.awt.Color color)
public void updateTime(TimeEvent event)
updateTime
in interface TimeListener
public void toggleVisibility()
public void setVisibility(boolean b)
setVisibility
in interface Drawable
public boolean isVisible(TimeEvent externalTime)
public void draw(java.awt.Graphics2D canvas, java.awt.Dimension size, TimeEvent timeEvent, AmpEvent ampEvent)
public boolean isRemoveable()
public void remove()
public boolean borders(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd)
public void setParent(SeismogramDisplay parent)
public SeismogramDisplay getParent()
public void setChild(SeismogramDisplay child)
public SeismogramDisplay getChild()
public void repaintParent()
public float getX(int width, TimeEvent currentExternalState)
public double getWidth(TimeEvent currentExternalState)
public DataSetSeismogram[] getSeismograms()
public void setTime(MicroSecondTimeRange selRange)
public MicroSecondDate getBegin()
public void setBegin(MicroSecondDate newBegin)
public MicroSecondDate getEnd()
public void setEnd(MicroSecondDate newEnd)
public void setTimeConfig(TimeConfig config)
public TimeConfig getTimeConfig()