|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart3D.series.AbstractBar3DStrategy<ChartProjector>
lt.monarch.chart.chart3D.series.Bar3DStrategy<ChartProjector>
public class Bar3DStrategy<ChartProjector extends Projector> extends AbstractBar3DStrategy<ChartProjector>
Bar drawing strategy. This strategy draws all bars.
| Modifier and Type | Field and Description |
|---|---|
protected int |
size
Data model size |
| Fields inherited from class lt.monarch.chart.chart3D.series.AbstractBar3DStrategy |
|---|
barSpacing, barWidth, baseValue, clipList, colorMapper, dirty, mapper, metaModel, minMaxValues, model, orientation, seriesCount, seriesIndex, seriesSpacing, shape, style, xMapper, yMapper, zMapper, zoomMultiplier |
| Constructor and Description |
|---|
Bar3DStrategy()
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the object |
void |
draw(AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
int seriesCount,
int seriesIndex,
java.lang.Object baseValue,
float barSpacing,
float seriesSpacing,
AbstractBarSeries<ChartProjector> barSeries,
IndexedClipList clipList,
ColorMapper colorMapper)
Draws the series in the chart area. |
void |
drawPrimitive(AbstractGraphics g,
int index,
ChartProjector projector,
HotSpotMap hotMap,
boolean showNullValues,
java.lang.Object baseValue,
AbstractBarSeries barSeries)
Draws one primitive |
protected void |
finalize()
|
double |
getBarBottom(int index,
java.lang.Object baseValue)
Gets bottom bar position |
protected Rectangle2D |
getBarBoundaries(int index,
java.lang.Object baseValue)
Transforms the specified bar. |
protected double |
getBarDepth()
Retrieves a depth value for bars. |
double |
getBarPosition(int index)
Gets bar position, where the bar should stand. |
double |
getBarTop(int index)
Gets bar top position |
protected double |
getBarWidth()
Returns general bar width for all bars. |
double |
getBarWidth(int index)
Gets bar width from the style sheet. |
double |
getBarZPosition(int index)
Retrieves the bar position in z axis. |
protected double |
getBottomBarTop(int index,
DataColumnType dataColumn,
AxisMapper mapper,
java.lang.Object baseValue)
Determines the bar position |
Shape2D |
getDefaultShape()
Returns the default strategy shape |
protected int |
getLabelCount(AxisMapper mapper)
Returns label count on the axis |
protected Transformation3D |
getTransformation(Orientation orientation,
int size,
int barIndex,
double barWidth,
double barDepth,
ChartProjector projector)
Gets the transformation for series |
protected double |
getZeroValue(AxisMapper mapper)
Gets mapped zero value if possible to map |
protected double |
getZoomMultiplier(AxisMapper mapper)
Returns zoom multiplier |
| Methods inherited from class lt.monarch.chart.chart3D.series.AbstractBar3DStrategy |
|---|
getMinMaxValues, setShape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int size
| Constructor Detail |
|---|
public Bar3DStrategy()
| Method Detail |
|---|
public void draw(AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
int seriesCount,
int seriesIndex,
java.lang.Object baseValue,
float barSpacing,
float seriesSpacing,
AbstractBarSeries<ChartProjector> barSeries,
IndexedClipList clipList,
ColorMapper colorMapper)
AbstractBar3DStrategy
draw in class AbstractBar3DStrategy<ChartProjector extends Projector>g - graphics contextprojector - projector instancemapper - plane mapperhotMap - hot spot mapshowNullValues - boolean value indicating whether to show the null valuesstyle - style objectseriesCount - series countseriesIndex - series indexbaseValue - base valuebarSpacing - bar spacingseriesSpacing - series spacingbarSeries - bar series instanceclipList - clip listcolorMapper - color mapper, which maps colors according to values
public void drawPrimitive(AbstractGraphics g,
int index,
ChartProjector projector,
HotSpotMap hotMap,
boolean showNullValues,
java.lang.Object baseValue,
AbstractBarSeries barSeries)
AbstractBar3DStrategy
drawPrimitive in class AbstractBar3DStrategy<ChartProjector extends Projector>g - graphics contextindex - data point indexprojector - projectorhotMap - hot spot mapshowNullValues - if true show null valuesbaseValue - base line valuebarSeries - bar series instancepublic double getBarWidth(int index)
index - data point indexpublic double getBarTop(int index)
AbstractBar3DStrategy
getBarTop in class AbstractBar3DStrategy<ChartProjector extends Projector>index - data point indexprotected double getZeroValue(AxisMapper mapper)
mapper - mapper
public double getBarBottom(int index,
java.lang.Object baseValue)
AbstractBar3DStrategy
getBarBottom in class AbstractBar3DStrategy<ChartProjector extends Projector>index - index of data pointbaseValue - base line value
protected double getBottomBarTop(int index,
DataColumnType dataColumn,
AxisMapper mapper,
java.lang.Object baseValue)
index - bar indexdataColumn - data column in the data modelmapper - axis mapper
protected Transformation3D getTransformation(Orientation orientation,
int size,
int barIndex,
double barWidth,
double barDepth,
ChartProjector projector)
protected double getBarWidth()
AbstractBar3DStrategy
getBarWidth in class AbstractBar3DStrategy<ChartProjector extends Projector>protected double getBarDepth()
protected int getLabelCount(AxisMapper mapper)
mapper - axis mapperprotected double getZoomMultiplier(AxisMapper mapper)
mapper - axis mapper to calculate the zoompublic void dispose()
AbstractBar3DStrategy
dispose in class AbstractBar3DStrategy<ChartProjector extends Projector>
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic Shape2D getDefaultShape()
AbstractBar3DStrategy
getDefaultShape in class AbstractBar3DStrategy<ChartProjector extends Projector>public double getBarPosition(int index)
AbstractBar3DStrategy
getBarPosition in class AbstractBar3DStrategy<ChartProjector extends Projector>index - data point indexpublic double getBarZPosition(int index)
index - an index of bar
protected Rectangle2D getBarBoundaries(int index,
java.lang.Object baseValue)
AbstractBar3DStrategy
getBarBoundaries in class AbstractBar3DStrategy<ChartProjector extends Projector>index - index of the data pointbaseValue - base value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||