

Public Member Functions | |
| ManualZoomDlg (LoggingClient owner, ZoomManager manager) | |
| void | setVisible (boolean visible) |
| void | close () |
| void | actionPerformed (ActionEvent e) |
| void | run () |
| void | zoomReadingFile (int num) |
| void | zoomTotalFileToRead (int num) |
| void | logEntryReceived (ILogEntry logEntry) |
Public Attributes | |
| Thread | thread = null |
Private Member Functions | |
| void | initialize () |
Private Attributes | |
| final LoggingClient | loggingClient |
| final ZoomManager | zoomer |
| DateTimeChooser | fromDTC = new DateTimeChooser() |
| DateTimeChooser | toDTC = new DateTimeChooser() |
| final JButton | loadBtn = new JButton("Load") |
| final JButton | stopBtn = new JButton("Stop") |
| final JLabel | statusLbl = new JLabel("Ready") |
| int | numOfFiles = 0 |
| int | logsRead = 0 |
| final Timer | timer = new Timer(5000,this) |
| final JButton | doneBtn = new JButton("Done") |
The dialog to zoom giving a time interval.
ManualZoomDlg allows to read logs from a set of files even if the table is empty or does not contain logs in the time interval the user wants to investigate.
Zoom preferences are not modifiable from this dialog: the user must open the zoom preferences dialog instead.
| alma::acs::logging::archive::zoom::ManualZoomDlg::ManualZoomDlg | ( | LoggingClient | owner, | |
| ZoomManager | manager | |||
| ) | [inline] |
References initialize(), loggingClient, setVisible(), timer, and zoomer.
| void alma::acs::logging::archive::zoom::ManualZoomDlg::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References doneBtn, loadBtn, setVisible(), statusLbl, stopBtn, alma::acs::logging::archive::zoom::ZoomManager::stopZoom(), thread, timer, and zoomer.
| void alma::acs::logging::archive::zoom::ManualZoomDlg::close | ( | ) | [inline] |
Close the dialog
References setVisible(), and timer.
Referenced by com::cosylab::logging::LoggingClient::close().
| void alma::acs::logging::archive::zoom::ManualZoomDlg::initialize | ( | ) | [inline, private] |
| void alma::acs::logging::archive::zoom::ManualZoomDlg::logEntryReceived | ( | ILogEntry | logEntry | ) | [inline] |
Implements com::cosylab::logging::engine::ACS::ACSRemoteLogListener.
References com::cosylab::logging::LoggingClient::logEntryReceived(), loggingClient, and logsRead.
| void alma::acs::logging::archive::zoom::ManualZoomDlg::run | ( | ) | [inline] |
The thread to load the logs in the given interval
References fromDTC, com::cosylab::gui::components::r2::DateTimeChooser::getDate(), alma::acs::logging::archive::zoom::ZoomManager::isAvailable(), alma::acs::logging::archive::zoom::ZoomManager::isLoadingLogs(), loadBtn, loggingClient, logsRead, numOfFiles, statusLbl, stopBtn, timer, toDTC, alma::acs::logging::archive::zoom::ZoomManager::zoom(), and zoomer.
| void alma::acs::logging::archive::zoom::ManualZoomDlg::setVisible | ( | boolean | visible | ) | [inline] |
Override setVisible() to move the dialog over the logging client and in front of other windows
References loggingClient.
Referenced by actionPerformed(), com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), close(), and ManualZoomDlg().
| void alma::acs::logging::archive::zoom::ManualZoomDlg::zoomReadingFile | ( | int | num | ) | [inline] |
Implements alma::acs::logging::archive::zoom::ZoomProgressListener.
References logsRead, numOfFiles, and statusLbl.
| void alma::acs::logging::archive::zoom::ManualZoomDlg::zoomTotalFileToRead | ( | int | num | ) | [inline] |
Implements alma::acs::logging::archive::zoom::ZoomProgressListener.
References numOfFiles, and statusLbl.
final JButton alma::acs::logging::archive::zoom::ManualZoomDlg::doneBtn = new JButton("Done") [private] |
The button to close the dialog
Referenced by actionPerformed(), and initialize().
DateTimeChooser alma::acs::logging::archive::zoom::ManualZoomDlg::fromDTC = new DateTimeChooser() [private] |
The widget to get the start date of loading
Referenced by initialize(), and run().
final JButton alma::acs::logging::archive::zoom::ManualZoomDlg::loadBtn = new JButton("Load") [private] |
The button to load logs
Referenced by actionPerformed(), initialize(), and run().
The logging client
Referenced by logEntryReceived(), ManualZoomDlg(), run(), and setVisible().
int alma::acs::logging::archive::zoom::ManualZoomDlg::logsRead = 0 [private] |
Number of logs read (shown in the status line)
Referenced by logEntryReceived(), run(), and zoomReadingFile().
int alma::acs::logging::archive::zoom::ManualZoomDlg::numOfFiles = 0 [private] |
Number of files to read
Referenced by run(), zoomReadingFile(), and zoomTotalFileToRead().
final JLabel alma::acs::logging::archive::zoom::ManualZoomDlg::statusLbl = new JLabel("Ready") [private] |
The label showing the progress of a loading
Referenced by actionPerformed(), initialize(), run(), zoomReadingFile(), and zoomTotalFileToRead().
final JButton alma::acs::logging::archive::zoom::ManualZoomDlg::stopBtn = new JButton("Stop") [private] |
The button stop current loading
Referenced by actionPerformed(), initialize(), and run().
| Thread alma::acs::logging::archive::zoom::ManualZoomDlg::thread = null |
The thread to load logs
Referenced by actionPerformed().
final Timer alma::acs::logging::archive::zoom::ManualZoomDlg::timer = new Timer(5000,this) [private] |
The timer to clean the status label
Referenced by actionPerformed(), close(), ManualZoomDlg(), and run().
DateTimeChooser alma::acs::logging::archive::zoom::ManualZoomDlg::toDTC = new DateTimeChooser() [private] |
The widget to get the end date of loading
Referenced by initialize(), and run().
final ZoomManager alma::acs::logging::archive::zoom::ManualZoomDlg::zoomer [private] |
The ZoomManager to load logs.
Referenced by actionPerformed(), ManualZoomDlg(), and run().
1.6.2