EspressReport
v 5.5

quadbase.chart.designer
Class ChartOption

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--quadbase.common.swing.PanelAction
                                |
                                +--quadbase.chart.designer.ChartOption
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class ChartOption
extends quadbase.common.swing.PanelAction
implements java.awt.event.ItemListener

See Also:
Serialized Form

Inner Class Summary
 class ChartOption.MappingDialog
           
 
Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
static java.lang.String EMPTY
           
 boolean initializing
           
 boolean reloadNeeded
           
 
Fields inherited from class quadbase.common.swing.PanelAction
listener
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ChartOption(java.awt.Component parent, java.util.Vector vparam, boolean drawPreviousButton)
           
ChartOption(javax.swing.JFrame frame, quadbase.chart.Chart pChart, java.util.Vector vparam, boolean drawPreviousButton, boolean drillDown, int currentLevel)
          This constructor is used when creating a drill-down chart.
ChartOption(javax.swing.JFrame frame, java.util.Vector vparam)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 boolean chartRepaint(boolean recompute)
           
 boolean chartRepaint(java.awt.Component c)
           
 void disableOptions(boolean disable)
           
 boolean doesTemplateFileExist(java.lang.String file)
          This function attempts to check if the template file exists.
 void enableDisableChoiceBoxes(int cType)
          This function enables/disables the series/sum-by choice boxes based on the current chart type.
 int findColNumber(java.lang.String s)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 int getChartTypeIndex(int chartType)
          Returns the index of the current chart type.
 int getNewChartType(java.lang.String s)
           
 void initialize(int _chartType, boolean _is2DChart, quadbase.chart.ColData[] _colData)
           
 void initialize(int _chartType, boolean _is2DChart, quadbase.chart.ColData[] _colData, quadbase.chart.Chart _chart)
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 javax.swing.JTextField newTextField(javax.swing.JComboBox choice)
           
 void setLabelValues()
           
 void setText(javax.swing.JTextField textField, javax.swing.JComboBox choice)
           
 void setValues(int _chartType, boolean _is2DChart, quadbase.chart.ColData[] _colData, quadbase.chart.Chart _chart)
           
 
Methods inherited from class quadbase.common.swing.PanelAction
addActionListener, fireEvent, fireEvent, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, removeActionListener
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final java.lang.String EMPTY

reloadNeeded

public boolean reloadNeeded

initializing

public boolean initializing
Constructor Detail

ChartOption

public ChartOption(java.awt.Component parent,
                   java.util.Vector vparam,
                   boolean drawPreviousButton)

ChartOption

public ChartOption(javax.swing.JFrame frame,
                   java.util.Vector vparam)

ChartOption

public ChartOption(javax.swing.JFrame frame,
                   quadbase.chart.Chart pChart,
                   java.util.Vector vparam,
                   boolean drawPreviousButton,
                   boolean drillDown,
                   int currentLevel)
This constructor is used when creating a drill-down chart. The original, parent chart is passed as an argument to the constructor, along with a flag specifying whether or not it is a drill-down chart.
Method Detail

initialize

public void initialize(int _chartType,
                       boolean _is2DChart,
                       quadbase.chart.ColData[] _colData)

initialize

public void initialize(int _chartType,
                       boolean _is2DChart,
                       quadbase.chart.ColData[] _colData,
                       quadbase.chart.Chart _chart)

newTextField

public javax.swing.JTextField newTextField(javax.swing.JComboBox choice)

setText

public void setText(javax.swing.JTextField textField,
                    javax.swing.JComboBox choice)

setLabelValues

public void setLabelValues()

setValues

public void setValues(int _chartType,
                      boolean _is2DChart,
                      quadbase.chart.ColData[] _colData,
                      quadbase.chart.Chart _chart)

findColNumber

public int findColNumber(java.lang.String s)

chartRepaint

public boolean chartRepaint(boolean recompute)

chartRepaint

public boolean chartRepaint(java.awt.Component c)

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Overrides:
focusGained in class quadbase.common.swing.PanelAction

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Overrides:
focusLost in class quadbase.common.swing.PanelAction

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Overrides:
actionPerformed in class quadbase.common.swing.PanelAction

itemStateChanged

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

getChartTypeIndex

public int getChartTypeIndex(int chartType)
Returns the index of the current chart type.

getNewChartType

public int getNewChartType(java.lang.String s)

enableDisableChoiceBoxes

public void enableDisableChoiceBoxes(int cType)
This function enables/disables the series/sum-by choice boxes based on the current chart type. It is only used when displaying drill-down charts in the drill-down chart wizard

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.

disableOptions

public void disableOptions(boolean disable)

EspressReport
v 5.5