public class BasicLayoutConfig extends java.lang.Object implements LayoutConfig
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
seis |
protected java.util.Map |
valueMap |
Constructor and Description |
---|
BasicLayoutConfig() |
BasicLayoutConfig(DataSetSeismogram[] seismos) |
Modifier and Type | Method and Description |
---|---|
void |
add(DataSetSeismogram[] seismos)
add adds all of the seismograms in the array to the
receptacle |
void |
addListener(LayoutListener listener) |
void |
clear()
clear removes all seismograms from this receptacle |
boolean |
contains(DataSetSeismogram seismo)
contains checks the receptacle for the presence of seismo |
void |
fireLayoutEvent()
fires a layout event to all LayoutListeners with an event from
generateLayoutEvent()
|
LayoutEvent |
generateLayoutEvent() |
java.lang.String |
getLabel() |
LayoutEvent |
getLayout() |
double |
getScale() |
DataSetSeismogram[] |
getSeismograms()
returns all of the seismograms held by this receptacle
|
void |
remove(DataSetSeismogram[] seismos)
Attempts to remove all given seismograms from this Config.
|
void |
removeListener(LayoutListener listener) |
void |
reset()
reset takes all of the seismograms contained in this receptacle and sets
their state as if they had just been added to the receptacle and sets the
instance varaibles of the receptacle back to their initial states
|
void |
reset(DataSetSeismogram[] seismos)
reset takes all of the seismograms in the array and sets
their state as if they had just been initially added to the receptacle |
void |
setScale(double scale)
sets the amount by which every seismogram in the layout is being scaled
|
public BasicLayoutConfig()
public BasicLayoutConfig(DataSetSeismogram[] seismos)
public void addListener(LayoutListener listener)
addListener
in interface LayoutConfig
public void removeListener(LayoutListener listener)
removeListener
in interface LayoutConfig
public void fireLayoutEvent()
LayoutConfig
fireLayoutEvent
in interface LayoutConfig
public void add(DataSetSeismogram[] seismos)
DataSetSeismogramReceptacle
add
adds all of the seismograms in the array to the
receptacleadd
in interface DataSetSeismogramReceptacle
seismos
- a DataSetSeismogram[]
containing seismograms to
be added to this receptaclepublic void remove(DataSetSeismogram[] seismos)
remove
in interface DataSetSeismogramReceptacle
seismos
- DataSetSeismogram[]
an array of seismograms to
be removedpublic boolean contains(DataSetSeismogram seismo)
DataSetSeismogramReceptacle
contains
checks the receptacle for the presence of seismocontains
in interface DataSetSeismogramReceptacle
seismo
- the seismogram whose presence is to be testedpublic void clear()
DataSetSeismogramReceptacle
clear
removes all seismograms from this receptacleclear
in interface DataSetSeismogramReceptacle
public DataSetSeismogram[] getSeismograms()
DataSetSeismogramReceptacle
getSeismograms
in interface DataSetSeismogramReceptacle
public java.lang.String getLabel()
getLabel
in interface LayoutConfig
public void reset()
DataSetSeismogramReceptacle
reset
in interface DataSetSeismogramReceptacle
public void reset(DataSetSeismogram[] seismos)
DataSetSeismogramReceptacle
reset
takes all of the seismograms in the array and sets
their state as if they had just been initially added to the receptaclereset
in interface DataSetSeismogramReceptacle
seismos
- a DataSetSeismogram[]
value containing
seismograms to be resetpublic double getScale()
getScale
in interface LayoutConfig
public void setScale(double scale)
setScale
in interface LayoutConfig
scale
- -
the factor by which the seismogram height is multipliedpublic LayoutEvent generateLayoutEvent()
generateLayoutEvent
in interface LayoutConfig
public LayoutEvent getLayout()
getLayout
in interface LayoutConfig