org.vigia.client.gui.view
Interface View

All Known Implementing Classes:
Panel

public interface View

The view of the application

Version:
1.0 (16/11/08)
Author:
Ada & Toshi

Field Summary
static java.lang.String ActCmdADVOPC_CANCEL
          Constant for Action Command in controller.
static java.lang.String ActCmdADVOPC_OK
          Constant for Action Command in controller.
static java.lang.String ActCmdCONN_ADVOPC
          Constant for Action Command in controller.
static java.lang.String ActCmdCONN_CANCEL
          Constant for Action Command in controller.
static java.lang.String ActCmdCONN_OK
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_ABOUT
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_CLOSE
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_CONFIG
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_CONN
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_DISC
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_SCRSHOT
          Constant for Action Command in controller.
static java.lang.String ActCmdPANEL_SHOWLOG
          Constant for Action Command in controller.
static java.lang.String ActCmdSCRSHOT_CANCEL
          Constant for Action Command in controller.
static java.lang.String ActCmdSCRSHOT_OK
          Constant for Action Command in controller.
 
Method Summary
 void closeAdvancedConnectionSettingsPanel()
          Close the dialog box to change the advanced setting of the connection.
 void closeConnectToServerPanel()
          Close the dialog box to connect to a server.
 void closeGetScreenShotPanel()
          Close the dialog box for getting a screen shot.
 void controller(Controller ctr)
          Adds the controller ctr to all the buttons of the View
 java.lang.String getControlPort()
          Gets the control port from a dialog box.
 java.lang.String getDataPort()
          Gets the data port from a dialog box.
 java.awt.image.BufferedImage getImage()
          Gets a screenshot of the video.
 java.lang.String getIPServer()
          Gets the IP address of the server from a dialog box.
 java.lang.String getResolution()
          Gets the desired resolution of the screen.
 java.lang.String getScreenShotURL()
          Gets the url where the screenshot will be saved.
 void reloadLog()
          Reloads the log file.
 void setStatusInfo(java.lang.String status)
          Changes the status message.
 boolean showAboutInfo()
          Shows information about the application.
 void showAdvancedConnectionSettingsPanel()
          Shows the dialog box to change the advanced setting of the connection.
 void showConnectToServerPanel()
          Shows the dialog box to connect to a server.
 void showGetScreenShotPanel()
          Shows the dialog box for getting a screen shot.
 boolean showImage(java.awt.image.BufferedImage frame)
          Shows an image in the panel.
 boolean showLog()
          Reads a log file and shows its content in a added window.
 

Field Detail

ActCmdPANEL_CONN

static final java.lang.String ActCmdPANEL_CONN
Constant for Action Command in controller. Panel: CONNECT

See Also:
Constant Field Values

ActCmdPANEL_DISC

static final java.lang.String ActCmdPANEL_DISC
Constant for Action Command in controller. Panel: DISCONNECT

See Also:
Constant Field Values

ActCmdPANEL_CLOSE

static final java.lang.String ActCmdPANEL_CLOSE
Constant for Action Command in controller. Panel: CLOSE

See Also:
Constant Field Values

ActCmdPANEL_CONFIG

static final java.lang.String ActCmdPANEL_CONFIG
Constant for Action Command in controller. Panel: SHOW CONFIG PANEL

See Also:
Constant Field Values

ActCmdPANEL_SCRSHOT

static final java.lang.String ActCmdPANEL_SCRSHOT
Constant for Action Command in controller. Panel: SHOW SCREENSHOT

See Also:
Constant Field Values

ActCmdPANEL_SHOWLOG

static final java.lang.String ActCmdPANEL_SHOWLOG
Constant for Action Command in controller. Panel: SHOW LOG

See Also:
Constant Field Values

ActCmdPANEL_ABOUT

static final java.lang.String ActCmdPANEL_ABOUT
Constant for Action Command in controller. Panel: SHOW ABOUT

See Also:
Constant Field Values

ActCmdCONN_OK

static final java.lang.String ActCmdCONN_OK
Constant for Action Command in controller. Connection dialog: OK

See Also:
Constant Field Values

ActCmdCONN_CANCEL

static final java.lang.String ActCmdCONN_CANCEL
Constant for Action Command in controller. Connection dialog: CANCEL

See Also:
Constant Field Values

ActCmdCONN_ADVOPC

static final java.lang.String ActCmdCONN_ADVOPC
Constant for Action Command in controller. Connection dialog: ADVANCED OPTIONS

