JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.beans
Class BaseChart

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.klg.jclass.chart.JCChart
                          |
                          +--com.klg.jclass.chart.beans.BaseChart
All Implemented Interfaces:
AncestorListener, Changeable, Changeable, EventListener, ImageObserver, com.klg.jclass.util.JCName, KeyListener, LegendComponentLayoutUser, MenuContainer, MouseListener, MouseMotionListener, RenderProperties, Serializable, com.klg.jclass.util.ServerRenderable
Direct Known Subclasses:
DataChart, SimpleChart

public abstract class BaseChart
extends JCChart

Base class for most chart Beans. Wraps many useful chart and chart subclass properties in simple get/set methods. Subclassed by a number of chart Bean classes, such as SimpleChart and the databound chart Beans.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static int AUTOMATIC
          Enums for axis placement values.
static String[] axesOrientationStrings
          Array of matching String descriptions for axis orientation values.
static int[] axesOrientationValues
          Array of possible axis orientation values.
 com.klg.jclass.chart.ChartDataSupport dataSource
          JCSwingDataSource used to populate data into this chart, if one is being used.
static int DAYS
           
static int EAST
           
static int HORIZONTAL
          Enums for legend orientation values.
static int HOURS
           
static int MAX
           
static int MIN
           
static int MINUTES
           
static int MONTHS
           
static int NORTH
           
static int NORTHEAST
          Enums for legend anchor values.
static int NORTHWEST
           
static int ORIENT_INVERTED_X_NORMAL_Y_NORMAL
           
static int ORIENT_INVERTED_X_NORMAL_Y_REVERSED
           
static int ORIENT_INVERTED_X_REVERSED_Y_NORMAL
           
static int ORIENT_INVERTED_X_REVERSED_Y_REVERSED
           
static int ORIENT_X_NORMAL_Y_NORMAL
          Enums for axis orientation values.
static int ORIENT_X_NORMAL_Y_REVERSED
           
static int ORIENT_X_REVERSED_Y_NORMAL
           
static int ORIENT_X_REVERSED_Y_REVERSED
           
static int ORIGIN
           
static int POINT_LABELS
           
static int ROTATE_270
           
static int ROTATE_90
           
static int ROTATE_NONE
          Enums for annotation rotation values.
static int SECONDS
          Enums for time unit method values.
static int SOUTH
           
static int SOUTHEAST
           
static int SOUTHWEST
           
 TableModel tableModel
          TableModel used to populate data into this chart, if one is being used.
static int TIME_LABELS
           
static int VALUE
          Enums for annotation method values.
static int VALUE_ANCHORED
           
static int VALUE_LABELS
           
static int VERTICAL
           
static int WEEKS
           
static int WEST
           
static int YEARS
           
 
Fields inherited from class com.klg.jclass.chart.JCChart
antiAliasing, AREA, AREA_RADAR, BAR, cancelKey, CANDLE, chartApplet, chartArea, chartAreaLayoutHints, chartLabelManager, customizer, customizerName, data, ERRMSG_INVALID_TRIGGER_INDEX, fillColorIndex, footer, footerImageMapInfo, footerLayoutHints, header, headerImageMapInfo, headerLayoutHints, HILO, HILO_OPEN_CLOSE, imageMapInfo, LAST_PREDEFINED_CHART_TYPE, layoutDone, legend, legendLayoutHints, legendManager, lineColorIndex, listeners, locale, NONE, pickListeners, PIE, PLOT, POLAR, prevSetGraphics, queryGraphics, RADAR, resetKey, SCATTER_PLOT, STACKING_AREA, STACKING_BAR, symbolColorIndex, symbolShapeIndex, triggers, userObject, usingDoublePixels
 
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 com.klg.jclass.chart.Changeable
BASIC_CHANGE_MASK, NOTIFY_AXES_RECALC, NOTIFY_AXES_REDRAW, NOTIFY_CA_RECALC, NOTIFY_CA_REDRAW, NOTIFY_LEGEND_RECALC, NOTIFY_LEGEND_REDRAW
 
Fields inherited from interface com.klg.jclass.util.Changeable
LAYOUT, NO_CHANGE, NOTIFY_PARENT_LAYOUT, RECALC, REDRAW
 
Fields inherited from interface com.klg.jclass.util.RenderProperties
ANTI_ALIASING_DEFAULT, ANTI_ALIASING_OFF, ANTI_ALIASING_ON
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BaseChart()
          Basic constructor.
 
Method Summary
 int getAxisOrientation()
          Gets the value of the axisOrientation property, which determines whether the x and y axes are inverted or not, and whether the axes are reversed or not.
 int getChartType()
          Gets the value of the chartType property, which determines the chart type of the first set of data in the chart.
 Font getFooterFont()
          Gets the value of the FooterFont property, which holds the font that is used to display the footer.
 String getFooterText()
          Gets the value of the FooterText property, which holds the text that is displayed in the footer.
 Font getHeaderFont()
          Gets the value of the HeaderFont property, which holds the font that is used to display the header.
 String getHeaderText()
          Gets the value of the HeaderText property; the HeaderText property holds the text that is displayed in the header.
 int getLegendAnchor()
          Gets the value of the LegendAnchor property, which determines the position of the legend relative to the ChartArea.
 int getLegendOrientation()
          Gets the value of the LegendOrientation property, which determines how legend information is laid out.
 boolean getLegendVisible()
          Gets the value of the LegendVisible property; this property determines whether the legend is visible.
 TableModel getSwingDataModel()
          Gets the Swing TableModel instance being used to populate the data source.
 String getView3D()
          Gets the value of the View3D property, which combines the values of the Depth, Elevation, and Rotation properties defined in JCChartArea.
 int getXAxisAnnotationMethod()
          Gets the value of the XAxisAnnotationMethod property, which determines how axis annotations are generated.
 boolean getXAxisGridVisible()
          Gets the value of the XAxisGridVisible property, which determines whether a grid is drawn for the axis.
 boolean getXAxisLogarithmic()
          Gets the value of the XAxisLogarithmic property, which determines whether the first x axis will be logarithmic (true) or linear (false).
 String getXAxisMax()
          Gets the value of the XAxisMax property, which controls the maximum value shown on the axis.
 String getXAxisMin()
          Gets the value of the XAxisMin property; this property controls the minimum value shown on the axis.
 String getXAxisMinMax()
          Gets the value of the XAxisMinMax property, which controls both the XAxisMin and XAxisMax properties.
 String getXAxisNumSpacing()
          Gets the value of the XAxisNumSpacing property -- this property controls the interval between axis labels.
 String getXAxisTitleText()
          Gets the value of the XAxisTitleText property, which specifies the text that will appear as the x axis title.
 boolean getXAxisVisible()
          Gets the value of the XAxisVisible property, which determines whether the first x axis is currently visible.
 int getYAxisAnnotationMethod()
          Gets the value of the YAxisAnnotationMethod property, which determines how axis annotations are generated.
 boolean getYAxisGridVisible()
          Gets the value of the YAxisGridVisible property, which determines whether a grid is drawn for the axis.
 boolean getYAxisLogarithmic()
          Gets the value of the YAxisLogarithmic property, which determines whether the first y axis will be logarithmic (true) or linear (false).
 String getYAxisMax()
          Gets the value of the YAxisMax property -- this property controls the maximum value shown on the axis.
 String getYAxisMin()
          Gets the value of the YAxisMin property -- this property controls the minimum value shown on the axis.
 String getYAxisMinMax()
          Gets the value of the YAxisMinMax property, which controls both the YAxisMin and YAxisMax properties.
 String getYAxisNumSpacing()
          Gets the value of the YAxisNumSpacing property, which controls the interval between axis labels.
 String getYAxisTitleText()
          Gets the value of the YAxisTitleText property, which specifies the text that will appear as the y axis title.
 boolean getYAxisVisible()
          Gets the value of the YAxisVisible property -- this property determines whether the first y axis is currently visible.
 void setAxisOrientation(int newOrient)
          Sets the value of the axisOrientation property, which determines whether the x and y axes are inverted or not, and whether the axes are reversed or not.
 void setChartType(int ct)
          Sets the value of the chartType property, which determines the chart type of the first set of data in the chart.
 void setFooterFont(Font f)
          Sets the value of the FooterFont property, which holds the font that is used to display the footer.
 void setFooterText(String t)
          Sets the value of the FooterText property, which holds the text that is displayed in the footer.
 void setHeaderFont(Font f)
          Sets the value of the HeaderFont property, which holds the font that is used to display the header.
 void setHeaderText(String t)
          Sets the value of the HeaderText property; the HeaderText property holds the text that is displayed in the header.
 void setLegendAnchor(int a)
          Sets the value of the LegendAnchor property, which determines the position of the legend relative to the ChartArea.
 void setLegendOrientation(int a)
          Sets the value of the LegendOrientation property, which determines how legend information is laid out.
 void setLegendVisible(boolean is)
          Sets the value of the LegendVisible property; this property determines whether the legend is visible.
 void setSwingDataModel(TableModel model)
          Sets the data source to be derived from the provided instance of the Swing TableModel.
 void setView3D(String s)
          Sets the value of the View3D property, which controls the apparent depth of a graph by combining the values Depth, Elevation, and Rotation properties defined in JCChartArea.
 void setXAxisAnnotationMethod(int r)
          Sets the value of the XAxisAnnotationMethod property, which determines how axis annotations are generated.
 void setXAxisGridVisible(boolean s)
          Sets the value of the XAxisGridVisible property, which determines whether a grid is drawn for the axis.
 void setXAxisLogarithmic(boolean b)
          Sets the value of the XAxisLogarithmic property, which determines whether the first x axis will be logarithmic (true) or linear (false).
 void setXAxisMax(String r)
          Sets the value of the XAxisMax property, which controls the maximum value shown on the axis.
 void setXAxisMin(String r)
          Sets the value of the XAxisMin property; this property controls the minimum value shown on the axis.
 void setXAxisMinMax(String r)
          Sets the value of the XAxisMinMax property, which controls both the XAxisMin and XAxisMax properties.
 void setXAxisNumSpacing(String r)
          Sets the value of the XAxisNumSpacing property -- this property controls the interval between axis labels.
 void setXAxisTitleText(String t)
          Sets the value of the XAxisTitleText property, which specifies the text that will appear as the x axis title.
 void setXAxisVisible(boolean b)
          Sets the value of the XAxisVisible property, which determines whether the first x axis is currently visible.
 void setYAxisAnnotationMethod(int r)
          Sets the value of the YAxisAnnotationMethod property, which determines how axis annotations are generated.
 void setYAxisGridVisible(boolean s)
          Sets the value of the YAxisGridVisible property, which determines whether a grid is drawn for the axis.
 void setYAxisLogarithmic(boolean b)
          Sets the value of the YAxisLogarithmic property, which determines whether the first y axis will be logarithmic (true) or linear (false).
 void setYAxisMax(String r)
          Sets the value of the YAxisMax property -- this property controls the maximum value shown on the axis.
 void setYAxisMin(String r)
          Sets the value of the YAxisMin property -- this property controls the minimum value shown on the axis.
 void setYAxisMinMax(String r)
          Sets the value of the YAxisMinMax property, which controls both the YAxisMin and YAxisMax properties.
 void setYAxisNumSpacing(String r)
          Sets the value of the YAxisNumSpacing property, which controls the interval between axis labels.
 void setYAxisTitleText(String t)
          Sets the value of the YAxisTitleText property, which specifies the text that will appear as the y axis title.
 void setYAxisVisible(boolean b)
          Sets the value of the YAxisVisible property -- this property determines whether the first y axis is currently visible.
 
