EspressReport 6.6

quadbase.chart.designer
Class QbChartDesigner

java.lang.Object
  extended by quadbase.chart.designer.QbChartDesigner

public class QbChartDesigner
extends java.lang.Object


Constructor Summary
QbChartDesigner(java.lang.Object parent)
           
QbChartDesigner(java.lang.Object parent, quadbase.chart.designer.ChartMain chartMain)
          Internal use only
QbChartDesigner(java.lang.Object parent, quadbase.common.util.internal.DBInfoBasic dbInfo, boolean newChart)
           
QbChartDesigner(java.lang.Object parent, quadbase.common.util.internal.DBInfoBasic dbInfo, quadbase.common.paramquery.QueryInParamSet inSet, boolean newChart)
           
QbChartDesigner(java.lang.Object parent, quadbase.common.util.internal.DBInfoBasic dbInfo, quadbase.common.paramquery.QueryInParamSet inSet, boolean newChart, java.lang.String[] imagesPath)
           
QbChartDesigner(java.lang.Object parent, java.lang.String chtFile)
           
QbChartDesigner(java.lang.Object parent, java.lang.String dataRegistry, boolean newChart)
           
QbChartDesigner(java.lang.Object parent, java.lang.String dataRegistry, boolean newChart, java.lang.String[] imagesPath)
           
QbChartDesigner(java.lang.Object parent, java.lang.String chtFile, java.lang.String[] imagesPath)
           
 
Method Summary
 void addDataSourceManagerListener(DataSourceManagerListener listener)
           
 void dispose()
           
 boolean exit()
           
 BrowseDirectories getBrowseDirectories()
          Gets a BrowseDirectories object that can be used to set the default browsing directories for different browse dialogs.
 javax.swing.JMenuBar getChartMenuBar()
           
 javax.swing.JToolBar getChartToolBar()
           
 java.lang.String[] getDefaultParamNames()
           
 javax.swing.JFrame getDesigner()
           
static java.lang.String getServletContext()
          return servlet context
 boolean isExitOnCancel()
           
 boolean isSaveOnExitEnabled()
           
 void login(java.lang.String designerPassword)
          if QbDesignerPassword is required for server, using [-QbDesignerPassword] flag please pass in QbDesigner password to login QbReportDesigner before calling setVisible(...) or getDesigner(...) methods
 void login(java.lang.String userName, java.lang.String password)
          if server requires login, using [-RequireLogin] flag please pass in userName and password to login QbReportDesigner before calling setVisible(...) or getDesigner(...) methods
 void removeDataSourceManagerListener(DataSourceManagerListener listener)
           
 void save()
           
 void save(java.lang.String fileLocation)
           
 void saveAs()
           
static void setBackgroundImagePath(java.lang.String path)
           
 void setByPassSaveAsIO(IByPassSaveAsForChart saveAsIO)
          Sets by pass save as IO by implementing IByPassSaveAsForChart interface
 void setChartIO(IChartIO chartIO)
          Sets where and how charts gets saved by passing in an argument chartIO that holds information on how to perform chart file IO.
 void setDataRegistry(java.lang.String dataRegistry)
           
static void setDebugMode(int mode)
          set debug mode to display debug statement
static void setDebugMode(java.lang.String mode)
          set debug mode to display debug statement
 void setDefaultParamNames(java.lang.String[] names)
          Internal use only.
 void setExitOnCancel(boolean state)
           
static void setImagePath(java.lang.String path)
           
 void setRootDirectoryForBrowse(java.lang.String browseRoot)
          Sets a root directory for the user.
 void setSaveOnExitEnabled(boolean b)
           
static void setServerAddress(java.lang.String address)
          Set the server address of EspressManager.
static void setServerHosts(java.util.Vector hostnames)
          Set the list of host names for EspressManager when tunneling is used.
static void setServerPortNumber(int port)
          Set the port number of EspressManager.
static void setServletContext(java.lang.String context)
           
static void setServletRunner(java.lang.String comm_url)
          Set servlet runner hostname and port number Note: this static method MUST be called before any QbChart constructor
 void setVisible(boolean b)
           
static void useServlet(boolean b)
          Determines whether to use SOCKET or HTTP or SERVLET for chart server connection Note that this static method MUST be called before any QbChart constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       quadbase.chart.designer.ChartMain chartMain)
Internal use only


QbChartDesigner

public QbChartDesigner(java.lang.Object parent)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       java.lang.String chtFile)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       java.lang.String chtFile,
                       java.lang.String[] imagesPath)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       quadbase.common.util.internal.DBInfoBasic dbInfo,
                       boolean newChart)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       quadbase.common.util.internal.DBInfoBasic dbInfo,
                       quadbase.common.paramquery.QueryInParamSet inSet,
                       boolean newChart)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       quadbase.common.util.internal.DBInfoBasic dbInfo,
                       quadbase.common.paramquery.QueryInParamSet inSet,
                       boolean newChart,
                       java.lang.String[] imagesPath)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       java.lang.String dataRegistry,
                       boolean newChart)

QbChartDesigner

public QbChartDesigner(java.lang.Object parent,
                       java.lang.String dataRegistry,
                       boolean newChart,
                       java.lang.String[] imagesPath)
Method Detail

setDebugMode

public static void setDebugMode(int mode)
set debug mode to display debug statement


setDebugMode

public static void setDebugMode(java.lang.String mode)
set debug mode to display debug statement


setDataRegistry

public void setDataRegistry(java.lang.String dataRegistry)

setChartIO

public void setChartIO(IChartIO chartIO)
Sets where and how charts gets saved by passing in an argument chartIO that holds information on how to perform chart file IO.


setByPassSaveAsIO

public void setByPassSaveAsIO(IByPassSaveAsForChart saveAsIO)
Sets by pass save as IO by implementing IByPassSaveAsForChart interface


getDesigner

public javax.swing.JFrame getDesigner()

setVisible

public void setVisible(boolean b)

login

public void login(java.lang.String userName,
                  java.lang.String password)
if server requires login, using [-RequireLogin] flag please pass in userName and password to login QbReportDesigner before calling setVisible(...) or getDesigner(...) methods


login

public void login(java.lang.String designerPassword)
if QbDesignerPassword is required for server, using [-QbDesignerPassword] flag please pass in QbDesigner password to login QbReportDesigner before calling setVisible(...) or getDesigner(...) methods


setRootDirectoryForBrowse

public void setRootDirectoryForBrowse(java.lang.String browseRoot)
Sets a root directory for the user. The user is prohibited from browsing any directory above the root directory.


getBrowseDirectories

public BrowseDirectories getBrowseDirectories()
Gets a BrowseDirectories object that can be used to set the default browsing directories for different browse dialogs.


getChartMenuBar

public javax.swing.JMenuBar getChartMenuBar()

getChartToolBar

public javax.swing.JToolBar getChartToolBar()

dispose

public void dispose()

saveAs

public void saveAs()

save

public void save()

save

public void save(java.lang.String fileLocation)

exit

public boolean exit()
             throws java.lang.Exception
Throws:
java.lang.Exception

setExitOnCancel

public void setExitOnCancel(boolean state)

isExitOnCancel

public boolean isExitOnCancel()

setSaveOnExitEnabled

public void setSaveOnExitEnabled(boolean b)

isSaveOnExitEnabled

public boolean isSaveOnExitEnabled()

setDefaultParamNames

public void setDefaultParamNames(java.lang.String[] names)
Internal use only. Specify a preset list of parameters to be used when defining parameters in a query.


getDefaultParamNames

public java.lang.String[] getDefaultParamNames()

addDataSourceManagerListener

public void addDataSourceManagerListener(DataSourceManagerListener listener)

removeDataSourceManagerListener

public void removeDataSourceManagerListener(DataSourceManagerListener listener)

setServerAddress

public static void setServerAddress(java.lang.String address)
                             throws java.net.UnknownHostException
Set the server address of EspressManager. Use this address instead of the one provided in the espressmanager.cfg file. It also eliminates the need of the espressmanager.cfg file in the working directory.

Throws:
java.net.UnknownHostException

setServerPortNumber

public static void setServerPortNumber(int port)
Set the port number of EspressManager. Use this port number instead of the one provided in the espressmanager.cfg file. It also eliminates the need of the espressmanager.cfg file in the working directory.


setServerHosts

public static void setServerHosts(java.util.Vector hostnames)
Set the list of host names for EspressManager when tunneling is used. Use these hosts along with the ones provided in the espressmanager.cfg file. If the espressmanager.cfg file is not present, then only these hosts will be used.


setServletContext

public static void setServletContext(java.lang.String context)

getServletContext

public static java.lang.String getServletContext()
return servlet context


setServletRunner

public static void setServletRunner(java.lang.String comm_url)
Set servlet runner hostname and port number Note: this static method MUST be called before any QbChart constructor

Parameters:
comm_url - servlet runner hostname and port number

useServlet

public static void useServlet(boolean b)
Determines whether to use SOCKET or HTTP or SERVLET for chart server connection Note that this static method MUST be called before any QbChart constructor.

Parameters:
b - If true use SERVLET connection, otherwise use other connection The default value is false.

setImagePath

public static void setImagePath(java.lang.String path)

setBackgroundImagePath

public static void setBackgroundImagePath(java.lang.String path)

EspressReport 6.6