com.elvyx.client.guicomp
Class GUIFactory

java.lang.Object
  extended by com.elvyx.client.guicomp.GUIFactory
All Implemented Interfaces:
Factory

public class GUIFactory
extends java.lang.Object
implements Factory

GUI factory. It return the object needed to create the gui.

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Armando Perdomo

Constructor Summary
GUIFactory()
           
 
Method Summary
 javax.swing.Box getBox()
          It return a reference to Box object.
 javax.swing.JComboBox getComboBox()
          Return the combo to filter the sql statements
 javax.swing.JPanel getDetailChartPanel()
          It return the panel for DetailChart
 javax.swing.JTable getDetailTable()
          It return the table for DetailTable
 javax.swing.JDialog getDialog()
          Return the dialog with parameters
 javax.swing.JDialog getElvyxURL()
          Return the dialog with parameters
static Factory getInstance()
          Return the GUIFactory reference
 javax.swing.JMenuBar getMenu(javax.swing.JFrame frame)
          Return the menu
 javax.swing.JPanel getNormalDistChartPanel()
          It return the panel for Normal dist Chart
 javax.swing.JPanel getPieChartPanel()
          It return the jpanel for PieChart
 DataRead getReadableComboBox()
          Return the last item in combo box chosen
 DataRead getReadableTable()
           
 DataRead getReadableToolBar()
           
 javax.swing.JTabbedPane getTab()
          Return the tab object where are the pie chart, text area to copy the sql statements and gaussian distribution chart
 javax.swing.JPanel getTabChartPanel()
          Return the pie chart tab
 javax.swing.JPanel getTabDataPanel()
          Return the text area tab used to copy the sql statements
 javax.swing.JPanel getTabDetailChartPanel()
          Return the tab with detail data, gaussian dist
 javax.swing.JTable getTable()
          Return the table where are the prepared and sql statements
 javax.swing.JToolBar getToolBar()
          It return the toolbar including the combo box, the text field and filter button
 DataWrite getWriteableBox()
          It return a dataWrite reference to Box object.
 DataWrite getWriteableDetailChart()
          It return the values for DetailChart
 DataWrite getWriteableDetailTable()
          It return the values for Detail table
 DataWrite getWriteableNormalDistChart()
          It return the values for Normal dist
 DataWrite getWriteablePieChart()
          It return the jpanel for PieChart
 DataWrite getWriteableTable()
          Return the table reference following DataWrite interface.
 DataWrite getWriteableToolBar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIFactory

public GUIFactory()
Method Detail

getInstance

public static Factory getInstance()
Return the GUIFactory reference


getMenu

public javax.swing.JMenuBar getMenu(javax.swing.JFrame frame)
Return the menu

Specified by:
getMenu in interface Factory

getComboBox

public javax.swing.JComboBox getComboBox()
Return the combo to filter the sql statements

Specified by:
getComboBox in interface Factory

getReadableComboBox

public DataRead getReadableComboBox()
Return the last item in combo box chosen

Specified by:
getReadableComboBox in interface Factory

getBox

public javax.swing.Box getBox()
It return a reference to Box object. This object includes two text areas with the prepared statements and sql statements. It allows the user see better the information and copy it.

Specified by:
getBox in interface Factory
Returns:
The reference to the box object.

getWriteableBox

public DataWrite getWriteableBox()
It return a dataWrite reference to Box object.

Specified by:
getWriteableBox in interface Factory
Returns:
The reference to the box object.

getTab

public javax.swing.JTabbedPane getTab()
Return the tab object where are the pie chart, text area to copy the sql statements and gaussian distribution chart

Specified by:
getTab in interface Factory

getPieChartPanel

public javax.swing.JPanel getPieChartPanel()
It return the jpanel for PieChart

Specified by:
getPieChartPanel in interface Factory
Returns:
JPanel

getWriteablePieChart

public DataWrite getWriteablePieChart()
It return the jpanel for PieChart

Specified by:
getWriteablePieChart in interface Factory
Returns:
Data PieChart values

getToolBar

public javax.swing.JToolBar getToolBar()
It return the toolbar including the combo box, the text field and filter button

Specified by:
getToolBar in interface Factory

getReadableToolBar

public DataRead getReadableToolBar()
Specified by:
getReadableToolBar in interface Factory

getWriteableToolBar

public DataWrite getWriteableToolBar()
Specified by:
getWriteableToolBar in interface Factory

getTable

public javax.swing.JTable getTable()
Return the table where are the prepared and sql statements

Specified by:
getTable in interface Factory
Returns:
JPanel

getWriteableTable

public DataWrite getWriteableTable()
Return the table reference following DataWrite interface. It allows set values to this table

Specified by:
getWriteableTable in interface Factory
Returns:
Data Table values

getReadableTable

public DataRead getReadableTable()
Specified by:
getReadableTable in interface Factory

getTabChartPanel

public javax.swing.JPanel getTabChartPanel()
Return the pie chart tab

Specified by:
getTabChartPanel in interface Factory

getTabDataPanel

public javax.swing.JPanel getTabDataPanel()
Return the text area tab used to copy the sql statements

Specified by:
getTabDataPanel in interface Factory

getTabDetailChartPanel

public javax.swing.JPanel getTabDetailChartPanel()
Return the tab with detail data, gaussian dist

Specified by:
getTabDetailChartPanel in interface Factory

getDetailTable

public javax.swing.JTable getDetailTable()
It return the table for DetailTable

Specified by:
getDetailTable in interface Factory
Returns:
JTable

getWriteableDetailTable

public DataWrite getWriteableDetailTable()
It return the values for Detail table

Specified by:
getWriteableDetailTable in interface Factory
Returns:
Data DetailTable values

getDetailChartPanel

public javax.swing.JPanel getDetailChartPanel()
It return the panel for DetailChart

Specified by:
getDetailChartPanel in interface Factory
Returns:
JPanel

getWriteableDetailChart

public DataWrite getWriteableDetailChart()
It return the values for DetailChart

Specified by:
getWriteableDetailChart in interface Factory
Returns:
Data DetailChart values

getNormalDistChartPanel

public javax.swing.JPanel getNormalDistChartPanel()
It return the panel for Normal dist Chart

Specified by:
getNormalDistChartPanel in interface Factory
Returns:
JPanel

getWriteableNormalDistChart

public DataWrite getWriteableNormalDistChart()
It return the values for Normal dist

Specified by:
getWriteableNormalDistChart in interface Factory
Returns:
Data DetailChart values

getDialog

public javax.swing.JDialog getDialog()
Return the dialog with parameters

Specified by:
getDialog in interface Factory

getElvyxURL

public javax.swing.JDialog getElvyxURL()
Return the dialog with parameters

Specified by:
getElvyxURL in interface Factory


Copyright © 2006-2008 Armando Perdomo. All Rights Reserved.