|
||||||||
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.Chart com.objectplanet.chart.LineChart
public class LineChart
This line chart component enables you to add a line chart to your java
applications with just a few lines of code.
A simple line chart can be created with the following code:
See here for a list of parameters to
set for the line chart.
LineChart chart = new LineChart();
long[] values = new long[] {20, 10, 30, 50, 40};
chart.setSampleValues(values);
A chart with several data series can be created with the following code:
LineChart chart = new LineChart(4, 10, 100);
double[] series0 = new double[] {98,23,46,89,72,36,49,87,23,64};
double[] series1 = new double[] {80,17,92,63,98,16,53,86,52,34};
double[] series2 = new double[] {29,83,46,93,80,72,36,42,98,36};
double[] series3 = new double[] {45,86,90,86,54,65,98,75,44,54};
chart.setSampleValues(0, series0);
chart.setSampleValues(1, series1);
chart.setSampleValues(2, series2);
chart.setSampleValues(3, series3);
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 |
BEHIND_LINE_LAYOUT
The 3D lines are located behind each other |
static int |
LINE_STYLE_LINE
Paint series as a normal line |
static int |
LINE_STYLE_TUBE
Paint series as a tube line |
static int |
SAME_LEVEL_LINE_LAYOUT
the 3D lines are located at the same level |
static int |
SAMPLE_HIGHLIGHT_CIRCLE
Use a circle as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_CIRCLE_FILLED
Use a filled circle as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE
Use an opaque circle as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_DIAMOND
Use a diamond as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_DIAMOND_FILLED
Use a filled diamond as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE
Use an opaque diamond as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_SQUARE
Use a square as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_SQUARE_FILLED
Use a filled square as a sample highlighter on a line. |
static int |
SAMPLE_HIGHLIGHT_SQUARE_OPAQUE
Use an opaque square as a sample highlighter on a line. |
Fields inherited from class com.objectplanet.chart.Chart |
---|
BELOW, BELOW_AND_FLOATING, BOTTOM, chartData, FLOATING, HORIZONTAL, INSIDE, LEFT, OUTSIDE, POINTING, RIGHT, TARGET_LINE_ID_AND_VALUE_LABEL, TARGET_LINE_ID_LABEL, TARGET_LINE_NO_LABEL, TARGET_LINE_VALUE_LABEL, TOP, VERTICAL, visibleSamples |
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 | |
---|---|
LineChart()
Creates a line chart with one series, 5 samples, and a range of 0-100. |
|
LineChart(int seriesCount,
int sampleCount,
double range)
Creates a line chart with the specified number of series, the number of samples per serie, and the chart range. |
|
LineChart(int seriesCount,
int sampleCount,
double range,
double lowerRange)
Creates a line chart with the specified number of series, the number of samples per serie, and the chart range. |
Method Summary | |
---|---|
protected void |
checkDataIntegrity()
Makes sure the linechart specific data has the same number of series and samples as the chart data has. |
ChartSample |
checkSelection(java.awt.Point point)
This method is called when the user releases the mouse and checks if the given point is inside a bar or a legend label. |
int[] |
getArea(int index)
Gets the area bounding lines series by it's index. |
java.awt.Color |
getAreaColor(int index)
Gets areas color value by it's index. |
java.awt.Color |
getAreaColor2(int index)
Gets areas secondary color color value by it's index. |
protected double |
getHighestValue(int range)
Gets the highest value in the chart larger than 0. |
java.lang.String |
getLegendImage(int index)
Gets a legend entry's image name. |
java.lang.String[] |
getLegendLabels()
Gets the legend labels. |
double |
getLine3DDepth(int series)
Gets the current 3D depth of the given series line. |
int |
getLine3DLayout()
Gets the current bar type in multiple series charts. |
float[] |
getLineStroke(int series)
Gets the array describing type of the current serie line. |
int |
getLineStyle(int series)
Gets the style of the given series line. |
int |
getLineWidth(int series)
Gets the current width of the given series line. |
double |
getMaxValue(int serie)
Gets the maximum value in the chart. |
java.lang.String |
getSampleHighlightImage(int series,
int sample)
Gets a sample highlight image name. |
int |
getSampleHighlightSize(int series)
Gets the sample highlight size. |
int |
getSampleHighlightStyle(int series)
Gets the sample highlight style. |
java.awt.Point |
getSamplePoint(int serie,
int sample)
Gets the coordinates of the specified sample. |
int |
getValuePosition(double value)
Gets the position in the chart of the specified value. |
boolean |
isAutoLabelSpacingOn()
Gets the state of the automatic label spacing. |
boolean |
isConnectedLinesOn(int serie)
Checks if lines with missing values are connected. |
boolean |
isMissingValuesInterpolated()
Check if the missig sample values are calculated autmatically in the stacked mode |
boolean |
isOutlineOn(int serie)
Checks if the bar outline is turned on or off. |
boolean |
isRightToLeftScrollingOn()
Checks if the right to left scrolling is turned on. |
boolean |
isSampleHighlightOn(int series)
Checks if the sample highlight is turned on or off for the series. |
boolean |
isSampleHighlightOn(int series,
int sample)
Checks if the sample highlight is turned on or off for a sample. |
boolean |
isSeriesLineOn(int serie)
Checks if the specified line is on. |
boolean |
isStackedOn()
Checks if stacked lines are turned on. |
protected void |
paint3DLine(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
int y3,
java.awt.Color color,
boolean top,
boolean right,
boolean outlined)
Paints the 3D part of a line. |
protected void |
paintLine(java.awt.Graphics g,
int serie,
java.awt.Rectangle gridBounds,
java.awt.Rectangle dataBounds,
java.awt.Color color,
boolean selected)
Paints the line of one series. |
protected void |
paintSampleHighlight(java.awt.Graphics g,
int serie,
int sample,
int x,
int y,
java.awt.Color color)
Paints the sample highlight for a point. |
void |
reset()
Resets the chart data and features. |
void |
setArea(int index,
int line1,
int line2)
Sets an area between the two line series to be filled with a specific color. |
void |
setAreaColor(int index,
java.awt.Color color)
Sets color for a specified area. |
void |
setAreaColor2(int index,
java.awt.Color color)
Sets the secondary color for a specified area. |
void |
setAutoLabelSpacingOn(boolean on)
Turns on or off automatic sample label spacing. |
void |
setConnectedLinesOn(int serie,
boolean on)
Connects lines with missing values. |
void |
setLine3DDepth(int series,
double depth)
Sets the 3D depth of the specified line. |
void |
setLine3DLayout(int layout)
Sets the line layout in multiple series charts in 3D mode. |
void |
setLineStroke(int series,
float[] dash)
Sets an array of values to use as repeating dash lengths and clear sections. |
void |
setLineStyle(int series,
int style)
Sets the style of the data series lines. |
void |
setLineWidth(int series,
int width)
Sets the width of the specified line. |
void |
setMissingValuesInterpolated(boolean on)
Turns on the automatic calculation of the missing sample values in the stacked mode |
void |
setOutlineOn(int serie,
boolean on)
Turns on or off the line or area outline. |
void |
setRightToLeftScrollingOn(boolean state)
Turns on right to left scrolling when adding new values. |
void |
setSampleColors(java.awt.Color[] colors)
Sets the sample colors. |
void |
setSampleHighlightImage(int series,
int sample,
java.lang.String name)
Sets an image to be used as a highlight for a specified sample. |
void |
setSampleHighlightOn(boolean on)
Turns on or off the sample highlight for the data series. |
void |
setSampleHighlightOn(int series,
boolean on)
Turns on or off the sample highlight for a data series. |
void |
setSampleHighlightOn(int series,
int sample,
boolean on)
Turns on or off the sample highlight for a sample in a data series. |
void |
setSampleHighlightStyle(int style,
int size)
Sets the sample highlight style for all the data series. |
void |
setSampleHighlightStyle(int serie,
int style,
int size)
Sets the sample highlight style for the specified data series. |
void |
setSeriesLineOn(boolean state)
Turns on or off the series lines. |
void |
setSeriesLineOn(int serie,
boolean state)
Turns on or off the specified series line. |
void |
setStackedOn(boolean on)
Turns on or off stacked lines. |
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 BEHIND_LINE_LAYOUT
public static final int LINE_STYLE_LINE
public static final int LINE_STYLE_TUBE
public static final int SAME_LEVEL_LINE_LAYOUT
public static final int SAMPLE_HIGHLIGHT_CIRCLE
public static final int SAMPLE_HIGHLIGHT_CIRCLE_FILLED
public static final int SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE
public static final int SAMPLE_HIGHLIGHT_DIAMOND
public static final int SAMPLE_HIGHLIGHT_DIAMOND_FILLED
public static final int SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE
public static final int SAMPLE_HIGHLIGHT_SQUARE
public static final int SAMPLE_HIGHLIGHT_SQUARE_FILLED
public static final int SAMPLE_HIGHLIGHT_SQUARE_OPAQUE
Constructor Detail |
---|
public LineChart()
public LineChart(int seriesCount, int sampleCount, double range)
seriesCount
- The number of sample series.sampleCount
- The number of samples per series.range
- The upper range of the chart.
java.lang.IllegalArgumentException
- If the seriesCount is less than 1public LineChart(int seriesCount, int sampleCount, double range, double lowerRange)
seriesCount
- The number of sample series.sampleCount
- The number of samples per series.range
- The upper range of the chart.lowerRange
- The lower range of the chart.
java.lang.IllegalArgumentException
- If the seriesCount is less than 1Method Detail |
---|
protected void checkDataIntegrity()
checkDataIntegrity
in class Chart
public ChartSample checkSelection(java.awt.Point point)
checkSelection
in class Chart
point
- The point clicked on.
public int[] getArea(int index)
index
- The index of the area.
public java.awt.Color getAreaColor(int index)
index
- The index of the area.
public java.awt.Color getAreaColor2(int index)
index
- The index of the area.protected double getHighestValue(int range)
getHighestValue
in class Chart
range
- The index of the range (0 or 1).
public java.lang.String getLegendImage(int index)
getLegendImage
in class GenericChart
index
- The index of the legend entry.
public java.lang.String[] getLegendLabels()
getLegendLabels
in class Chart
GenericChart.setLegendLabels(java.lang.String[])
public double getLine3DDepth(int series)
series
- The index of the data series.
public int getLine3DLayout()
public float[] getLineStroke(int series)
series
- The index of the data series.
public int getLineStyle(int series)
series
- The index of the data series.
public int getLineWidth(int series)
series
- The index of the data series.
public double getMaxValue(int serie)
getMaxValue
in class Chart
serie
- The index of the series.public java.lang.String getSampleHighlightImage(int series, int sample)
series
- The index of the series line.sample
- The index of the sample point.
public int getSampleHighlightSize(int series)
series
- The series to get the size for.
java.lang.IllegalArgumentException
- if the series is invalid.public int getSampleHighlightStyle(int series)
series
- The series to get the style for.
java.lang.IllegalArgumentException
- if the series is invalid.public java.awt.Point getSamplePoint(int serie, int sample)
serie
- The series indexsample
- The sample index.
public int getValuePosition(double value)
value
- The value to find the position for.
public boolean isAutoLabelSpacingOn()
setAutoLabelSpacingOn(boolean)
public boolean isConnectedLinesOn(int serie)
serie
- The index of the series to check, -1 for all.
setConnectedLinesOn(int, boolean)
public boolean isMissingValuesInterpolated()
public boolean isOutlineOn(int serie)
public boolean isRightToLeftScrollingOn()
setRightToLeftScrollingOn(boolean)
public boolean isSampleHighlightOn(int series)
isSampleHighlightOn
in class GenericChart
series
- The data series.
java.lang.IllegalArgumentException
- if the series or sample is invalid.public boolean isSampleHighlightOn(int series, int sample)
series
- The data series where the sample is.sample
- The sample to check.
public boolean isSeriesLineOn(int serie)
serie
- The index of the data series.
setSeriesLineOn(int, boolean)
public boolean isStackedOn()
setStackedOn(boolean)
protected void paint3DLine(java.awt.Graphics g, int x1, int y1, int x2, int y2, int y3, java.awt.Color color, boolean top, boolean right, boolean outlined)
g
- The graphics context to paint with.x1
- The beginning of the line.y1
- The beginning of the line.x2
- The end of the line.y2
- The end of the line.y3
- The bottom of the stacked linecolor
- The color of the line.top
- True if the top should be painted.right
- True if the right edge should be painted.outlined
- True if the 3D line should be outlined with a darker color.protected void paintLine(java.awt.Graphics g, int serie, java.awt.Rectangle gridBounds, java.awt.Rectangle dataBounds, java.awt.Color color, boolean selected)
g
- The graphics context to use.serie
- The index of the series to paint (0-based).gridBounds
- The chart grid bounds.dataBounds
- The bounds to paint the data in (same or larger as bonds).color
- The color of the line.selected
- True if the series is selected.protected void paintSampleHighlight(java.awt.Graphics g, int serie, int sample, int x, int y, java.awt.Color color)
g
- The graphics context used to paint with.serie
- The index of the serie.x
- The x-position of the sample.y
- The y-position of the sample.color
- The color of the sample highlight.public void reset()
reset
in class Chart
public void setArea(int index, int line1, int line2)
index
- The index of the arealine1
- The bounding line.line2
- The second bounding line.public void setAreaColor(int index, java.awt.Color color)
index
- The index of the areacolor
- The color to paint area with.public void setAreaColor2(int index, java.awt.Color color)
index
- The index of the areacolor
- The secondary color of the gradient fill to paint area with.public void setAutoLabelSpacingOn(boolean on)
on
- True for on, false for off.public void setConnectedLinesOn(int serie, boolean on)
serie
- The index of the series, -1 for all.on
- True for on, false for off.public void setLine3DDepth(int series, double depth)
series
- The series number, -1 for all.depth
- The depth from 0.0 to 1.0.public void setLine3DLayout(int layout)
layout
- BEHIND_LINE_LAYOUT, SAME_LEVEL_LINE_LAYOUT.
java.lang.IllegalArgumentException
- If the type is not valid.public void setLineStroke(int series, float[] dash)
series
- The series number, -1 for all.dash
- The array of values to use as repeating dashes and clear sections.
Use null for the plain line.public void setLineStyle(int series, int style)
series
- The series number, -1 for all.style
- LINE_STYLE_LINE (default), LINE_STYLE_TUBE.public void setLineWidth(int series, int width)
series
- The series number, -1 for all.width
- The width in pixels, default is 2.public void setMissingValuesInterpolated(boolean on)
on
- True of false.public void setOutlineOn(int serie, boolean on)
serie
- The line serie to outline. If serie == -1 the parameter applies to all lines
in the chart.on
- True if on, false for off.public void setRightToLeftScrollingOn(boolean state)
state
- True for on, false for off. Default is off.public void setSampleColors(java.awt.Color[] colors)
setSampleColors
in class Chart
colors
- An array with the colors to be used, null for default colors.public void setSampleHighlightImage(int series, int sample, java.lang.String name)
series
- The series to set hightlight image for.sample
- The sample to set hightlight image for.name
- The image to use, null for the default highlight.GenericChart.addImage(java.lang.String, java.awt.Image)
public void setSampleHighlightOn(boolean on)
on
- True for on, false for off.public void setSampleHighlightOn(int series, boolean on)
series
- The series to turn highlights on or off for.on
- True for on, false for off.
java.lang.IllegalArgumentException
- if the series is invalid.public void setSampleHighlightOn(int series, int sample, boolean on)
series
- The series where the sample is located.sample
- The sample on that serie to turn on or off.on
- True for on, false for off.
java.lang.IllegalArgumentException
- if the series is invalid.public void setSampleHighlightStyle(int style, int size)
style
- SAMPLE_HIGHLIGHT_CIRCLE, SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE,
SAMPLE_HIGHLIGHT_CIRCLE_FILLED, SAMPLE_HIGHLIGHT_SQUARE,
SAMPLE_HIGHLIGHT_SQUARE_OPAQUE, SAMPLE_HIGHLIGHT_SQUARE_FILLED,
SAMPLE_HIGHLIGHT_DIAMOND, SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE,
SAMPLE_HIGHLIGHT_DIAMOND_FILLED.size
- The size of the circle or square.
java.lang.IllegalArgumentException
- if the type is invalid.
java.lang.IndexOutOfBoundsException
- if the series is invalid.public void setSampleHighlightStyle(int serie, int style, int size)
serie
- The index of the serie.style
- SAMPLE_HIGHLIGHT_CIRCLE, SAMPLE_HIGHLIGHT_CIRCLE_OPAQUE,
SAMPLE_HIGHLIGHT_CIRCLE_FILLED, SAMPLE_HIGHLIGHT_SQUARE,
SAMPLE_HIGHLIGHT_SQUARE_OPAQUE, SAMPLE_HIGHLIGHT_SQUARE_FILLED,
SAMPLE_HIGHLIGHT_DIAMOND, SAMPLE_HIGHLIGHT_DIAMOND_OPAQUE,
SAMPLE_HIGHLIGHT_DIAMOND_FILLED.size
- The size of the circle or square.
java.lang.IndexOutOfBoundsException
- if the series is invalid.public void setSeriesLineOn(boolean state)
state
- True for on (default), false for off.public void setSeriesLineOn(int serie, boolean state)
serie
- The series index.state
- True for on (default), false for off.
java.lang.ArrayIndexOutOfBoundsException
- If the series is invalid.public void setStackedOn(boolean on)
on
- True for on, false for off.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |