EspressReport
v 5.5

quadbase.chart.designer
Class ChartMain

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--quadbase.chart.designer.ChartMain
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants, java.awt.event.WindowListener
Direct Known Subclasses:
ChartEditor

public class ChartMain
extends javax.swing.JFrame
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.WindowListener, java.awt.event.ComponentListener, javax.swing.event.ChangeListener

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  javax.swing.JMenuItem aboutitem
           
protected  java.awt.event.ActionListener actionListener
           
static java.lang.String BACKGROUND_IMG
           
static java.lang.String BEAN_CLOSE_QUESTION
           
 ChartPanel chartPanel
           
 ChartWizard chartWizard
           
static java.lang.String CLOSE_QUESTION
           
protected  javax.swing.JMenuItem closeitem
           
static int CM
           
 int currentLevel
           
 int displayUnit
           
protected  javax.swing.JMenu drillDownmenu
           
protected  javax.swing.JMenuItem exititem
           
protected  javax.swing.JMenuItem exportitem
           
static int height
           
protected  javax.swing.JMenuItem histogramitem
           
static int INCH
           
protected  boolean isForBean
           
protected  javax.swing.JMenuItem linkitem
           
protected  javax.swing.JMenu linkParamMenu
           
protected  boolean modified
          true if the design has been modified since the last save
protected  javax.swing.JMenuItem modifydataitem
           
protected  javax.swing.JMenuItem modifydbitem
           
protected  javax.swing.JMenuItem modifyparamitem
           
protected  javax.swing.JMenuItem modifysqlitem
           
protected  javax.swing.JMenuItem newitem
           
protected  javax.swing.JMenuItem openitem
           
protected  javax.swing.JMenuItem optionsitem
           
protected  javax.swing.JMenuItem orderingitem
           
 quadbase.common.swing.color.PatternPanel patternPanel
           
static int PIXEL
           
protected  javax.swing.JMenuItem refreshitem
           
static java.lang.String SAVE_QUESTION
           
protected  javax.swing.JMenuItem saveasitem
           
protected  javax.swing.JMenuItem saveitem
           
protected  javax.swing.JMenuItem schedulerefreshitem
           
protected  javax.swing.JMenuItem templateitem
           
protected  javax.swing.JMenuItem vieweritem
           
static int width
           
protected  javax.swing.JMenuItem zoomitem
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ChartMain(ChartPanel _chartPanel, java.lang.String query)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addActionListener(java.awt.event.ActionListener l)
           
 void addDataSourceManagerListener(DataSourceManagerListener listener)
           
 void addDrillDown()
           
 void addRecentColor(java.awt.Color newColor)
           
 void backToCurrentLevel()
           
 boolean canModify()
           
 void cleanup()
           
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 java.lang.String createDrillTemplateName()
          This function creates the name of the next drill-down template file.
 void disableNavControl()
           
 void displayDrillDown()
           
 void do_CloseChart()
           
protected  void do_disable()
           
 void do_drillGoToTop()
           
 void do_drillNext()
           
 void do_drillPrevious()
           
 void do_drillRemove()
           
 void do_drillRemoveAll()
           
protected  void do_enable()
           
 boolean do_exit()
           
 boolean do_exit(boolean checkWizard)
           
 boolean do_exit(boolean checkWizard, boolean showCancel)
           
 void do_HistogramOptions()
           
 void do_New()
           
 void do_Open()
           
 boolean do_openChart(java.lang.String file)
           
 boolean do_openChart(java.lang.String file, byte[] bytes)
           
protected  void do_Reload()
           
 void do_Save(boolean update)
           
 void do_TableDirection()
           
 void do_Titles()
           
 void do_ZoomOptions()
          This function loads the ZoomDialog which allows users to set the zoom options.
 void do_ZoomOptions(boolean isForDrillDown)
          param isForDrillDown Define this dialog box for zooming or drill down
 boolean doesTemplateFileExist(java.lang.String file)
          This function attempts to check if the template file exists.
 void doSaveDrillTemplate(quadbase.chart.Chart chart, java.lang.String file)
          This function saves the drill-down chart info into a new template file.
 boolean drawNewChart(quadbase.chart.ColData[] colData)
          This function takes a new coldata array and creates a new chart out of it.
 void enableNavControl()
           
 void enableNonDrillDownMenu(boolean enable)
          This function enables/disables certain menu items depending on whether a drill-down chart or a regular chart is displayed in the main window.
 void enableZoomHistOptions(boolean enable)
          This function enables zoom/histogram options based on whether a drill-down chart is displayed or not.
 java.lang.String getBackgroundImagesDir()
           
 java.lang.String getBrowseDialogDefaultDirectory()
           
 BrowseDirectories getBrowseDirectories()
           
 quadbase.datasourcemanager.manager.IChangeDataRegistry getChangeDataRegObj()
           
 quadbase.datasourcemanager.manager.IChangeDataRegistryPlus getChangeDataRegPlusObj()
           
 quadbase.chart.Chart getChart()
           
 java.lang.String getChartFile()
           
 javax.swing.JMenuBar getChartMenuBar()
           
 javax.swing.JToolBar getChartToolBar()
           
 java.util.Vector getDataRegistryHiddenNodes()
           
 java.lang.String[] getDefaultParamNames()
           
 java.lang.String getDrillDownName()
           
 javax.swing.JTree getDrillDownTree()
           
 java.lang.String getFileDialogDefaultDirectory()
           
 java.lang.String getLoginUser()
           
 java.lang.String getPath(java.lang.String loc)
           
 java.lang.String getPresetDataRegistry()
           
 quadbase.datasourcemanager.manager.Manager getPresetManager()
           
 java.awt.Color[] getRecentColorArray()
           
 java.util.Vector getRecentColors()
           
 java.lang.String getURL(java.lang.String file)
           
 boolean hasBean()
           
 void init()
           
 void insertFileToChartOrganizer(boolean insertXML)
          For EspressOrganizer Only ****************************** The following functions are extended by EspressChartEnterprise.quadbase.organizer.manager.ChartEditor.java
 void insertFileToChartOrganizer(java.lang.String fileLocation)
           
 boolean isChangeDataRegistryEnabled()
           
 boolean isFromOrganizer()
           
 boolean isModified()
           
 boolean isParameterizedChart()
           
protected  boolean isReportVersion()
          For EspressReport Only
protected  boolean isUsingReportToolBar()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 boolean launchAggregateDialog(boolean isSecondaryAxis, int categoryType, boolean changeTSChart)
          This function launches the AggregateDialog which allows users to enter the aggregation options.
 boolean launchAggregateDialog(boolean isSecondaryAxis, int categoryType, boolean changeTSChart, boolean showCancelButton, boolean isForDrillDown)
           
 void navigate(int direction)
           
 void nextDrillDown()
          This function is used to go to the next drill-down chart if one is defined.
 void nextDrillDownFromLegend(int x, int y)
           
 void onDocSave()
           
protected  boolean openNewChart(quadbase.chart.Chart newchart, java.lang.String file)
           
 void pickingData()
           
 void previousDrillDown()
          This function is used to go the previous drill-down chart if one exists.
 void removeActionListener(java.awt.event.ActionListener l)
           
 void removeDataSourceManagerListener(DataSourceManagerListener listener)
           
 void setBean(boolean bean)
           
 void setBrowseDirectories(BrowseDirectories browseDir)
           
 void setByPassSaveAsIO(IByPassSaveAsForChart saveAsCHT)
           
 void setChartIO(IChartIO chartIO)
          if ask is true , then it will pop up question dialog asking to save changes before exit , otherwise close right away .
 void setDataRegistryHiddenNodes(java.util.Vector vec)
           
 void setDrillDownName(java.lang.String dName)
           
 void setDrillDownTree(javax.swing.JTree t)
           
 void setFileName(java.lang.String name)
           
 void setFilenameToNull()
           
 void setFontMapping()
           