Methods inherited from class com.klg.jclass.chart.JCChart
addChartListener, addDataView, addNotify, addPickListener, addTrigger, addTrigger, ancestorAdded, ancestorMoved, ancestorRemoved, cancel, createChartArea, createFooter, createHeader, createLegend, createLocalImage, createQueryGraphics, createToolTip, disableChartEvents, disposeQueryGraphics, doLayout, enableChartEvents, findData, findDataView, findDataViewIndex, findMatchingTrigger, firePaint, getAbout, getAllowUserChanges, getAntiAliasing, getCancelKey, getChanged, getChanged, getChartArea, getChartLabelManager, getComponentArea, getComponentAt, getCustomizerName, getDataView, getDataView, getDrawingArea, getDrawingArea, getDrawingAreaHeight, getDrawingAreaWidth, getFillColorIndex, getFooter, getFooterImageMapInfo, getGraphics, getHeader, getHeaderImageMapInfo, getImageMapInfo, getLayoutHints, getLegend, getLicense, getLineColorIndex, getLocale, getNumData, getNumTriggers, getOriginalDataView, getQueryGraphics, getResetKey, getSource, getSymbolColorIndex, getSymbolShapeIndex, getToolTipLocation, getToolTipText, getTrigger, getUI, getUIClassID, getUserObject, hasChartLabelManager, init, isBatched, isChanged, isChanged, isFocusTraversable, isUsingDoublePixels, isWarningDialog, keyPressed, keyReleased, keyTyped, launchPropertyPage, main, makeChart, moreAddNotify, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, paintChildren, paintComponent, pick, printAll, processKeyEvent, processMouseEvent, processMouseMotionEvent, recalc, registerUI, removeChartListener, removeDataView, removePickListener, removeTrigger, reorderDataViews, requestFocus, reset, resetDefaults, rotate, rotateEnd, rotateStart, scale, sendEvent, sendPickEvent, serverPaint, serverSnapshot, setAbout, setAllowUserChanges, setAntiAliasing, setBackground, setBatched, setCancelKey, setChanged, setChanged, setChartArea, setChartLabelManager, setCustomizerName, setDataView, setDataView, setFillColorIndex, setFont, setFooter, setFooterImageMapInfo, setForeground, setGraphics, setHeader, setHeaderImageMapInfo, setImageMapInfo, setLayoutHints, setLegend, setLicense, setLineColorIndex, setLocale, setOpaque, setResetKey, setSymbolColorIndex, setSymbolShapeIndex, setTrigger, setUI, setUserObject, setUsingDoublePixels, setWarningDialog, snapshot, snapshot, snapshot, translate, translateStart, unpick, unpick, update, updateUI, zoom
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintImmediately, paintImmediately, paramString, print, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.klg.jclass.util.legend.LegendComponentLayoutUser
getPreferredSize
 
Methods inherited from interface com.klg.jclass.util.JCName
getName, setName
 

Field Detail

ORIENT_X_NORMAL_Y_NORMAL

public static final int ORIENT_X_NORMAL_Y_NORMAL
Enums for axis orientation values.

See Also:
Constant Field Values

ORIENT_X_REVERSED_Y_NORMAL

public static final int ORIENT_X_REVERSED_Y_NORMAL
See Also:
Constant Field Values

ORIENT_X_NORMAL_Y_REVERSED

public static final int ORIENT_X_NORMAL_Y_REVERSED
See Also:
Constant Field Values

ORIENT_X_REVERSED_Y_REVERSED

public static final int ORIENT_X_REVERSED_Y_REVERSED
See Also:
Constant Field Values

ORIENT_INVERTED_X_NORMAL_Y_NORMAL

public static final int ORIENT_INVERTED_X_NORMAL_Y_NORMAL
See Also:
Constant Field Values

ORIENT_INVERTED_X_REVERSED_Y_NORMAL

public static final int ORIENT_INVERTED_X_REVERSED_Y_NORMAL
See Also:
Constant Field Values

ORIENT_INVERTED_X_NORMAL_Y_REVERSED

public static final int ORIENT_INVERTED_X_NORMAL_Y_REVERSED
See Also:
Constant Field Values

ORIENT_INVERTED_X_REVERSED_Y_REVERSED

public static final int ORIENT_INVERTED_X_REVERSED_Y_REVERSED
See Also:
Constant Field Values

axesOrientationValues

