|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamController.PamControlledUnit
clickDetector.ClickControl
public class ClickControl
Main Controller for click detection.
ClickControl contains both the detector and the display panel. It also contains information on Detection and Display menus which will get added to the main PamGuard menu.
| Field Summary | |
|---|---|
protected AngleVetoes |
angleVetoes
|
protected ClickControl |
clickControl
|
protected ClickDetector |
clickDetector
|
protected ClickTabPanel |
clickPanel
|
protected ClickParameters |
clickParameters
|
protected ClickSidePanel |
clickSidePanel
|
protected ClickTrainDetector |
clickTrainDetector
|
protected JMenu |
rightMouseMenu
|
protected ClickTabPanelControl |
tabPanelControl
|
protected TrackedClickLocaliser |
trackedClickLocaliser
|
| Constructor Summary | |
|---|---|
ClickControl(String name)
|
|
| Method Summary | |
|---|---|
void |
addOtherRelatedMenuItems(Frame parentFrame,
JMenu menu,
String name)
|
protected void |
clickedOnClick(ClickDetection click)
|
JMenu |
createDetectionMenu(Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses |
JMenu |
createDisplayMenu(Frame parentFrame)
Create a JMenu object containing MenuItems associated with the view |
JMenuItem |
createHelpMenu(Frame parentFrame)
|
void |
displayTriggerHistogram(TriggerHistogram[] triggerHistogram)
|
PamDataBlock |
getClickDataBlock()
Get the datablock containing click data |
ClickDetector |
getClickDetector()
|
Serializable |
getSettingsReference()
|
long |
getSettingsVersion()
|
JMenuBar |
getTabSpecificMenuBar(Frame parentFrame,
JMenuBar standardMenu,
PamGui pamGui)
Create a tab specific menu to go with this PamControlledUnit. |
int |
getTrueChannelNumber(int iCh)
|
protected void |
newRawData(PamObservable source,
PamDataUnit data)
|
void |
notifyModelChanged(int changeType)
|
void |
notifyNewStorage(String storageName)
|
void |
pamStart()
|
void |
pamStop()
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
|
void |
secondTimer(long sampleNumber)
|
void |
setupControlledUnit()
called for all PamControlledUnits after all units have been created. |
| Methods inherited from class PamController.PamControlledUnit |
|---|
addPamProcess, addRelatedMenuItems, canClose, createFileMenu, getFrameNumber, getNumPamProcesses, getPamModuleInfo, getPamProcess, getPamView, getSidePanel, getTabPanel, getUnitName, getUnitType, gotoTab, pamHasStopped, pamToStart, removePamProcess, removeUnit, rename, setFrameNumber, setPamModuleInfo, setPamView, setSidePanel, setTabPanel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface PamController.PamSettings |
|---|
getUnitName, getUnitType |
| Field Detail |
|---|
protected ClickDetector clickDetector
protected ClickTrainDetector clickTrainDetector
protected TrackedClickLocaliser trackedClickLocaliser
protected ClickTabPanelControl tabPanelControl
protected ClickParameters clickParameters
protected JMenu rightMouseMenu
protected ClickTabPanel clickPanel
protected ClickControl clickControl
protected ClickSidePanel clickSidePanel
protected AngleVetoes angleVetoes
| Constructor Detail |
|---|
public ClickControl(String name)
| Method Detail |
|---|
public PamDataBlock getClickDataBlock()
public void secondTimer(long sampleNumber)
public int getTrueChannelNumber(int iCh)
public void displayTriggerHistogram(TriggerHistogram[] triggerHistogram)
public void notifyNewStorage(String storageName)
public JMenu createDetectionMenu(Frame parentFrame)
PamControlledUnit
createDetectionMenu in class PamControlledUnitparentFrame - The owner frame of the menu
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public JMenuItem createHelpMenu(Frame parentFrame)
createHelpMenu in class PamControlledUnitpublic JMenu createDisplayMenu(Frame parentFrame)
PamControlledUnit
createDisplayMenu in class PamControlledUnitNote that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void notifyModelChanged(int changeType)
notifyModelChanged in class PamControlledUnitpublic ClickDetector getClickDetector()
protected void newRawData(PamObservable source,
PamDataUnit data)
public void pamStart()
public void pamStop()
public long getSettingsVersion()
getSettingsVersion in interface PamSettingspublic Serializable getSettingsReference()
getSettingsReference in interface PamSettingspublic boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings in interface PamSettings
public JMenuBar getTabSpecificMenuBar(Frame parentFrame,
JMenuBar standardMenu,
PamGui pamGui)
PamControlledUnitDefault is to throw back the standard menu to be used. This function should clone the standard menu and then modify the clone (usually by replacing the Display sub menu)
getTabSpecificMenuBar in class PamControlledUnitstandardMenu - the standard menu for the Pam GUI.
public void addOtherRelatedMenuItems(Frame parentFrame,
JMenu menu,
String name)
addOtherRelatedMenuItems in class PamControlledUnitprotected void clickedOnClick(ClickDetection click)
public void setupControlledUnit()
PamControlledUnit
setupControlledUnit in class PamControlledUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||