|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.objectplanet.chart.GenericChart com.objectplanet.chart.ext.PlotterChart
public class PlotterChart
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
BELOW
Labels display below the chart grid. |
static int |
BELOW_AND_FLOATING
Labels display both below the grid and floating over a sample. |
static int |
BOTTOM
Bottom range on. |
static int |
CENTER
Labels display centered with sample. |
static int |
FLOATING
Floating labels display when mouse is over a sample. |
static int |
HORIZONTAL
Horizontal direction used for ranges, grid lines. |
static int |
LEFT
Left range on. |
static int |
OVER
Labels display over the sample. |
static int |
PLOT_STYLE_CIRCLE
Use a circle as a shape for the plots. |
static int |
PLOT_STYLE_CIRCLE_FILLED
Use a filled circle as a shape for the plots. |
static int |
PLOT_STYLE_CIRCLE_OPAQUE
Use an opaque circle as a shape for the plots. |
static int |
PLOT_STYLE_DIAMOND
Use a diamond as a shape for the plots. |
static int |
PLOT_STYLE_DIAMOND_FILLED
Use a filled diamond as a shape for the plots. |
static int |
PLOT_STYLE_DIAMOND_OPAQUE
Use an opaque diamond as a shape for the plots. |
static int |
PLOT_STYLE_SQUARE
Use a square as a shape for the plots. |
static int |
PLOT_STYLE_SQUARE_FILLED
Use a filled square as a shape for the plots. |
static int |
PLOT_STYLE_SQUARE_OPAQUE
Use an opaque square as a shape for the plots. |
static int |
RIGHT
Right range on. |
static int |
SIDE
Labels display to the side from the x-range line inside the chart grid. |
static int |
TARGET_LINE_ID_AND_VALUE_LABEL
Use both the ID and value label with the target lines; setTargetValueLine(). |
static int |
TARGET_LINE_ID_LABEL
Use the ID label with the target lines; setTargetValueLine(). |
static int |
TARGET_LINE_NO_LABEL
Use no label with the target lines; setTargetValueLine(). |
static int |
TARGET_LINE_VALUE_LABEL
Use the value label with the target lines; setTargetValueLine(). |
static int |
TOP
Top range on. |
static int |
UNDER
Labels display under the sample. |
static int |
VERTICAL
Vertical direction used for ranges, grid lines. |
Fields inherited from class com.objectplanet.chart.GenericChart |
---|
chartType, DEFAULT_SAMPLE_COLORS, depth3dPoint, display3dOn, displayVersionOn, dragged_label, grid, gridRenderer, legend, legendRenderer, legendSelection, needChartCalculation, needGraphBounds, needRender, new_cursor, old_cursor, overlayCharts, renderer |
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 | |
---|---|
PlotterChart()
Creates a plotter chart. |
|
PlotterChart(int seriesCount)
Creates a plotter chart with give number of series. |
Method Summary | |
---|---|
void |
addImage(java.lang.String name,
java.awt.Image image)
Adds an image to the chart. |
void |
addItemListener(java.awt.event.ItemListener l)
Adds an item listener to the chart. |
void |
autoRepaint()
Calls repaint() if the automaticRepaintOn is turned on. |
protected int |
checkSelection(java.awt.Point point)
This method is called when the user releases the mouse and checks if the given point is inside a series. |
protected java.lang.String |
constructLabel(int series,
int sample,
int style,
boolean paintSeriesOn,
java.lang.String percentLabel)
Constructs the combination of labels. |
java.awt.Image |
createImage_oldstyle(int width,
int height)
Uses Component.createImage() or Frame.createImage to create an offscreen image. |
java.awt.Image |
createImage(int width,
int height)
Creates an offscreen image. |
void |
displayFloatingLabel(int series,
int sample)
Displays the floating labels for the specified series and/or sample. |
java.lang.String |
formatNumber(double value,
int decimals)
Formats a floating number to the number of decimals given. |
java.lang.String |
formatRangeNumber(int index,
double value)
Formats a floating number to the number of decimals given for the specified range. |
java.awt.Color |
getChartBackground()
Gets the color of the chart background itself. |
java.awt.Color |
getChartForeground()
Gets the color of the chart foreground itself. |
java.awt.Insets |
getGraphInsets()
Gets the graph insets. |
java.lang.String |
getGridImage()
Gets the image that is used as background for the grid. |
double |
getGridLine(int index)
Gets grid lines positon value by its index. |
java.awt.Color |
getGridLineColor(int index)
Gets grid line's color value by it's index. |
java.awt.Color[] |
getGridLineColors()
Gets the vertical grid lines colors. |
double[] |
getGridLines()
Gets the vertical grid lines positons. |
protected double |
getHighestValue(int rangeIndex)
Gets the highest value in the chart larger than 0. |
java.awt.Image |
getImage(int width,
int height)
Returns the current chart as an image. |
java.awt.Image |
getImage(java.lang.String name)
Gets the image with the specified name. |
java.lang.String |
getLabel(java.lang.String name)
Gets the specified label from the chart. |
int |
getLabelAngle(java.lang.String name)
Gets the angle of the specified label. |
java.awt.Color |
getLegendColor(int index)
Gets legend entry's color value by it's index. |
java.lang.String[] |
getLegendLabels()
Gets the legend labels. |
int |
getLineWidth(int series)
Gets the current width of the line for the gived series. |
java.util.Locale |
getLocale()
Gets the current locale used for numbers. |
protected double |
getLowestValue(int rangeIndex)
Gets the lowest value in the chart. |
java.awt.Dimension |
getMinimumSize()
This method returns the minimum size of the chart. |
java.lang.String |
getPlotImage(int series)
Gets a sample highlight image name. |
java.lang.String |
getPlotLabel(int series,
int index)
Gets the plot label for the specified series and index. |
java.lang.String[] |
getPlotLabels(int series)
Gets the plot labels for the specified series. |
int |
getPlotLabelStyle()
Gets the current style of the plot labels. |
double[][] |
getPlots(int series)
Gets the x|y plots array for the specified series. |
int |
getPlotSize(int series)
Gets the plot size for the specified series. |
int |
getPlotSize(int series,
int index)
Gets the plot size for the specified series. |
int |
getPlotStyle(int series)
Gets the plot style. |
java.awt.Dimension |
getPreferredSize()
This method is called by the awt, and returns the preferred size of the chart. |
java.awt.Color |
getRangeColor(int side)
Gets the color of the specified range. |
java.text.NumberFormat |
getRangeFormatter(int index)
Get the number formatter of this range. |
int |
getSampleCount()
Gets number of plots in the bigges series. |
int |
getSampleCount(int series)
Gets the number of plots for the specified series. |
java.awt.Point |
getSamplePoint(int serie,
int sample)
Gets the coordinates of the specified sample. |
java.lang.Object[] |
getSelectedObjects()
Gets the currently selected objects. |
int |
getSelectedSample()
Gets the currently selected sample. |
int |
getSelectedSeries()
Gets the currently selected series. |
java.awt.Color |
getSeriesColor(int series)
Gets the color of the specified plot series. |
java.awt.Color[] |
getSeriesColors()
Gets the array of colors used for the plots. |
int |
getSeriesCount()
Gets the number of series. |
java.lang.String |
getSeriesLabel(int series)
Gets the specified series label. |
java.awt.Color |
getSeriesLabelColor(int series)
Gets the color of the label of the specified series. |
java.lang.String[] |
getSeriesLabels()
Gets the series labels. |
int |
getSeriesLabelStyle()
Gets the current style of the series labels. |
static java.lang.String[] |
getStringValues(java.lang.String string,
java.lang.String delimiter)
Conterts a separated string to an array of string. |
int |
getTargetLabelsPosition()
Gets the target labels position |
java.lang.String |
getThousandsDelimeter()
Gets the current thousands delimiter used for formatted numbers. |
java.lang.String |
getTitle()
Gets the chart title. |
int |
getValueLabelStyle()
Gets the value label style. |
static java.lang.String |
getVersion()
Returns the current version of the charts. |
java.awt.Color |
getXAxisColor()
Gets the color for the X axis |
double |
getXCurrentLowerRange()
Gets the X-axis current lower range. |
double |
getXCurrentUpperRange()
Gets the X-axis current upper range. |
double |
getXLowerRange()
Gets the X-axis lower range. |
int |
getXMaxValueLineCount()
Gets the current maxium number of the X value lines set. |
int |
getXRangeDecimalCount()
Gets the number of decimals currently used in the X axis range labels. |
double |
getXRangeInterval()
Gets the interval between the ticks on the X range. |
java.lang.String |
getXRangeLabel(double x)
Gets an x-range label on the given position. |
java.awt.Color |
getXRangeLabelColor(double x)
Gets color that is used to paint the corresponding x-range label. |
java.awt.Color[] |
getXRangeLabelColors()
Gets the colors of x-range labels. |
boolean |
getXRangeLabelLineOn(double x)
Checks if a grid line is displayed for the corresponding x-range label. |
boolean[] |
getXRangeLabelLinesOn()
Gets an array of boolean values telling if the grid lines should be displayed for the corresponding x-range labels. |
java.lang.String[] |
getXRangeLabels()
Gets the x-range labels. |
java.awt.Color |
getXRangeLabelsColor()
Gets color that is used to paint the x-range labels. |
double[] |
getXRangeLabelsPos()
Gets the positions of x-range labels |
int |
getXRangeLabelStyle()
Gets the current style of the x-range labels. |
double |
getXUpperRange()
Gets the X-axis upper range. |
int |
getXValueDecimalCount(int series)
Gets the number of decimals used for the x values. |
java.awt.Color |
getXValueLinesColor()
Gets the color of the x value lines. |
java.awt.Color |
getYAxisColor()
Gets the color for the Y axis |
double |
getYCurrentLowerRange()
Gets the Y-axis lower range. |
double |
getYCurrentUpperRange()
Gets the Y-axis current upper range. |
double |
getYLowerRange()
Gets the Y-axis lower range. |
int |
getYMaxValueLineCount()
Gets the current maxium number of the Y value lines set. |
int |
getYRangeDecimalCount()
Gets the number of decimals currently used in the Y axis range labels. |
double |
getYRangeInterval()
Gets the interval between the ticks on the Y range. |
double |
getYUpperRange()
Gets the Y-axis upper range. |
int |
getYValueDecimalCount(int series)
Gets the number of decimals used for the y values. |
java.awt.Color |
getYValueLinesColor()
Gets the color of the y value lines. |
boolean |
isAutoLabelSpacingOn()
Gets the state of the automatic label spacing. |
boolean |
isAutomaticRepaintOn()
Checks if the automatic repaint is on. |
boolean |
isConnectedLinesOn(int series)
Checks if the lines beween plots are turned on. |
boolean |
isFloatingOnLegendOn()
Checks if floating labels are displayed when the mouse moves over the actualLegend. |
boolean |
isGridAdjustmentOn(int edge)
Checks if runtime grid adjustment is on. |
boolean |
isPlotLabelsOn()
Checks if the plot labels are turned on. |
boolean |
isPlotSortingOn(int series)
Checks if the plots were sorted when they were loaded. |
boolean |
isRangeAdjusterOn(int adjuster)
Checks if the specified range adjuster is turned on. |
boolean |
isRangeOn(int side)
Checks if the specified range is on. |
boolean |
isSampleLabelsOn()
Checks if the plot labels are turned on. |
boolean |
isSelected(int series)
Checks if a series is selected. |
boolean |
isSeriesEmpty(int index)
Checks if the series contains any data. |
boolean |
isSeriesLabelsOn()
Checks if the floating series labels is turned on. |
boolean |
isSeriesOn(int series)
Checks if the series is on. |
boolean |
isTitleOn()
Checks if the title is turned on. |
boolean |
isXAxisOn()
Checks if the X axis is turned on. |
boolean |
isXValueLabelsOn()
Checks if the x value labels are turned on for any series. |
boolean |
isXValueLabelsOn(int series)
Checks if the x value labels are turned on for a specified series. |
boolean |
isXValueLinesOn()
Checks if the x value lines are on. |
boolean |
isYAxisOn()
Checks if the Y axis is turned on. |
boolean |
isYValueLabelsOn()
Checks if the y value labels are turned on for any series. |
boolean |
isYValueLabelsOn(int series)
Checks if the y value labels are turned on for a specified series. |
boolean |
isYValueLinesOn()
Checks if the y value lines are on. |
boolean |
isZoomOn()
Checks if zoom is turned on. |
java.awt.Image |
loadImage(java.lang.String name)
Loads an image from the disk. |
protected void |
processEvent(java.awt.AWTEvent event)
Handles the chart events. |
void |
removeExternalGraphics()
Removes external graphics context if there is one. |
void |
removeItemListener(java.awt.event.ItemListener l)
Removes the specified item listener from the chart. |
void |
reset()
Resets the chart data and features. |
void |
setAutoLabelSpacingOn(boolean on)
Turns on or off automatic bar label spacing. |
void |
setAutomaticRepaintOn(boolean state)
Turns on or off the automatic repaint. |
void |
setBackground(java.awt.Color color)
Sets the chart component background color, outside the chart grid. |
void |
setChartBackground(java.awt.Color color)
Sets the background color of the chart itself. |
void |
setChartForeground(java.awt.Color color)
Sets the foreground color of the chart itself. |
void |
setConnectedLinesOn(int series,
boolean on)
Turns on or off lines between plots for the specified sereis. |
void |
setExternalGraphics(java.awt.Graphics g,
java.awt.Image image)
Sets an external graphics context to paint with. |
void |
setFloatingOnLegendOn(boolean on)
Turn on or off floating labels when the mouse moves over the actualLegend. |
void |
setForeground(java.awt.Color color)
Sets the color of the labels. |
void |
setGraphInsets(int top,
int left,
int bottom,
int right)
Sets the insets between the graph itself and the chart component edges. |
void |
setGridAdjustmentOn(int edge,
boolean on)
Turns on or of runtime grid adjustment. |
void |
setGridImage(java.lang.String name)
Sets an image to be used as background for the chart grid. |
void |
setGridLine(int index,
double value)
Sets a single grid line value. |
void |
setGridLineColor(int index,
java.awt.Color color)
Sets a single grid line color. |
void |
setGridLineColors(java.awt.Color[] colors)
Sets the color of each vertical grid line. |
void |
setGridLines(double[] grid)
Sets the vertical grid lines positons. |
void |
setGridLinesColor(java.awt.Color color)
Sets the vertical grid lines color. |
void |
setLabel(java.lang.String name,
java.lang.String label)
Sets the specified label in the chart. |
void |
setLabelAngle(java.lang.String name,
int angle)
Sets the angle of the specified label. |
void |
setLineWidth(int series,
int width)
Sets the width of the line for the specified series. |
void |
setLocale(java.util.Locale locale)
Sets the locale used to format numbers. |
void |
setPlot(int series,
double x,
double y)
Sets an individual plot for the specified series with given x|y. |
void |
setPlot(int series,
double x,
double y,
int size)
Sets an individual plot for the specified series with given x|y. |
void |
setPlotImage(int series,
java.lang.String name)
Sets an image to be used as a highlight for a specified series. |
void |
setPlotLabels(int series,
java.lang.String[] labels)
Sets the plots labels for each plot in serie. |
void |
setPlotLabelsOn(boolean on)
Turns on the plot labels. |
void |
setPlotLabelStyle(int style)
Sets the style of the plot labels. |
void |
setPlots(int series,
double[][] plots)
Sets the x|y plots for the specified series. |
void |
setPlots(int series,
double[][] plots,
int size)
Sets the x|y plots for the specified series. |
void |
setPlots(int series,
double[][] plots,
int[] size)
Sets the x|y plots for the specified series. |
void |
setPlotSize(int series,
int size)
Sets the plot size for the specified series. |
void |
setPlotSize(int series,
int[] size)
Sets the plots size for each plot in serie. |
void |
setPlotSortingOn(int series,
boolean on)
This method should be called before setting the plots in order to turn on/off the plots sorting. |
void |
setPlotStyle(int style)
Sets the plot style for all the data series. |
void |
setPlotStyle(int series,
int style)
Sets the plot style for the specified data series. |
void |
setPreferredSize(int width,
int height)
Sets the preferred size of the chart. |
void |
setRangeAdjusterOn(int adjuster,
boolean on)
Turns on or off the range adjuster. |
void |
setRangeColor(int side,
java.awt.Color color)
Sets the color of the specified range. |
void |
setRangeFormatter(int index,
java.text.NumberFormat formatter)
Sets a number formatter for the specific range. |
void |
setRangeOn(int side,
boolean on)
Turns on or off the specified range. |
void |
setSelection(int series,
int sample,
boolean selected)
Marks a series as selected or deselected. |
void |
setSelection(int series,
int sample,
boolean selected,
boolean notify)
Marks a series as selected or deselected. |
void |
setSelection(int series,
int sample,
boolean selected,
boolean clear,
boolean notify)
Marks a series as selected or deselected. |
void |
setSeriesColor(int series,
java.awt.Color color)
Sets the color of the specified plot series. |
void |
setSeriesColors(java.awt.Color[] colors)
Sets colors for the plot series. |
void |
setSeriesCount(int count)
Sets the number of series. |
void |
setSeriesLabel(int series,
java.lang.String label)
Sets the specified series label. |
void |
setSeriesLabelColor(int series,
java.awt.Color color)
Sets the color of of the label for the specified series. |
void |
setSeriesLabels(java.lang.String[] labels)
Sets the series labels. |
void |
setSeriesLabelsOn(boolean on)
Turns on the floating series labels. |
void |
setSeriesLabelStyle(int style)
Sets the style of the series labels. |
void |
setSeriesOn(boolean on)
Turns the plot series on and off. |
void |
setSeriesOn(int series,
boolean on)
Turns the plot series on and off. |
void |
setTargetLabelsPosition(int position)
Sets the target labels position. |
void |
setTargetValueLine(java.lang.String id,
double value,
java.awt.Color color,
int style)
Sets a target value line with the specified ID, value, and color. |
void |
setThousandsDelimiter(java.lang.String delimiter)
Sets the delimiter for use in the display of numbers. |
void |
setTitle(java.lang.String title)
Sets the chart title. |
void |
setTitleOn(boolean on)
Turns on or off the chart title. |
void |
setValueLabelStyle(int style)
Sets the style of the value labels. |
void |
setXAxisColor(java.awt.Color color)
Sets the color for the X axis |
void |
setXAxisOn(boolean on)
Turns on or off the X axis. |
void |
setXCurrentLowerRange(double range)
Sets the X-axis current lower range. |
void |
setXCurrentUpperRange(double range)
Sets the X-axis current upper range. |
void |
setXLowerRange(double range)
Sets the X-axis lower range. |
void |
setXMaxValueLineCount(int count)
Sets the maximum number of X value lines there should be in the chart. |
void |
setXRangeDecimalCount(int count)
Sets the number of decimals for the X axis range labels. |
void |
setXRangeInterval(double interval)
Sets interval between the ticks on the X range. |
void |
setXRangeLabel(double x,
java.lang.String label)
Sets a single custom label on the X range axis. |
void |
setXRangeLabelColor(double x,
java.awt.Color color)
Sets color for the label with specified position. |
void |
setXRangeLabelColors(double[] x,
java.awt.Color[] colors)
Sets colors for the x-range labels. |
void |
setXRangeLabelLineOn(double x,
boolean lineOn)
Sets a boolean value which tells if a grid line should be displayed for the labels with given position. |
void |
setXRangeLabelLinesOn(double[] x,
boolean[] linesOn)
Sets boolean values telling if the grid lines should be displayed for the corresponding x-range labels. |
void |
setXRangeLabels(double[] x,
java.lang.String[] labels)
Sets the custom labels for the X range axis. |
void |
setXRangeLabelsColor(java.awt.Color c)
Sets color for all x-range labels. |
void |
setXRangeLabelStyle(int style)
Sets the style of the x-range labels. |
void |
setXUpperRange(double range)
Sets the X-axis upper range. |
void |
setXValueDecimalCount(int series,
int count)
Sets the number of decimals in the x values. |
void |
setXValueLabelsOn(boolean on)
Turns on or off the x value labels. |
void |
setXValueLabelsOn(int series,
boolean on)
Turns on or off the x value labels for the specified series. |
void |
setXValueLinesColor(java.awt.Color color)
Sets the color of the x value lines. |
void |
setXValueLinesOn(boolean on)
Turns on or off or x value lines. |
void |
setYAxisColor(java.awt.Color color)
Sets the color for the Y axis |
void |
setYAxisOn(boolean on)
Turns on or off Y axis. |
void |
setYCurrentLowerRange(double range)
Sets the Y-axis current lower range. |
void |
setYCurrentUpperRange(double range)
Sets the Y-axis current upper range. |
void |
setYLowerRange(double range)
Sets the Y-axis lower range. |
void |
setYMaxValueLineCount(int count)
Sets the maximum number of Y value lines there should be in the chart. |
void |
setYRangeDecimalCount(int count)
Sets the number of decimals for the Y axis range labels. |
void |
setYRangeInterval(double interval)
Sets interval between the ticks on the Y range. |
void |
setYUpperRange(double range)
Sets the Y-axis upper range. |
void |
setYValueDecimalCount(int series,
int count)
Sets the number of decimals in the y values. |
void |
setYValueLabelsOn(boolean on)
Turns on or off the y value labels. |
void |
setYValueLabelsOn(int series,
boolean on)
Turns on or off the y value labels for the specified series. |
void |
setYValueLinesColor(java.awt.Color color)
Sets the color of the y value lines. |
void |
setYValueLinesOn(boolean on)
Turns on or off or y value lines. |
void |
setZoomOn(boolean on)
Turns zoom on or off. |
java.lang.String |
toString()
Returns the title of the chart. |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BELOW
public static final int BELOW_AND_FLOATING
public static final int BOTTOM
public static final int CENTER
public static final int FLOATING
public static final int HORIZONTAL
public static final int LEFT
public static final int OVER
public static final int PLOT_STYLE_CIRCLE
public static final int PLOT_STYLE_CIRCLE_FILLED
public static final int PLOT_STYLE_CIRCLE_OPAQUE
public static final int PLOT_STYLE_DIAMOND
public static final int PLOT_STYLE_DIAMOND_FILLED
public static final int PLOT_STYLE_DIAMOND_OPAQUE
public static final int PLOT_STYLE_SQUARE
public static final int PLOT_STYLE_SQUARE_FILLED
public static final int PLOT_STYLE_SQUARE_OPAQUE
public static final int RIGHT
public static final int SIDE
public static final int TARGET_LINE_ID_AND_VALUE_LABEL
public static final int TARGET_LINE_ID_LABEL
public static final int TARGET_LINE_NO_LABEL
public static final int TARGET_LINE_VALUE_LABEL
public static final int TOP
public static final int UNDER
public static final int VERTICAL
Constructor Detail |
---|
public PlotterChart()
public PlotterChart(int seriesCount)
seriesCount
- The number of series for the chart.Method Detail |
---|
public void addImage(java.lang.String name, java.awt.Image image)
addImage
in class GenericChart
name
- The unique name of the imageimage
- The image to add, use null to remove the image.public void addItemListener(java.awt.event.ItemListener l)
addItemListener
in interface java.awt.ItemSelectable
l
- The item listener to add.removeItemListener(java.awt.event.ItemListener)
public void autoRepaint()
autoRepaint
in class GenericChart
protected int checkSelection(java.awt.Point point)
point
- The point to check for.
protected java.lang.String constructLabel(int series, int sample, int style, boolean paintSeriesOn, java.lang.String percentLabel)
constructLabel
in class GenericChart
series
- The series index.sample
- The sample index.style
- The style of the label: INSIDE, OUTSIDE, FLOATING or POINTING.paintSeriesOn
- True if the series label should be on.percentLabel
- A percent label for pie chart.
public java.awt.Image createImage_oldstyle(int width, int height)
createImage_oldstyle
in class GenericChart
width
- The width of the image in pixels.height
- The height of the image in pixels.public java.awt.Image createImage(int width, int height)
createImage
in class GenericChart
width
- The width of the image in pixels.height
- The height of the image in pixels.public void displayFloatingLabel(int series, int sample)
series
- The series index, -1 for no floating labels.sample
- The sample index, -1 for all the samples in a series.public java.lang.String formatNumber(double value, int decimals)
formatNumber
in class GenericChart
value
- The value to format.decimals
- The number of decimals to use.
public java.lang.String formatRangeNumber(int index, double value)
index
- The range index.value
- The value to format.
public java.awt.Color getChartBackground()
getChartBackground
in class GenericChart
public java.awt.Color getChartForeground()
getChartForeground
in class GenericChart
public java.awt.Insets getGraphInsets()
getGraphInsets
in class GenericChart
setGraphInsets(int, int, int, int)
public java.lang.String getGridImage()
public double getGridLine(int index)
index
- The index of the line to get value from.
public java.awt.Color getGridLineColor(int index)
index
- The index of the line to get color from.
public java.awt.Color[] getGridLineColors()
public double[] getGridLines()
protected double getHighestValue(int rangeIndex)
getHighestValue
in class GenericChart
rangeIndex
- The index of the range (0 or 1).
public java.awt.Image getImage(int width, int height)
getImage
in class GenericChart
width
- The width of the chart in pixels.height
- The height of the chart in pixels.
public java.awt.Image getImage(java.lang.String name)
getImage
in class GenericChart
name
- The name of the image.
public java.lang.String getLabel(java.lang.String name)
getLabel
in class GenericChart
name
- The name of the label.
setLabel(java.lang.String, java.lang.String)
public int getLabelAngle(java.lang.String name)
getLabelAngle
in class GenericChart
name
- The name of the label.
setLabel(java.lang.String, java.lang.String)
public java.awt.Color getLegendColor(int index)
getLegendColor
in class GenericChart
index
- The index of the legend entry to get color from.
public java.lang.String[] getLegendLabels()
getLegendLabels
in class GenericChart
GenericChart.setLegendLabels(java.lang.String[])
public int getLineWidth(int series)
series
- The index of the data series.
public java.util.Locale getLocale()
getLocale
in class GenericChart
protected double getLowestValue(int rangeIndex)
getLowestValue
in class GenericChart
rangeIndex
- The index of the range (0 or 1)public java.awt.Dimension getMinimumSize()
getMinimumSize
in class GenericChart
public java.lang.String getPlotImage(int series)
series
- The series of the highlight image.
public java.lang.String getPlotLabel(int series, int index)
series
- The index of the series (0-based).index
- The index of the plot insi de the series(0-based).
public java.lang.String[] getPlotLabels(int series)
series
- The index of the series (0-based).
public int getPlotLabelStyle()
public double[][] getPlots(int series)
series
- The index of the series (0-based).
public int getPlotSize(int series)
series
- The index of the series (0-based).
public int getPlotSize(int series, int index)
series
- The index of the series (0-based).index
- The index of the plot inside the series (0-based).
public int getPlotStyle(int series)
series
- The series to get the style for.
java.lang.IllegalArgumentException
- if the series is invalid.public java.awt.Dimension getPreferredSize()
getPreferredSize
in class GenericChart
public java.awt.Color getRangeColor(int side)
side
- The side of the range (LEFT, RIGHT, TOP, BOTTOM).public java.text.NumberFormat getRangeFormatter(int index)
index
- The index of the range.
public int getSampleCount()
getSampleCount
in class GenericChart
public int getSampleCount(int series)
series
- The series index.
public java.awt.Point getSamplePoint(int serie, int sample)
serie
- The series indexsample
- The sample index.
public java.lang.Object[] getSelectedObjects()
getSelectedObjects
in interface java.awt.ItemSelectable
public int getSelectedSample()
public int getSelectedSeries()
public java.awt.Color getSeriesColor(int series)
series
- The series to set color for.public java.awt.Color[] getSeriesColors()
public int getSeriesCount()
getSeriesCount
in class GenericChart
public java.lang.String getSeriesLabel(int series)
series
- The index of the series (0-based).
java.lang.IllegalArgumentException
- if the index is invalid.public java.awt.Color getSeriesLabelColor(int series)
series
- The index of the series (0-based).
java.lang.IllegalArgumentException
- if the series index is invalid.public java.lang.String[] getSeriesLabels()
public int getSeriesLabelStyle()
public static java.lang.String[] getStringValues(java.lang.String string, java.lang.String delimiter)
string
- The delimited string.delimiter
- The delimiter.
public int getTargetLabelsPosition()
public java.lang.String getThousandsDelimeter()
getThousandsDelimeter
in class GenericChart
public java.lang.String getTitle()
getTitle
in class GenericChart
setTitle(java.lang.String)
public int getValueLabelStyle()
setValueLabelStyle(int)
public static java.lang.String getVersion()
public java.awt.Color getXAxisColor()
public double getXCurrentLowerRange()
public double getXCurrentUpperRange()
public double getXLowerRange()
public int getXMaxValueLineCount()
setXMaxValueLineCount(int)
public int getXRangeDecimalCount()
public double getXRangeInterval()
public java.lang.String getXRangeLabel(double x)
x
- The X position of the label.
public java.awt.Color getXRangeLabelColor(double x)
x
- The X position of the label.
public java.awt.Color[] getXRangeLabelColors()
public boolean getXRangeLabelLineOn(double x)
x
- The X position of the label.
public boolean[] getXRangeLabelLinesOn()
public java.lang.String[] getXRangeLabels()
public java.awt.Color getXRangeLabelsColor()
public double[] getXRangeLabelsPos()
public int getXRangeLabelStyle()
public double getXUpperRange()
public int getXValueDecimalCount(int series)
series
- The index of the series.public java.awt.Color getXValueLinesColor()
public java.awt.Color getYAxisColor()
public double getYCurrentLowerRange()
public double getYCurrentUpperRange()
public double getYLowerRange()
public int getYMaxValueLineCount()
setYMaxValueLineCount(int)
public int getYRangeDecimalCount()
public double getYRangeInterval()
public double getYUpperRange()
public int getYValueDecimalCount(int series)
series
- The index of the series.public java.awt.Color getYValueLinesColor()
public boolean isAutoLabelSpacingOn()
setAutoLabelSpacingOn(boolean)
public boolean isAutomaticRepaintOn()
isAutomaticRepaintOn
in class GenericChart
setAutomaticRepaintOn(boolean)
public boolean isConnectedLinesOn(int series)
series
- The index of the series (0-based).
public boolean isFloatingOnLegendOn()
isFloatingOnLegendOn
in class GenericChart
setFloatingOnLegendOn(boolean)
public boolean isGridAdjustmentOn(int edge)
edge
- TOP, LEFT, BOTTOM, or RIGHT.
public boolean isPlotLabelsOn()
public boolean isPlotSortingOn(int series)
series
- The index of the series (0-based).
public boolean isRangeAdjusterOn(int adjuster)
adjuster
- The adjuster to turn on or off (RIGHT or BOTTOM)
public boolean isRangeOn(int side)
side
- The range (RIGHT, LEFT, TOP, BOTTOM).
public boolean isSampleLabelsOn()
public boolean isSelected(int series)
series
- The series index .
java.lang.IllegalArgumentException
- If the series is invalid.public boolean isSeriesEmpty(int index)
isSeriesEmpty
in class GenericChart
index
- The series index.
public boolean isSeriesLabelsOn()
public boolean isSeriesOn(int series)
series
- The plot series to check.
java.lang.IllegalArgumentException
- if the series is invalid.public boolean isTitleOn()
isTitleOn
in class GenericChart
public boolean isXAxisOn()
public boolean isXValueLabelsOn()
public boolean isXValueLabelsOn(int series)
series
- The series to check for.
public boolean isXValueLinesOn()
public boolean isYAxisOn()
public boolean isYValueLabelsOn()
public boolean isYValueLabelsOn(int series)
series
- The series to check for.
public boolean isYValueLinesOn()
public boolean isZoomOn()
isZoomOn
in class GenericChart
public java.awt.Image loadImage(java.lang.String name)
loadImage
in class GenericChart
name
- The file name of the image.
protected void processEvent(java.awt.AWTEvent event)
processEvent
in class GenericChart
event
- The event to process.public void removeExternalGraphics()
removeExternalGraphics
in class GenericChart
setExternalGraphics(java.awt.Graphics, java.awt.Image)
public void removeItemListener(java.awt.event.ItemListener l)
removeItemListener
in interface java.awt.ItemSelectable
l
- The item listener to remove.addItemListener(java.awt.event.ItemListener)
public void reset()
reset
in class GenericChart
public void setAutoLabelSpacingOn(boolean on)
on
- True for on, false for off.public void setAutomaticRepaintOn(boolean state)
setAutomaticRepaintOn
in class GenericChart
state
- True for on, false for off.public void setBackground(java.awt.Color color)
setBackground
in class GenericChart
color
- The color to use.setChartBackground(java.awt.Color)
public void setChartBackground(java.awt.Color color)
setChartBackground
in class GenericChart
color
- The color to use.public void setChartForeground(java.awt.Color color)
setChartForeground
in class GenericChart
color
- The color to use.public void setConnectedLinesOn(int series, boolean on)
series
- The index of the series (0-based).on
- True for on, false for off.public void setExternalGraphics(java.awt.Graphics g, java.awt.Image image)
setExternalGraphics
in class GenericChart
g
- The graphics context used for painting.image
- The image to which graphics context belongs.
See here for an example.public void setFloatingOnLegendOn(boolean on)
setFloatingOnLegendOn
in class GenericChart
on
- True for on, false for off.public void setForeground(java.awt.Color color)
setForeground
in class GenericChart
color
- The color to use.setChartBackground(java.awt.Color)
public void setGraphInsets(int top, int left, int bottom, int right)
setGraphInsets
in class GenericChart
top
- The top insets in pixels.left
- The left insets in pixels.bottom
- The bottom insets in pixels.right
- The right insets in pixels.public void setGridAdjustmentOn(int edge, boolean on)
edge
- TOP,LEFT,BOTTOM, or RIGHT.on
- True or on, false for off.public void setGridImage(java.lang.String name)
setGridImage
in class GenericChart
name
- The image to use, null if you want to remove grid image.addImage(java.lang.String, java.awt.Image)
public void setGridLine(int index, double value)
index
- The index of the line to set value for.value
- The value to set.
java.lang.IllegalArgumentException
- if the index is invalid.public void setGridLineColor(int index, java.awt.Color color)
index
- The index of the line to set Color for.color
- The color to set for the grid line.
java.lang.IllegalArgumentException
- if the index is invalid.public void setGridLineColors(java.awt.Color[] colors)
colors
- The array with grid lines colors.public void setGridLines(double[] grid)
grid
- The array with grid lines position values.public void setGridLinesColor(java.awt.Color color)
color
- The color to set for all lines.public void setLabel(java.lang.String name, java.lang.String label)
setLabel
in class GenericChart
name
- The name of the label.label
- The label to use, null for no label.public void setLabelAngle(java.lang.String name, int angle)
setLabelAngle
in class GenericChart
name
- The name of the label.angle
- The angle to use for the label.public void setLineWidth(int series, int width)
series
- The series number, -1 for all.width
- The width in pixels, default is 1.public void setLocale(java.util.Locale locale)
setLocale
in class GenericChart
locale
- The locale to use, null for the default locale.public void setPlot(int series, double x, double y)
series
- The index of the series (0-based).x
- The x coordinate of the plot.y
- The y coordinate of the plot.public void setPlot(int series, double x, double y, int size)
series
- The index of the series (0-based).x
- The x coordinate of the plot.y
- The y coordinate of the plot.size
- The size of the plot. (-1 for default size)public void setPlotImage(int series, java.lang.String name)
series
- The series to set hightlight image for.name
- The image to use, null for the default highlight.addImage(java.lang.String, java.awt.Image)
public void setPlotLabels(int series, java.lang.String[] labels)
series
- The index of the series (0-based).labels
- The array of size values for each plot.public void setPlotLabelsOn(boolean on)
on
- True for on, false for off.public void setPlotLabelStyle(int style)
style
- BELOW, FLOATING, BELOW_AND_FLOATING.public void setPlots(int series, double[][] plots)
series
- The index of the series (0-based).plots
- The two-dimensional array of plot coordinates [index][x|y] (x=0, y=1).public void setPlots(int series, double[][] plots, int size)
series
- The index of the series (0-based).plots
- The two-dimensional array of plot coordinates [index][x|y] (x=0, y=1).size
- The size of the plots (-1 means use the existing size).public void setPlots(int series, double[][] plots, int[] size)
series
- The index of the series (0-based).plots
- The two-dimensional array of plot coordinates [index][x|y] (x=0, y=1).size
- The array of size values for each plot.public void setPlotSize(int series, int size)
series
- The index of the series (0-based, use -1 to set size for all series).size
- The size of the plots.public void setPlotSize(int series, int[] size)
series
- The index of the series (0-based, use -1 to set size for all series).size
- The array of size values for each plot.public void setPlotSortingOn(int series, boolean on)
series
- The index of the series (0-based, -1 for all).on
- True for on, false for off.public void setPlotStyle(int style)
style
- PLOT_STYLE_CIRCLE, PLOT_STYLE_CIRCLE_OPAQUE,
PLOT_STYLE_CIRCLE_FILLED, PLOT_STYLE_SQUARE,
PLOT_STYLE_SQUARE_OPAQUE, PLOT_STYLE_SQUARE_FILLED,
PLOT_STYLE_DIAMOND, PLOT_STYLE_DIAMOND_OPAQUE,
PLOT_STYLE_DIAMOND_FILLED.public void setPlotStyle(int series, int style)
series
- The index of the series.style
- PLOT_STYLE_CIRCLE, PLOT_STYLE_CIRCLE_OPAQUE,
PLOT_STYLE_CIRCLE_FILLED, PLOT_STYLE_SQUARE,
PLOT_STYLE_SQUARE_OPAQUE, PLOT_STYLE_SQUARE_FILLED,
PLOT_STYLE_DIAMOND, PLOT_STYLE_DIAMOND_OPAQUE,
PLOT_STYLE_DIAMOND_FILLED.
java.lang.IllegalArgumentException
- if the series is invalid.public void setPreferredSize(int width, int height)
setPreferredSize
in class GenericChart
width
- The preferred width.height
- The preferred height.public void setRangeAdjusterOn(int adjuster, boolean on)
adjuster
- The adjuster to turn on or off (RIGHT or BOTTOM)on
- True for on, false for off.public void setRangeColor(int side, java.awt.Color color)
side
- The side of the range (LEFT, RIGHT, TOP, BOTTOM).color
- The color to use for the range.public void setRangeFormatter(int index, java.text.NumberFormat formatter)
index
- The index of the range.formatter
- The number formatter to set.public void setRangeOn(int side, boolean on)
side
- The range to be turned on or off: RIGHT, LEFT, TOP, BOTTOMon
- True for on, false of off.public void setSelection(int series, int sample, boolean selected)
series
- The series index.selected
- True for selected, false for deselected.
java.lang.IllegalArgumentException
- If the series or series is invalid.public void setSelection(int series, int sample, boolean selected, boolean notify)
series
- The series index.selected
- True for selected, false for deselected.notify
- True if listeners should be notified, false otherwise.
java.lang.IllegalArgumentException
- If the series or series is invalid.public void setSelection(int series, int sample, boolean selected, boolean clear, boolean notify)
setSelection
in class GenericChart
series
- The series index.selected
- True for selected, false for deselected.clear
- True if the other series should be cleared.notify
- True if the listeners should be notified.sample
- The sample index.
java.lang.IllegalArgumentException
- If the series is invalid.public void setSeriesColor(int series, java.awt.Color color)
series
- The series to set color for (0-based).color
- The color to be used for the plot series.public void setSeriesColors(java.awt.Color[] colors)
colors
- An array with the colors to be used, null for default colors.public void setSeriesCount(int count)
count
- The number of series.public void setSeriesLabel(int series, java.lang.String label)
series
- The index of the series (0-based).label
- The label of the series.
java.lang.IllegalArgumentException
- if the index is invalid.public void setSeriesLabelColor(int series, java.awt.Color color)
series
- The index of the series (0-based).color
- The color to use, null for the default color.
java.lang.IllegalArgumentException
- if the series index is invalid.public void setSeriesLabels(java.lang.String[] labels)
labels
- The labels to use.public void setSeriesLabelsOn(boolean on)
on
- True for on, false for off.public void setSeriesLabelStyle(int style)
style
- FLOATING, CENTER, OVER, UNDER.public void setSeriesOn(boolean on)
on
- True for on, false for off.public void setSeriesOn(int series, boolean on)
series
- The series to turn on/off.on
- True for on, false for off.
java.lang.IllegalArgumentException
- if the series is invalid.public void setTargetLabelsPosition(int position)
position
- 0 for left, 1 for rightpublic void setTargetValueLine(java.lang.String id, double value, java.awt.Color color, int style)
id
- The id of the target line.value
- The value where the line should appear.color
- The color of the line, if null, the line is removed.style
- TARGET_LINE_NO_LABEL, TARGET_LINE_ID_LABEL,
TARGET_LINE_VALUE_LABEL, or TARGET_LINE_ID_AND_VALUE_LABEL.
java.lang.IllegalArgumentException
- if the style is invalid.public void setThousandsDelimiter(java.lang.String delimiter)
setThousandsDelimiter
in class GenericChart
delimiter
- The delimiter to set, use null for default, or off for no thousands grouping.public void setTitle(java.lang.String title)
setTitle
in class GenericChart
title
- The title to set.getTitle()
,
setTitleOn(boolean)
public void setTitleOn(boolean on)
setTitleOn
in class GenericChart
on
- True for on, false for off.setTitle(java.lang.String)
public void setValueLabelStyle(int style)
style
- CENTER, OVER, FLOATING.public void setXAxisColor(java.awt.Color color)
color
- The color of the axispublic void setXAxisOn(boolean on)
on
- True for on, false for off.public void setXCurrentLowerRange(double range)
range
- The range to set.public void setXCurrentUpperRange(double range)
range
- The range to set.public void setXLowerRange(double range)
range
- The range to set.public void setXMaxValueLineCount(int count)
count
- The grid line count.public void setXRangeDecimalCount(int count)
count
- The number of decimals.public void setXRangeInterval(double interval)
interval
- The interval between the to range ticks.public void setXRangeLabel(double x, java.lang.String label)
x
- The X position of the label.label
- The labels itself.public void setXRangeLabelColor(double x, java.awt.Color color)
x
- The X position of the label.color
- The color to paint label with.public void setXRangeLabelColors(double[] x, java.awt.Color[] colors)
x
- Array of X position of the labels.colors
- Array of Color values one for each label.public void setXRangeLabelLineOn(double x, boolean lineOn)
x
- The X position of the label.lineOn
- Tells if a grid line should be painted for this label.public void setXRangeLabelLinesOn(double[] x, boolean[] linesOn)
x
- Array of X position of the labels.linesOn
- Array of boolean values telling if a grid line should be painted for the corresponding lable.public void setXRangeLabels(double[] x, java.lang.String[] labels)
x
- Array of X position of the labels.labels
- Array of labels displayed on the X axis.public void setXRangeLabelsColor(java.awt.Color c)
c
- Color to paint x-range labels with.public void setXRangeLabelStyle(int style)
style
- SIDE, BELOW, FLOATING, BELOW_AND_FLOATING.public void setXUpperRange(double range)
range
- The range to set.public void setXValueDecimalCount(int series, int count)
series
- The index of the series (-1 for all).count
- The number of decimals to use.public void setXValueLabelsOn(boolean on)
on
- True for on, false for off.public void setXValueLabelsOn(int series, boolean on)
series
- The index of the series (-1) for all.on
- True for on, false for off.public void setXValueLinesColor(java.awt.Color color)
color
- The color to use for the x value lines.public void setXValueLinesOn(boolean on)
on
- True for on, false of off.public void setYAxisColor(java.awt.Color color)
color
- The color of the axispublic void setYAxisOn(boolean on)
on
- True for on, false for off.public void setYCurrentLowerRange(double range)
range
- The range to set.public void setYCurrentUpperRange(double range)
range
- The range to set.public void setYLowerRange(double range)
range
- The range to set.public void setYMaxValueLineCount(int count)
count
- The grid line count.public void setYRangeDecimalCount(int count)
count
- The number of decimals.public void setYRangeInterval(double interval)
interval
- The interval between the to range ticks.public void setYUpperRange(double range)
range
- The range to set.public void setYValueDecimalCount(int series, int count)
series
- The index of the series (-1 for all).count
- The number of decimals to use.public void setYValueLabelsOn(boolean on)
on
- True for on, false for off.public void setYValueLabelsOn(int series, boolean on)
series
- The index of the series (-1) for all.on
- True for on, false for off.public void setYValueLinesColor(java.awt.Color color)
color
- The color to use for the y value lines.public void setYValueLinesOn(boolean on)
on
- True for on, false of off.public void setZoomOn(boolean on)
setZoomOn
in class GenericChart
on
- True for on, false for off.public java.lang.String toString()
toString
in class GenericChart
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |