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 LayoutConfigpublic void removeListener(LayoutListener listener)
removeListener in interface LayoutConfigpublic void fireLayoutEvent()
LayoutConfigfireLayoutEvent in interface LayoutConfigpublic void add(DataSetSeismogram[] seismos)
DataSetSeismogramReceptacleadd adds all of the seismograms in the array to the
receptacleadd in interface DataSetSeismogramReceptacleseismos - a DataSetSeismogram[] containing seismograms to
be added to this receptaclepublic void remove(DataSetSeismogram[] seismos)
remove in interface DataSetSeismogramReceptacleseismos - DataSetSeismogram[] an array of seismograms to
be removedpublic boolean contains(DataSetSeismogram seismo)
DataSetSeismogramReceptaclecontains checks the receptacle for the presence of seismocontains in interface DataSetSeismogramReceptacleseismo - the seismogram whose presence is to be testedpublic void clear()
DataSetSeismogramReceptacleclear removes all seismograms from this receptacleclear in interface DataSetSeismogramReceptaclepublic DataSetSeismogram[] getSeismograms()
DataSetSeismogramReceptaclegetSeismograms in interface DataSetSeismogramReceptaclepublic java.lang.String getLabel()
getLabel in interface LayoutConfigpublic void reset()
DataSetSeismogramReceptaclereset in interface DataSetSeismogramReceptaclepublic void reset(DataSetSeismogram[] seismos)
DataSetSeismogramReceptaclereset 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 DataSetSeismogramReceptacleseismos - a DataSetSeismogram[] value containing
seismograms to be resetpublic double getScale()
getScale in interface LayoutConfigpublic void setScale(double scale)
setScale in interface LayoutConfigscale - -
the factor by which the seismogram height is multipliedpublic LayoutEvent generateLayoutEvent()
generateLayoutEvent in interface LayoutConfigpublic LayoutEvent getLayout()
getLayout in interface LayoutConfig