protected  void setHelpDocument(java.lang.String urlStr)
           
 void setLoginUser(java.lang.String username)
           
 void setModified()
          marks this design as modified
 void setNewChart(quadbase.chart.Chart newchart)
           
 void setPresetDataRegistry(java.lang.String dataReg)
           
 void setPresetManager(quadbase.datasourcemanager.manager.Manager manager)
           
 void setQbChartDesigner(QbChartDesigner qbDesigner)
           
 void setRecentColors(java.util.Vector colors)
           
 void setUnModified()
          marks this design as unmodified after design is explicitly save by user
 void setVisible(boolean x)
           
 boolean showNavButtons()
           
 void startNew()
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void updatePanelSize()
           
protected  boolean useReportData()
           
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 void zooming(double value)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

CLOSE_QUESTION

public static final java.lang.String CLOSE_QUESTION

SAVE_QUESTION

public static final java.lang.String SAVE_QUESTION

BEAN_CLOSE_QUESTION

public static final java.lang.String BEAN_CLOSE_QUESTION

BACKGROUND_IMG

public static final java.lang.String BACKGROUND_IMG

PIXEL

public static final int PIXEL

INCH

public static final int INCH

CM

public static final int CM

modified

protected boolean modified
true if the design has been modified since the last save

chartPanel

public ChartPanel chartPanel

drillDownmenu

protected javax.swing.JMenu drillDownmenu

linkParamMenu

protected javax.swing.JMenu linkParamMenu

patternPanel

public quadbase.common.swing.color.PatternPanel patternPanel

width

public static final int width

height

public static final int height

closeitem

protected javax.swing.JMenuItem closeitem

saveitem

protected javax.swing.JMenuItem saveitem

saveasitem

protected javax.swing.JMenuItem saveasitem

templateitem

protected javax.swing.JMenuItem templateitem

exportitem

protected javax.swing.JMenuItem exportitem

newitem

protected javax.swing.JMenuItem newitem

openitem

protected javax.swing.JMenuItem openitem

exititem

protected javax.swing.JMenuItem exititem

linkitem

protected javax.swing.JMenuItem linkitem

vieweritem

protected javax.swing.JMenuItem vieweritem

aboutitem

protected javax.swing.JMenuItem aboutitem

zoomitem

protected javax.swing.JMenuItem zoomitem

histogramitem

protected javax.swing.JMenuItem histogramitem

optionsitem

protected javax.swing.JMenuItem optionsitem

orderingitem

protected javax.swing.JMenuItem orderingitem

refreshitem

protected javax.swing.JMenuItem refreshitem

schedulerefreshitem

protected javax.swing.JMenuItem schedulerefreshitem

modifydataitem

protected javax.swing.JMenuItem modifydataitem

modifyparamitem

protected javax.swing.JMenuItem modifyparamitem

modifydbitem

protected javax.swing.JMenuItem modifydbitem

modifysqlitem

protected javax.swing.JMenuItem modifysqlitem

isForBean

protected boolean isForBean

actionListener

protected java.awt.event.ActionListener actionListener

currentLevel

public int currentLevel

chartWizard

public ChartWizard chartWizard

displayUnit

public int displayUnit
Constructor Detail

ChartMain

public ChartMain(ChartPanel _chartPanel,
                 java.lang.String query)
Method Detail

isChangeDataRegistryEnabled

public boolean isChangeDataRegistryEnabled()

getChangeDataRegObj

public quadbase.datasourcemanager.manager.IChangeDataRegistry getChangeDataRegObj()

getChangeDataRegPlusObj

public quadbase.datasourcemanager.manager.IChangeDataRegistryPlus getChangeDataRegPlusObj()

canModify

public boolean canModify()

hasBean

public boolean hasBean()

setBean

public void setBean(boolean bean)

showNavButtons

public boolean showNavButtons()

addRecentColor

public void addRecentColor(java.awt.Color newColor)

getRecentColors

public java.util.Vector getRecentColors()

setRecentColors

public void setRecentColors(java.util.Vector colors)

getRecentColorArray

public java.awt.Color[] getRecentColorArray()

setFileName

public void setFileName(java.lang.String name)

setFilenameToNull

public void setFilenameToNull()

init

public void init()

setPresetManager

public void setPresetManager(quadbase.datasourcemanager.manager.Manager manager)

getPresetManager

public quadbase.datasourcemanager.manager.Manager getPresetManager()

