Class QbChartDesigner

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

public class QbChartDesigner extends Object
  • Constructor Details

    • QbChartDesigner

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

      public QbChartDesigner(Object parent)
    • QbChartDesigner

      public QbChartDesigner(Object parent, String chtFile)
    • QbChartDesigner

      public QbChartDesigner(Object parent, String chtFile, String[] imagesPath)
    • QbChartDesigner

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

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

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

      public QbChartDesigner(Object parent, String dataRegistry, boolean newChart)
    • QbChartDesigner

      public QbChartDesigner(Object parent, String dataRegistry, boolean newChart, String[] imagesPath)
  • Method Details

    • setDebugMode

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

      public static void setDebugMode(String mode)
      set debug mode to display debug statement
    • setDataRegistry

      public void setDataRegistry(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 JFrame getDesigner()
    • setVisible

      public void setVisible(boolean b)
    • login

      public void login(String userName, 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(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(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 JMenuBar getChartMenuBar()
    • getChartToolBar

      public JToolBar getChartToolBar()
    • dispose

      public void dispose()
    • saveAs

      public void saveAs()
    • save

      public void save()
    • save

      public void save(String fileLocation)
    • exit

      public boolean exit() throws Exception
      Throws:
      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(String[] names)
      Internal use only. Specify a preset list of parameters to be used when defining parameters in a query.
    • getDefaultParamNames

      public String[] getDefaultParamNames()
    • addDataSourceManagerListener

      public void addDataSourceManagerListener(DataSourceManagerListener listener)
    • removeDataSourceManagerListener

      public void removeDataSourceManagerListener(DataSourceManagerListener listener)
    • setServerAddress

      public static void setServerAddress(String address) throws 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:
      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(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(String context)
    • getServletContext

      public static String getServletContext()
      return servlet context
    • setServletRunner

      public static void setServletRunner(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(String path)
    • setBackgroundImagePath

      public static void setBackgroundImagePath(String path)