com.extentech.ExtenXLS.ui.jchart
Class JChart

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.extentech.ExtenXLS.ui.jchart.JChart
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JChart
extends JPanel

The ExtenXLS JChart provides a Java Swing implementation of Bar, Pie, and Line Spreadsheet Charts can be used with or without Spreadsheet components. STUBBED OUT -- MUST GO OVER BEFORE USE

Author:
John :: [ Nov 3, 2006 ] :: Copyright ©2011Extentech Inc.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
 
Field Summary
 Color BACKGROUNDCOLOR
           
static Color BORDERCOLOR
           
 Color CHARTAREACOLOR
           
static int DEFAULT_HEIGHT
           
static int DEFAULT_WIDTH
           
 Color FONTCOLOR
           
 Color GRIDCOLOR
           
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
JChart()
          protected constructor should not be called by client apps
JChart(ChartHandle handle)
          Constructor.
 
Method Summary
 void addMultipleYSeries(ArrayList list)
           
 void addSingleYSeries(String str)
           
 void createPopupMenu()
           
 void display()
          Opens a new Swing frame that displays the chart.
 boolean getGridLinesPref()
           
 String getLegendLabels()
           
 String getTitle()
           
 int getType()
          Returns the type of the contained Chart.
 String getXAxisTitle()
           
 String[] getXAxisValues()
           
 String getXSeries()
           
 String getYAxisTitle()
           
 YSeries getYSeries()
           
 void initChart(Graphics2D g2d)
           
 boolean isBarChart()
           
 boolean isLineChart()
           
 boolean isPieChart()
           
 boolean isShowLegends()
           
static void main(String[] args)
           
 void paintComponent(Graphics g)
           
 void setGridLinesPref(boolean bool)
           
 void setLegendLabels(String legendLabels)
           
 void setShowLegends(boolean showLegends)
           
 void setTitle(String str)
           
 void setType(String str)
           
 void setXAxisTitle(String str)
           
 void setXSeries(String str)
           
 void setYAxisTitle(String str)
           
 void setYSeries(ArrayList list)
           
 void setYSeries(String str)
           
 void setYSeries(YSeries series)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BORDERCOLOR

public static Color BORDERCOLOR

DEFAULT_WIDTH

public static int DEFAULT_WIDTH

DEFAULT_HEIGHT

public static int DEFAULT_HEIGHT

BACKGROUNDCOLOR

public Color BACKGROUNDCOLOR

FONTCOLOR

public Color FONTCOLOR

CHARTAREACOLOR

public Color CHARTAREACOLOR

GRIDCOLOR

public Color GRIDCOLOR
Constructor Detail

JChart

public JChart(ChartHandle handle)
Constructor.


JChart

public JChart()
protected constructor should not be called by client apps

Method Detail

main

public static void main(String[] args)

createPopupMenu

public void createPopupMenu()

initChart

public void initChart(Graphics2D g2d)

paintComponent

public void paintComponent(Graphics g)
Overrides:
paintComponent in class JComponent

display

public void display()
Opens a new Swing frame that displays the chart.


getType

public int getType()
Returns the type of the contained Chart.


setType

public void setType(String str)

getTitle

public String getTitle()

setTitle

public void setTitle(String str)

getXAxisTitle

public String getXAxisTitle()

setXAxisTitle

public void setXAxisTitle(String str)

setYAxisTitle

public void setYAxisTitle(String str)

getYAxisTitle

public String getYAxisTitle()

isLineChart

public boolean isLineChart()

isBarChart

public boolean isBarChart()

isPieChart

public boolean isPieChart()

getGridLinesPref

public boolean getGridLinesPref()

setGridLinesPref

public void setGridLinesPref(boolean bool)

getXSeries

public String getXSeries()

setXSeries

public void setXSeries(String str)

getYSeries

public YSeries getYSeries()

addSingleYSeries

public void addSingleYSeries(String str)

addMultipleYSeries

public void addMultipleYSeries(ArrayList list)

setYSeries

public void setYSeries(String str)

setYSeries

public void setYSeries(ArrayList list)

setYSeries

public void setYSeries(YSeries series)

getXAxisValues

public String[] getXAxisValues()

getLegendLabels

public String getLegendLabels()

setLegendLabels

public void setLegendLabels(String legendLabels)

isShowLegends

public boolean isShowLegends()

setShowLegends

public void setShowLegends(boolean showLegends)


Copyright © 2011 Extentech Inc. All Rights Reserved.