setPresetDataRegistry

public void setPresetDataRegistry(java.lang.String dataReg)

getPresetDataRegistry

public java.lang.String getPresetDataRegistry()

getBrowseDirectories

public BrowseDirectories getBrowseDirectories()

setBrowseDirectories

public void setBrowseDirectories(BrowseDirectories browseDir)

setDataRegistryHiddenNodes

public void setDataRegistryHiddenNodes(java.util.Vector vec)

getDataRegistryHiddenNodes

public java.util.Vector getDataRegistryHiddenNodes()

do_CloseChart

public void do_CloseChart()

do_New

public void do_New()

startNew

public void startNew()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

zooming

public void zooming(double value)

navigate

public void navigate(int direction)

disableNavControl

public void disableNavControl()

enableNavControl

public void enableNavControl()

getChart

public quadbase.chart.Chart getChart()

getChartFile

public java.lang.String getChartFile()

setVisible

public void setVisible(boolean x)
Overrides:
setVisible in class java.awt.Component

setNewChart

public void setNewChart(quadbase.chart.Chart newchart)

do_exit

public boolean do_exit()

do_exit

public boolean do_exit(boolean checkWizard)

do_exit

public boolean do_exit(boolean checkWizard,
                       boolean showCancel)

setQbChartDesigner

public void setQbChartDesigner(QbChartDesigner qbDesigner)

cleanup

public void cleanup()

do_Save

public void do_Save(boolean update)

onDocSave

public void onDocSave()

doSaveDrillTemplate

public void doSaveDrillTemplate(quadbase.chart.Chart chart,
                                java.lang.String file)
This function saves the drill-down chart info into a new template file. This function is called from the DrillDownDialog wizard.

getDrillDownTree

public javax.swing.JTree getDrillDownTree()

setDrillDownTree

public void setDrillDownTree(javax.swing.JTree t)

addDrillDown

public void addDrillDown()

do_drillRemove

public void do_drillRemove()

do_drillRemoveAll

public void do_drillRemoveAll()

getDrillDownName

public java.lang.String getDrillDownName()

setDrillDownName

public void setDrillDownName(java.lang.String dName)

createDrillTemplateName

public java.lang.String createDrillTemplateName()
This function creates the name of the next drill-down template file.

displayDrillDown

public void displayDrillDown()

backToCurrentLevel

public void backToCurrentLevel()

setHelpDocument

protected void setHelpDocument(java.lang.String urlStr)

do_Reload

protected void do_Reload()

drawNewChart

public boolean drawNewChart(quadbase.chart.ColData[] colData)
This function takes a new coldata array and creates a new chart out of it. This function is called when the user changes the data source in the DataSourceDialog

do_TableDirection

public void do_TableDirection()

do_Titles

public void do_Titles()

do_ZoomOptions

public void do_ZoomOptions()
This function loads the ZoomDialog which allows users to set the zoom options.

do_ZoomOptions

public void do_ZoomOptions(boolean isForDrillDown)
param isForDrillDown Define this dialog box for zooming or drill down

do_HistogramOptions

public void do_HistogramOptions()

doesTemplateFileExist

public boolean doesTemplateFileExist(java.lang.String file)
This function attempts to check if the template file exists. If it exists, it returns true, else it returns false.

do_Open

public void do_Open()

do_openChart

public boolean do_openChart(java.lang.String file)

do_openChart

public boolean do_openChart(java.lang.String file,
                            byte[] bytes)

openNewChart

protected boolean openNewChart(quadbase.chart.Chart newchart,
                               java.lang.String file)

do_disable

protected void do_disable()

do_enable

protected void do_enable()

enableNonDrillDownMenu

public void enableNonDrillDownMenu(boolean enable)
This function enables/disables certain menu items depending on whether a drill-down chart or a regular chart is displayed in the main window.

enableZoomHistOptions

public void enableZoomHistOptions(boolean enable)
This function enables zoom/histogram options based on whether a drill-down chart is displayed or not.

do_drillGoToTop

public void do_drillGoToTop()

do_drillPrevious

public void do_drillPrevious()

previousDrillDown