See Also:
Constant Field Values

ActCmdADVOPC_OK

static final java.lang.String ActCmdADVOPC_OK
Constant for Action Command in controller. Advanced Option dialog: OK

See Also:
Constant Field Values

ActCmdADVOPC_CANCEL

static final java.lang.String ActCmdADVOPC_CANCEL
Constant for Action Command in controller. Advanced Option dialog: CANCEL

See Also:
Constant Field Values

ActCmdSCRSHOT_CANCEL

static final java.lang.String ActCmdSCRSHOT_CANCEL
Constant for Action Command in controller. Screen Shot dialog: CANCEL

See Also:
Constant Field Values

ActCmdSCRSHOT_OK

static final java.lang.String ActCmdSCRSHOT_OK
Constant for Action Command in controller. Screen Shot dialog: OK

See Also:
Constant Field Values
Method Detail

showConnectToServerPanel

void showConnectToServerPanel()
                              throws VigiaClientException
Shows the dialog box to connect to a server.

Throws:
VigiaClientException - error from the View.

closeConnectToServerPanel

void closeConnectToServerPanel()
                               throws VigiaClientException
Close the dialog box to connect to a server.

Throws:
VigiaClientException - error from the View.

showAdvancedConnectionSettingsPanel

void showAdvancedConnectionSettingsPanel()
                                         throws VigiaClientException
Shows the dialog box to change the advanced setting of the connection.

Throws:
VigiaClientException - error from the View.

closeAdvancedConnectionSettingsPanel

void closeAdvancedConnectionSettingsPanel()
                                          throws VigiaClientException
Close the dialog box to change the advanced setting of the connection.

Throws:
VigiaClientException - error from the View.

getIPServer

java.lang.String getIPServer()
                             throws VigiaClientException
Gets the IP address of the server from a dialog box.

Returns:
IP address.
Throws:
VigiaClientException - error from the View.

getDataPort

java.lang.String getDataPort()
                             throws VigiaClientException
Gets the data port from a dialog box. The data port is used to receive the images from the server.

Returns:
Data port.
Throws:
VigiaClientException - error from the View.

getControlPort

java.lang.String getControlPort()
                                throws VigiaClientException
Gets the control port from a dialog box. The control port is used to send commands and receive status messages.

Returns:
Control port.
Throws:
VigiaClientException - error from the View.

getResolution

java.lang.String getResolution()
                               throws VigiaClientException
Gets the desired resolution of the screen.

Returns:
Resolution in the form AxB.
Throws:
VigiaClientException - error from the View.

showImage

boolean showImage(java.awt.image.BufferedImage frame)
                  throws VigiaClientException
Shows an image in the panel.

Parameters:
frame - the image to show.
Returns:
true if it was successful, false in another case.
Throws:
VigiaClientException - error from the View.

getImage

java.awt.image.BufferedImage getImage()
                                      throws VigiaClientException
Gets a screenshot of the video.

Returns:
a frame.
Throws:
VigiaClientException - error from the View.

showGetScreenShotPanel

void showGetScreenShotPanel()
                            throws VigiaClientException
Shows the dialog box for getting a screen shot.

Throws:
VigiaClientException - error from the View.

closeGetScreenShotPanel

void closeGetScreenShotPanel()
                             throws VigiaClientException
Close the dialog box for getting a screen shot.

Throws:
VigiaClientException - error from the View.

getScreenShotURL

java.lang.String getScreenShotURL()
                                  throws VigiaClientException
Gets the url where the screenshot will be saved.

Returns:
an url.
Throws:
VigiaClientException - error from the View.

showLog

boolean showLog()
                throws VigiaClientException
Reads a log file and shows its content in a added window.

Returns:
true if it was successful, false in another case.
Throws:
VigiaClientException - error from the View.

showAboutInfo

boolean showAboutInfo()
                      throws VigiaClientException
Shows information about the application.

Returns:
true if it was successful, false in another case.
Throws:
VigiaClientException - error from the View.

controller

void controller(Controller ctr)
Adds the controller ctr to all the buttons of the View

Parameters:
ctr - the controller.

setStatusInfo

void setStatusInfo(java.lang.String status)
Changes the status message.

Parameters:
status - The status message.

reloadLog

void reloadLog()
               throws VigiaClientException
Reloads the log file.

Throws:
VigiaClientException - error from the View.