|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.GraphSet
A GraphSet is a subset of all series added to the chart context. It is used to group
series separately and plot them against independent scales, allowing for multiple
scales to be displayed in a single chart.
Each GraphSet object creates and gives access to the following types of objects:
Series grouped in a GraphSet are plotted against that GraphSet's scale. Any number of GraphSet objects can be created and added to the chart context, each of them owning a set of the objects above listed.
Horizontal charts do not support multiple scales, even if more than one GraphSet is added to the chart context. Series belonging to different GraphSets are relocated to the primary GraphSet, explained below.
JetChart has a default, or primary GraphSet, to hold all series that are not included in any other GraphSet. GraphSet objects are sequentially assigned an id number, starting from '1', which follows the sequence they are added to the chart context. The id '0' is reserved to the primary GraphSet object.
A GraphSet can only hold distinct series. If two references of the same series are detected, an exception is raised.
All series included in GraphSet objects must also be added to the chart context, using the
addSerie
method of the Graph class. If any GraphSet is keeping
references to series not added to the chart context, an exception is raised.
Graph.addSerie(com.jinsight.jetchart.AbstractSerie)
,
Graph.addGraphSet(com.jinsight.jetchart.GraphSet)
,
Graph.removeGraphSet(com.jinsight.jetchart.GraphSet)
,
Graph.getGraphSet(int)
,
Scale
,
Grid
,
SeriesBase
,
Axis
,
XAxis
,
YAxis
,
GridCrossedLines
,
Wall
,
ScrollingBar
,
TargetLine
Constructor Summary | |
GraphSet()
Creates a GraphSet object. |
Method Summary | |
void |
addSerie(GraphSerie gs)
Adds a series. |
void |
addTargetLine(TargetLine tl)
Adds a target line. |
void |
addTargetZone(TargetZone tz)
Adds a target zone. |
protected void |
finalize()
|
Grid |
getGrid()
Returns a reference to the Grid object of this GraphSet. |
GridCrossedLines |
getGridCrossedLines()
Returns a reference to the GridCrossedLines object of this GraphSet. |
YAxis |
getRYAxis()
Returns a reference to the right YAxis object of this GraphSet. |
Scale |
getScale()
Returns a reference to the Scale object of this GraphSet. |
ScrollingBar |
getScrollingBar()
Returns a reference to the ScrollingBar object of this GraphSet. |
int |
getSerieIndex(GraphSerie gs)
Gets an index of a series already added to GraphSet. |
java.util.Vector |
getSeries()
Returns a collection of references to series added to this GraphSet object. |
SeriesBase |
getSeriesBase()
Returns a reference to the SeriesBase object of this GraphSet. |
java.util.Vector |
getTargetLines()
Returns a collection of references to target lines added to this GraphSet object. |
java.util.Vector |
getTargetZones()
Returns a collection of references to target zones added to this GraphSet object. |
Wall |
getWall()
Returns a reference to the Wall object of this GraphSet |
XAxis |
getXAxis()
Returns a reference to the XAxis object of this GraphSet. |
YAxis |
getYAxis()
Returns a reference to the left YAxis object of this GraphSet. |
void |
removeAllSeries()
Removes all series. |
void |
removeAllTargetLines()
Removes all target lines. |
void |
removeAllTargetZones()
Removes all target zones. |
void |
removeAllTrendLines()
Removes all trendlines manually painted and owned by this GraphSet. |
void |
removeSerie(GraphSerie gs)
Removes a series. |
void |
removeTargetLine(TargetLine tl)
Removes a target line. |
void |
removeTargetZone(TargetZone tz)
Removes a target zone. |
void |
setLabelsColor(java.awt.Color labelsColor)
Sets the labels color. |
void |
setLabelsEnabled(boolean isLabelsEnabled)
Enables/disables labels. |
void |
setLabelsMarksColor(java.awt.Color labelsMarksColor)
Sets labels marks color. |
void |
setLabelsMarksEnabled(boolean isLabelsMarksEnabled)
Enables/disables labels marks. |
void |
setTrendLinesColor(java.awt.Color trendLinesColor)
Sets the color of all trendlines owned by this GraphSet. |
void |
setTrendLinesThickness(int trendLinesThickness)
Sets the thickness of all trendlines owned by this GraphSet. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphSet()
Method Detail |
public void addSerie(GraphSerie gs)
gs
- A GraphSerie object.GraphSerie
public void removeSerie(GraphSerie gs)
gs
- A GraphSerie object.GraphSerie
public void removeAllSeries()
public void addTargetLine(TargetLine tl)
tl
- A TargetLine object.TargetLine
public void removeTargetLine(TargetLine tl)
tl
- A TargetLine object.TargetLine
public void removeAllTargetLines()
TargetLine
public void addTargetZone(TargetZone tz)
tz
- A TargetZone object.TargetZone
public void removeTargetZone(TargetZone tz)
tz
- A TargetZone object.TargetZone
public void removeAllTargetZones()
TargetZone
public int getSerieIndex(GraphSerie gs)
gs
- A GraphSerie object.GraphSerie
public java.util.Vector getSeries()
GraphSerie
public java.util.Vector getTargetLines()
TargetLine
public java.util.Vector getTargetZones()
TargetZone
public SeriesBase getSeriesBase()
SeriesBase
public Grid getGrid()
Grid
public Scale getScale()
Scale
public XAxis getXAxis()
XAxis
public YAxis getYAxis()
YAxis
public YAxis getRYAxis()
YAxis
,
GraphSet
,
Scale
public Wall getWall()
Wall
,
Graph.getWall()
public GridCrossedLines getGridCrossedLines()
GridCrossedLines
public ScrollingBar getScrollingBar()
ScrollingBar
public void setLabelsEnabled(boolean isLabelsEnabled)
isLabelsEnabled
- A boolean value(true/false).public void setLabelsColor(java.awt.Color labelsColor)
labelsColor
- A Color object.public void setLabelsMarksEnabled(boolean isLabelsMarksEnabled)
isLabelsMarksEnabled
- A boolean value(true/false)public void setLabelsMarksColor(java.awt.Color labelsMarksColor)
labelsMarksColor
- A Color object.public void setTrendLinesColor(java.awt.Color trendLinesColor)
trendLinesColor
- Graph.setTrendLinesDrawingEnabled(boolean)
public void setTrendLinesThickness(int trendLinesThickness)
trendLinesThickness
- An integer number equal to or greater
than 1.Graph.setTrendLinesDrawingEnabled(boolean)
public void removeAllTrendLines()
Graph.setTrendLinesDrawingEnabled(boolean)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |