public class ClickEventLocaliserControl extends AbstractLocaliserControl implements LocaliserControlModel
Modifier and Type | Class and Description |
---|---|
class |
ClickEventLocaliserControl.ClickPlotPanelEvent
Creates a plot of the current click waveform.
|
Constructor and Description |
---|
ClickEventLocaliserControl(StaticLocaliserControl staticLocaliserControl) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLocalise(PamDetection pamDetection)
Checks to see if this pamDetection can be localised.
|
void |
changeSelectedClick(int click)
Changes the comboBox, clickPlot and current data to the ith of the current datablock
|
int[] |
getChannelMap()
Had to implement this as offline datablocks had problems with channel maps.
|
PamDetection |
getCurrentDetection() |
java.util.ArrayList<PamDetection> |
getCurrentDetections() |
java.lang.Integer |
getDetectionType()
return a flag to calculate what subset of detections to classify.
|
java.lang.String |
getLocaliserPanelName() |
PamPanel |
getPanel() |
StaticLocalisationMainPanel |
getStaticMainPanel()
Get the static main panel that this component belongs to.
|
void |
loadData(long timeStart,
long timeEnd)
Refresh all the data in the control panel.
|
static void |
paintPLineSpectrum(java.awt.Graphics2D g2,
double[][] waveform2d,
java.awt.Rectangle r) |
static java.lang.Object[] |
setClickClassifiactionList(ClickControl clickControl) |
void |
setClickDetectionList(java.util.ArrayList<OfflineEventDataUnit> selectedEvents)
Make a list of all the clicks selected in the event table and which have been classified as the selected species.
|
void |
setCurrentDetection(PamDetection pamDetection)
Set the current detection.
|
void |
setDetectionListComboBox()
Resets the combo box to the latest list
|
void |
update(int flag)
Update the dialog.
|
enableComponents, getLayerPanel, isPaused, notifyDetectionUpdate, setlayerPanelEnabled, updatePanelsDetectionUpdate
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPaused
public ClickEventLocaliserControl(StaticLocaliserControl staticLocaliserControl)
public void changeSelectedClick(int click)
click
- public void setDetectionListComboBox()
public void setClickDetectionList(java.util.ArrayList<OfflineEventDataUnit> selectedEvents)
selectedEvents
- public static java.lang.Object[] setClickClassifiactionList(ClickControl clickControl)
public java.lang.String getLocaliserPanelName()
getLocaliserPanelName
in class AbstractLocaliserControl
public static void paintPLineSpectrum(java.awt.Graphics2D g2, double[][] waveform2d, java.awt.Rectangle r)
public PamPanel getPanel()
public void setCurrentDetection(PamDetection pamDetection)
SLPanel
setCurrentDetection
in interface SLPanel
public void loadData(long timeStart, long timeEnd)
LocaliserControlModel
loadData
in interface LocaliserControlModel
public PamDetection getCurrentDetection()
getCurrentDetection
in interface LocaliserControlModel
public java.util.ArrayList<PamDetection> getCurrentDetections()
getCurrentDetections
in interface LocaliserControlModel
public java.lang.Integer getDetectionType()
LocaliserControlModel
getDetectionType
in interface LocaliserControlModel
public void update(int flag)
SLPanel
public StaticLocalisationMainPanel getStaticMainPanel()
SLPanel
getStaticMainPanel
in interface SLPanel
public boolean canLocalise(PamDetection pamDetection)
LocaliserControlModel
canLocalise
in interface LocaliserControlModel
public int[] getChannelMap()
LocaliserControlModel
getChannelMap
in interface LocaliserControlModel