alma::acs::logging::archive::zoom::ManualZoomDlg Class Reference

Inheritance diagram for alma::acs::logging::archive::zoom::ManualZoomDlg:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::archive::zoom::ManualZoomDlg:
Collaboration graph
[legend]

List of all members.

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")

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::archive::zoom::ManualZoomDlg::ManualZoomDlg ( LoggingClient  owner,
ZoomManager  manager 
) [inline]

Member Function Documentation

void alma::acs::logging::archive::zoom::ManualZoomDlg::actionPerformed ( ActionEvent  e  )  [inline]
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]

Init the GUI

References doneBtn, fromDTC, loadBtn, statusLbl, stopBtn, and toDTC.

Referenced by ManualZoomDlg().

void alma::acs::logging::archive::zoom::ManualZoomDlg::logEntryReceived ( ILogEntry  logEntry  )  [inline]
void alma::acs::logging::archive::zoom::ManualZoomDlg::run (  )  [inline]
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]
void alma::acs::logging::archive::zoom::ManualZoomDlg::zoomTotalFileToRead ( int  num  )  [inline]

Member Data Documentation

final JButton alma::acs::logging::archive::zoom::ManualZoomDlg::doneBtn = new JButton("Done") [private]

The button to close the dialog

Referenced by actionPerformed(), and initialize().

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().

Number of logs read (shown in the status line)

Referenced by logEntryReceived(), run(), and zoomReadingFile().

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().

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().

The widget to get the end date of loading

Referenced by initialize(), and run().

The ZoomManager to load logs.

Referenced by actionPerformed(), ManualZoomDlg(), and run().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2