|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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,
TargetZone,
LabelsZone| Constructor Summary | |
GraphSet()
Creates a GraphSet object. |
|
| Method Summary | |
void |
addLabelsZone(LabelsZone lz)
Adds a labels zone. |
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. |
java.util.Vector |
getLabelsZones()
Returns a collection of references to labels zones added to this GraphSet object. |
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. |
XAxis |
getTXAxis()
Returns a reference to the top XAxis object of this GraphSet. |
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 |
removeAllLabelsZones()
Removes all labels zones. |
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 |
removeLabelsZone(LabelsZone lz)
Removes a labels zone. |
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 |
setStackedBarsWidth(int stackedBarsWidth)
Sets the width of all stacked bars owned by this GraphSet object. |
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.GraphSeriepublic void removeSerie(GraphSerie gs)
gs - A GraphSerie object.GraphSeriepublic void removeAllSeries()
public void addTargetLine(TargetLine tl)
tl - A TargetLine object.TargetLinepublic void removeTargetLine(TargetLine tl)
tl - A TargetLine object.TargetLinepublic void removeAllTargetLines()
TargetLinepublic void addLabelsZone(LabelsZone lz)
lz - A LabelsZone object.LabelsZonepublic void removeLabelsZone(LabelsZone lz)
lz - A LabelsZone object.LabelsZonepublic void removeAllLabelsZones()
LabelsZonepublic void addTargetZone(TargetZone tz)
tz - A TargetZone object.TargetZonepublic void removeTargetZone(TargetZone tz)
tz - A TargetZone object.TargetZonepublic void removeAllTargetZones()
TargetZonepublic int getSerieIndex(GraphSerie gs)
gs - A GraphSerie object.GraphSeriepublic java.util.Vector getSeries()
GraphSeriepublic java.util.Vector getTargetLines()
TargetLinepublic java.util.Vector getLabelsZones()
LabelsZonepublic java.util.Vector getTargetZones()
TargetZonepublic SeriesBase getSeriesBase()
SeriesBasepublic Grid getGrid()
Gridpublic Scale getScale()
Scalepublic XAxis getXAxis()
XAxispublic YAxis getYAxis()
YAxispublic YAxis getRYAxis()
YAxis,
GraphSet,
Scalepublic XAxis getTXAxis()
XAxis,
GraphSet,
Scalepublic Wall getWall()
Wall,
Graph.getWall()public GridCrossedLines getGridCrossedLines()
GridCrossedLinespublic ScrollingBar getScrollingBar()
ScrollingBarpublic 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)public void setStackedBarsWidth(int stackedBarsWidth)
stackedBarsWidth - An integer value greater than zero.StackBarSerie
protected void finalize()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||