public void previousDrillDown()
This function is used to go the previous drill-down chart if one exists.

do_drillNext

public void do_drillNext()

pickingData

public void pickingData()

nextDrillDownFromLegend

public void nextDrillDownFromLegend(int x,
                                    int y)

nextDrillDown

public void nextDrillDown()
This function is used to go to the next drill-down chart if one is defined.

getChartMenuBar

public javax.swing.JMenuBar getChartMenuBar()

getChartToolBar

public javax.swing.JToolBar getChartToolBar()

addActionListener

public void addActionListener(java.awt.event.ActionListener l)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)

launchAggregateDialog

public boolean launchAggregateDialog(boolean isSecondaryAxis,
                                     int categoryType,
                                     boolean changeTSChart)
This function launches the AggregateDialog which allows users to enter the aggregation options. It can be called by WizardStep5 and OptionsDialog
Parameters:
isSecondaryAxis - Does the chart contain a secondary axis
categoryType - The datatype of the category column
changeTSChart - Should AggregateDialog change the value of isTSChart in Chart.java

launchAggregateDialog

public boolean launchAggregateDialog(boolean isSecondaryAxis,
                                     int categoryType,
                                     boolean changeTSChart,
                                     boolean showCancelButton,
                                     boolean isForDrillDown)
Parameters:
showCancelButton - show the cancel Button in the dialog box
isForDrillDown - is it for drill down chart

setLoginUser

public void setLoginUser(java.lang.String username)

getLoginUser

public java.lang.String getLoginUser()

setChartIO

public void setChartIO(IChartIO chartIO)
if ask is true , then it will pop up question dialog asking to save changes before exit , otherwise close right away .
 Usage : call onDocClose() the first time , after it is 
 saved or "No" is pressed , call onDocClose(false) to really
 close the ViewDesigner .
 

MessageDialog will post ACTION event to the parent frame of which the arg will be "Yes" , "No" or "Cancel" and the target will be the MessageDialog instance , the message text can be retrieved by ((MessageDialog)e.target).getTextArea().getText() if neccessary . Subclasses should handle the action event accordingly and call onDocClose(false) after save or do nothing if cancelled . public void onDocClose(boolean ask) { if(ask){ (closedialog = new MessageDialog(this,"Question",true,true, "Yes,No,Cancel")).show(CLOSE_QUESTION); closedialog.addActionListener(this); } else dispose(); }


setByPassSaveAsIO

public void setByPassSaveAsIO(IByPassSaveAsForChart saveAsCHT)

setModified

public void setModified()
marks this design as modified

setUnModified

public void setUnModified()
marks this design as unmodified after design is explicitly save by user

isModified

public boolean isModified()

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

insertFileToChartOrganizer

public void insertFileToChartOrganizer(boolean insertXML)
For EspressOrganizer Only ****************************** The following functions are extended by EspressChartEnterprise.quadbase.organizer.manager.ChartEditor.java

insertFileToChartOrganizer

public void insertFileToChartOrganizer(java.lang.String fileLocation)

getPath

public java.lang.String getPath(java.lang.String loc)

getBackgroundImagesDir

public java.lang.String getBackgroundImagesDir()

getFileDialogDefaultDirectory

public java.lang.String getFileDialogDefaultDirectory()

getBrowseDialogDefaultDirectory

public java.lang.String getBrowseDialogDefaultDirectory()

isFromOrganizer

public boolean isFromOrganizer()

getURL

public java.lang.String getURL(java.lang.String file)

isParameterizedChart

public boolean isParameterizedChart()

getDefaultParamNames

public java.lang.String[] getDefaultParamNames()

addDataSourceManagerListener

public void addDataSourceManagerListener(DataSourceManagerListener listener)

removeDataSourceManagerListener

public void removeDataSourceManagerListener(DataSourceManagerListener listener)

isReportVersion

protected boolean isReportVersion()
For EspressReport Only

isUsingReportToolBar

protected boolean isUsingReportToolBar()

useReportData

protected boolean useReportData()

updatePanelSize

public void updatePanelSize()

setFontMapping

public void setFontMapping()

EspressReport
v 5.5