|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.chart.SeriesIterator
public class SeriesIterator
Abstract base class for iterating over series data in
WChart2DRenderer.
This class is specialized for rendering series data.
WChart2DRenderer.iterateSeries(SeriesIterator iterator, boolean
reverseStacked)| Constructor Summary | |
|---|---|
SeriesIterator()
|
|
| Method Summary | |
|---|---|
void |
endSegment()
End handling a particular segment. |
void |
endSeries()
End iterating a particular series. |
int |
getCurrentXSegment()
Returns the current X segment. |
int |
getCurrentYSegment()
Returns the current Y segment. |
void |
newValue(WDataSeries series,
double x,
double y,
double stackY,
WModelIndex xIndex,
WModelIndex yIndex)
Process a value. |
static void |
setBrushColor(WBrush brush,
WModelIndex xIndex,
WModelIndex yIndex,
int colorRole)
|
static void |
setPenColor(WPen pen,
WModelIndex xIndex,
WModelIndex yIndex,
int colorRole)
|
void |
startSegment(int currentXSegment,
int currentYSegment,
WRectF currentSegmentArea)
Start handling a new segment. |
boolean |
startSeries(WDataSeries series,
double groupWidth,
int numBarGroups,
int currentBarGroup)
Start iterating a particular series. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeriesIterator()
| Method Detail |
|---|
public void startSegment(int currentXSegment,
int currentYSegment,
WRectF currentSegmentArea)
Because of a 'break' specified in an axis, axes may be divided in one or two segments (in fact only the API limits this now to two). The iterator will iterate all segments seperately, but each time with a different clipping region specified in the painter, corresponding to that segment.
The currentSegmentArea specifies the clipping area.
public void endSegment()
startSegment(int currentXSegment, int
currentYSegment, WRectF currentSegmentArea)
public boolean startSeries(WDataSeries series,
double groupWidth,
int numBarGroups,
int currentBarGroup)
Returns whether the series values should be iterated. The groupWidth is the width (in pixels) of a single bar group. The chart contains numBarGroups, and the current series is in the currentBarGroup'th group.
public void endSeries()
public void newValue(WDataSeries series,
double x,
double y,
double stackY,
WModelIndex xIndex,
WModelIndex yIndex)
Processes a value with model coordinates (x, y). The y value may differ from the model's y value, because of stacked series. The y value here corresponds to the location on the chart, after stacking.
The stackY argument is the y value from the previous series (also after stacking). It will be 0, unless this series is stacked.
public int getCurrentXSegment()
public int getCurrentYSegment()
public static void setPenColor(WPen pen,
WModelIndex xIndex,
WModelIndex yIndex,
int colorRole)
public static void setBrushColor(WBrush brush,
WModelIndex xIndex,
WModelIndex yIndex,
int colorRole)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||