public static final int[] axesOrientationValues
Array of possible axis orientation values.


axesOrientationStrings

public static final String[] axesOrientationStrings
Array of matching String descriptions for axis orientation values.


ROTATE_NONE

public static final int ROTATE_NONE
Enums for annotation rotation values.

See Also:
Constant Field Values

ROTATE_90

public static final int ROTATE_90
See Also:
Constant Field Values

ROTATE_270

public static final int ROTATE_270
See Also:
Constant Field Values

AUTOMATIC

public static final int AUTOMATIC
Enums for axis placement values.

See Also:
Constant Field Values

ORIGIN

public static final int ORIGIN
See Also:
Constant Field Values

MIN

public static final int MIN
See Also:
Constant Field Values

MAX

public static final int MAX
See Also:
Constant Field Values

VALUE_ANCHORED

public static final int VALUE_ANCHORED
See Also:
Constant Field Values

VALUE

public static final int VALUE
Enums for annotation method values.

See Also:
Constant Field Values

VALUE_LABELS

public static final int VALUE_LABELS
See Also:
Constant Field Values

TIME_LABELS

public static final int TIME_LABELS
See Also:
Constant Field Values

POINT_LABELS

public static final int POINT_LABELS
See Also:
Constant Field Values

SECONDS

public static final int SECONDS
Enums for time unit method values.

See Also:
Constant Field Values

MINUTES

public static final int MINUTES
See Also:
Constant Field Values

HOURS

public static final int HOURS
See Also:
Constant Field Values

DAYS

public static final int DAYS
See Also:
Constant Field Values

WEEKS

public static final int WEEKS
See Also:
Constant Field Values

MONTHS

public static final int MONTHS
See Also:
Constant Field Values

YEARS

public static final int YEARS
See Also:
Constant Field Values

NORTHEAST

public static final int NORTHEAST
Enums for legend anchor values.

See Also:
Constant Field Values

NORTH

public static final int NORTH
See Also:
Constant Field Values

NORTHWEST

public static final int NORTHWEST
See Also:
Constant Field Values

EAST

public static final int EAST
See Also:
Constant Field Values

WEST

public static final int WEST
See Also:
Constant Field Values

SOUTHEAST

public static final int SOUTHEAST
See Also:
Constant Field Values

SOUTH

public static final int SOUTH
See Also:
Constant Field Values

SOUTHWEST

public static final int SOUTHWEST
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
Enums for legend orientation values.

See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

tableModel

public TableModel tableModel
TableModel used to populate data into this chart, if one is being used.


dataSource

public com.klg.jclass.chart.ChartDataSupport dataSource
JCSwingDataSource used to populate data into this chart, if one is being used.

Constructor Detail

BaseChart

public BaseChart()
Basic constructor.

Method Detail

getChartType

public int getChartType()
Gets the value of the chartType property, which determines the chart type of the first set of data in the chart.

Returns:
value of the chartType property

setChartType

public void setChartType(int ct)
Sets the value of the chartType property, which determines the chart type of the first set of data in the chart.

Parameters:
ct -

getAxisOrientation

public int getAxisOrientation()
Gets the value of the axisOrientation property, which determines whether the x and y axes are inverted or not, and whether the axes are reversed or not.

Possible axis orientation values are:
ORIENT_X_NORMAL_Y_NORMAL
ORIENT_INVERTED_X_NORMAL_Y_NORMAL
ORIENT_X_REVERSED_Y_NORMAL
ORIENT_INVERTED_X_REVERSED_Y_NORMAL
ORIENT_X_NORMAL_Y_REVERSED
ORIENT_INVERTED_X_NORMAL_Y_REVERSED
ORIENT_X_REVERSED_Y_REVERSED or
ORIENT_INVERTED_X_REVERSED_Y_REVERSED.

Returns:
value of the axisOrientation property

setAxisOrientation

public void setAxisOrientation(int newOrient)
Sets the value of the axisOrientation property, which determines whether the x and y axes are inverted or not, and whether the axes are reversed or not.

Possible axis orientation values are:
ORIENT_X_NORMAL_Y_NORMAL
ORIENT_INVERTED_X_NORMAL_Y_NORMAL
ORIENT_X_REVERSED_Y_NORMAL
ORIENT_INVERTED_X_REVERSED_Y_NORMAL
ORIENT_X_NORMAL_Y_REVERSED
ORIENT_INVERTED_X_NORMAL_Y_REVERSED
ORIENT_X_REVERSED_Y_REVERSED or
ORIENT_INVERTED_X_REVERSED_Y_REVERSED.

Parameters:
newOrient -

getView3D

public String getView3D()
Gets the value of the View3D property, which combines the values of the Depth, Elevation, and Rotation properties defined in JCChartArea.
Depth controls the apparent depth of a graph. Elevation controls the distance above the x axis for the 3D effect. Rotation controls the position of the eye relative to the y axis for the 3D effect.

Returns:
value of Depth, Elevation, and Rotation properties respectively, separated by commas
See Also:
JCChartArea.getDepth(), JCChartArea.getElevation(), JCChartArea.getRotation()

setView3D

public void setView3D(String s)
Sets the value of the View3D property, which controls the apparent depth of a graph by combining the values Depth, Elevation, and Rotation properties defined in JCChartArea.
Depth controls the apparent depth of a graph. Elevation controls the distance above the x axis for the 3D effect. Rotation controls the position of the eye relative to the y axis for the 3D effect.

Parameters:
s - value of Depth, Elevation, and Rotation properties respectively, separated by commas
See Also:
JCChartArea.setDepth(int), JCChartArea.setElevation(int), JCChartArea.setRotation(int)

getXAxisLogarithmic

public boolean getXAxisLogarithmic()
Gets the value of the XAxisLogarithmic property, which determines whether the first x axis will be logarithmic (true) or linear (false).

Returns:
value of the XAxisLogarithmic property

setXAxisLogarithmic

public void setXAxisLogarithmic(boolean b)
Sets the value of the XAxisLogarithmic property, which determines whether the first x axis will be logarithmic (true) or linear (false).

Parameters:
b -

getXAxisVisible

public boolean getXAxisVisible()
Gets the value of the XAxisVisible property, which determines whether the first x axis is currently visible.

Returns:
value of the XAxisVisible property

setXAxisVisible

public void setXAxisVisible(boolean b)
Sets the value of the XAxisVisible property, which determines whether the first x axis is currently visible.

Parameters:
b -

getXAxisAnnotationMethod

public int getXAxisAnnotationMethod()
Gets the value of the XAxisAnnotationMethod property, which determines how axis annotations are generated.

Returns:
one of VALUE, VALUE_LABELS, TIME_LABELS, or POINT_LABELS

setXAxisAnnotationMethod

public void setXAxisAnnotationMethod(int r)
Sets the value of the XAxisAnnotationMethod property, which determines how axis annotations are generated.

Parameters:
r - one of VALUE, VALUE_LABELS, TIME_LABELS, or POINT_LABELS
Throws:
IllegalArgumentException - If the AnnotationMethod value is not one of VALUE, VALUE_LABELS, TIME_LABELS, or POINT_LABELS.

getXAxisNumSpacing

public String getXAxisNumSpacing()
Gets the value of the XAxisNumSpacing property -- this property controls the interval between axis labels.

Returns:
value of the XAxisNumSpacing property

setXAxisNumSpacing

public void setXAxisNumSpacing(String r)
Sets the value of the XAxisNumSpacing property -- this property controls the interval between axis labels.

Parameters:
r -

getXAxisGridVisible

public boolean getXAxisGridVisible()
Gets the value of the XAxisGridVisible property, which determines whether a grid is drawn for the axis.

Returns:
value of the XAxisGridVisible property

setXAxisGridVisible

public void setXAxisGridVisible(boolean s)
Sets the value of the XAxisGridVisible property, which determines whether a grid is drawn for the axis.

Parameters:
s -

getXAxisMinMax

public String getXAxisMinMax()
Gets the value of the XAxisMinMax property, which controls both the XAxisMin and XAxisMax properties.

Returns:
value of the XAxisMinMax property

setXAxisMinMax

public void setXAxisMinMax(String r)
Sets the value of the XAxisMinMax property, which controls both the XAxisMin and XAxisMax properties.

Parameters:
r -

getXAxisMin

public String getXAxisMin()
Gets the value of the XAxisMin property; this property controls the minimum value shown on the axis.

Returns:
value of the XAxisMin property

setXAxisMin

public void setXAxisMin(String r)
Sets the value of the XAxisMin property; this property controls the minimum value shown on the axis.

Parameters:
r -

getXAxisMax

public String getXAxisMax()
Gets the value of the XAxisMax property, which controls the maximum value shown on the axis.

Returns:
value of the XAxisMax property

setXAxisMax

public void setXAxisMax(String r)
Sets the value of the XAxisMax property, which controls the maximum value shown on the axis.

Parameters:
r -

getXAxisTitleText

public String getXAxisTitleText()
Gets the value of the XAxisTitleText property, which specifies the text that will appear as the x axis title.

Returns:
value of the XAxisTitleText property

setXAxisTitleText

public void setXAxisTitleText(String t)
Sets the value of the XAxisTitleText property, which specifies the text that will appear as the x axis title.

Parameters:
t -

getYAxisLogarithmic

public boolean getYAxisLogarithmic()
Gets the value of the YAxisLogarithmic property, which determines whether the first y axis will be logarithmic (true) or linear (false).

Returns:
value of the YAxisLogarithmic property

setYAxisLogarithmic

public void setYAxisLogarithmic(boolean b)
Sets the value of the YAxisLogarithmic property, which determines whether the first y axis will be logarithmic (true) or linear (false).

Parameters:
b -

getYAxisVisible

public boolean getYAxisVisible()
Gets the value of the YAxisVisible property -- this property determines whether the first y axis is currently visible.

Returns:
value of the YAxisVisible property

setYAxisVisible

public void setYAxisVisible(boolean b)
Sets the value of the YAxisVisible property -- this property determines whether the first y axis is currently visible.

Parameters:
b -

getYAxisAnnotationMethod

public int getYAxisAnnotationMethod()
Gets the value of the YAxisAnnotationMethod property, which determines how axis annotations are generated.

Returns:
one of VALUE, VALUE_LABELS, TIME_LABELS, or POINT_LABELS

setYAxisAnnotationMethod

public void setYAxisAnnotationMethod(int r)
Sets the value of the YAxisAnnotationMethod property, which determines how axis annotations are generated.

Parameters:
r - one of VALUE, VALUE_LABELS, TIME_LABELS, or POINT_LABELS
Throws:
IllegalArgumentException - If the AnnotationMethod value is not one of VALUE, VALUE_LABELS, TIME_LABELS, or POINT_LABELS.

getYAxisNumSpacing

public String getYAxisNumSpacing()
Gets the value of the YAxisNumSpacing property, which controls the interval between axis labels.

Returns:
value of the YAxisNumSpacing property

setYAxisNumSpacing

public void setYAxisNumSpacing(String r)
Sets the value of the YAxisNumSpacing property, which controls the interval between axis labels.

Parameters:
r -

getYAxisGridVisible

public boolean getYAxisGridVisible()
Gets the value of the YAxisGridVisible property, which determines whether a grid is drawn for the axis.

Returns:
value of the YAxisGridVisible property

setYAxisGridVisible

public void setYAxisGridVisible(boolean s)
Sets the value of the YAxisGridVisible property, which determines whether a grid is drawn for the axis.

Parameters:
s -

getYAxisMinMax

public String getYAxisMinMax()
Gets the value of the YAxisMinMax property, which controls both the YAxisMin and YAxisMax properties.

Returns:
value of the YAxisMinMax property

setYAxisMinMax

public void setYAxisMinMax(String r)
Sets the value of the YAxisMinMax property, which controls both the YAxisMin and YAxisMax properties.

Parameters:
r -

getYAxisMin

public String getYAxisMin()
Gets the value of the YAxisMin property -- this property controls the minimum value shown on the axis.

Returns:
value of the YAxisMin property

setYAxisMin

public void setYAxisMin(String r)
Sets the value of the YAxisMin property -- this property controls the minimum value shown on the axis.

Parameters:
r -

getYAxisMax

public String getYAxisMax()
Gets the value of the YAxisMax property -- this property controls the maximum value shown on the axis.

Returns:
value of the YAxisMax property

setYAxisMax

public void setYAxisMax(String r)
Sets the value of the YAxisMax property -- this property controls the maximum value shown on the axis.

Parameters:
r -

getYAxisTitleText

public String getYAxisTitleText()
Gets the value of the YAxisTitleText property, which specifies the text that will appear as the y axis title.

Returns:
value of the YAxisTitleText property

setYAxisTitleText

public void setYAxisTitleText(String t)
Sets the value of the YAxisTitleText property, which specifies the text that will appear as the y axis title.

Parameters:
t -

getHeaderText

public String getHeaderText()
Gets the value of the HeaderText property; the HeaderText property holds the text that is displayed in the header.

Returns:
value of the HeaderText property

setHeaderText

public void setHeaderText(String t)
Sets the value of the HeaderText property; the HeaderText property holds the text that is displayed in the header. It also dictates the Visible property.

Parameters:
t -

getHeaderFont

public Font getHeaderFont()
Gets the value of the HeaderFont property, which holds the font that is used to display the header.

Returns:
value of the HeaderFont property

setHeaderFont

public void setHeaderFont(Font f)
Sets the value of the HeaderFont property, which holds the font that is used to display the header.

Parameters:
f -

getFooterText

public String getFooterText()
Gets the value of the FooterText property, which holds the text that is displayed in the footer.

Returns:
value of the FooterText property

setFooterText

public void setFooterText(String t)
Sets the value of the FooterText property, which holds the text that is displayed in the footer. It also dictates the Visible property.

Parameters:
t -

getFooterFont

public Font getFooterFont()
Gets the value of the FooterFont property, which holds the font that is used to display the footer.

Returns:
value of the FooterFont property

setFooterFont

public void setFooterFont(Font f)
Sets the value of the FooterFont property, which holds the font that is used to display the footer.

Parameters:
f -

getLegendVisible

public boolean getLegendVisible()
Gets the value of the LegendVisible property; this property determines whether the legend is visible.

Returns:
value of the LegendVisible property

setLegendVisible

public void setLegendVisible(boolean is)
Sets the value of the LegendVisible property; this property determines whether the legend is visible.

Parameters:
is -

getLegendAnchor

public int getLegendAnchor()
Gets the value of the LegendAnchor property, which determines the position of the legend relative to the ChartArea. Valid values include NORTH, SOUTH, EAST, WEST, NORTHWEST, SOUTHWEST, NORTHEAST and SOUTHEAST.

Returns:
the value of the LegendAnchor property

setLegendAnchor

public void setLegendAnchor(int a)
Sets the value of the LegendAnchor property, which determines the position of the legend relative to the ChartArea. Valid values include NORTH, SOUTH, EAST, WEST, NORTHWEST, SOUTHWEST, NORTHEAST and SOUTHEAST.

Parameters:
a -

getLegendOrientation

public int getLegendOrientation()
Gets the value of the LegendOrientation property, which determines how legend information is laid out. Valid values include VERTICAL and HORIZONTAL.

Returns:
value of the LegendOrientation property

setLegendOrientation

public void setLegendOrientation(int a)
Sets the value of the LegendOrientation property, which determines how legend information is laid out. Valid values include VERTICAL and HORIZONTAL.

Parameters:
a -

setSwingDataModel

public void setSwingDataModel(TableModel model)
Sets the data source to be derived from the provided instance of the Swing TableModel.

Parameters:
model -

getSwingDataModel

public TableModel getSwingDataModel()
Gets the Swing TableModel instance being used to populate the data source.

Returns:
Swing TableModel instance being used to populate the data source

Copyright © 2004 Quest Software Inc..
All rights reserved.