|
|||||||||
| 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>
public abstract class AbstractBar3DStrategy<ChartProjector extends Projector> extends java.lang.Object implements java.io.Serializable
Abstract drawing strategy. Should be used as a strategy patter in series for the series drawing customization.
| Modifier and Type | Field and Description |
|---|---|
protected float |
barSpacing
Bar spacing |
protected double |
barWidth
Bar width |
protected java.lang.Object |
baseValue
Base value |
protected IndexedClipList |
clipList
Deprecated. |
protected ColorMapper |
colorMapper
Color mapper |
protected boolean |
dirty
True, if dirty, otherwise -false |
protected PlaneMapper |
mapper
Plane mapper (for polar, or Cartesian coordinates) |
protected MetaDataModel |
metaModel
Meta data model |
protected java.util.Map<DataColumnType,MinMaxValues> |
minMaxValues
Minimum and Maximum values |
protected ArrayDataModel |
model
Bar data model |
protected Orientation |
orientation
Bar orientation |
protected int |
seriesCount
Series count |
protected int |
seriesIndex
Series index |
protected float |
seriesSpacing
Series spacing |
protected Shape3D |
shape
Stores the shape to paint |
protected Style |
style
Bar style |
protected AxisMapper |
xMapper
X axis mapper |
protected AxisMapper |
yMapper
Y axis mapper |
protected AxisMapper |
zMapper
Z axis mapper |
protected double |
zoomMultiplier
Zoom multiplier |
| Constructor and Description |
|---|
AbstractBar3DStrategy()
|
| Modifier and Type | Method and Description |
|---|---|
abstract 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. |
abstract void |
drawPrimitive(AbstractGraphics g,
int index,
ChartProjector projector,
HotSpotMap hotMap,
boolean showNullValues,
java.lang.Object baseValue,
AbstractBarSeries barSeries)
Draws one primitive |
abstract double |
getBarBottom(int index,
java.lang.Object baseValue)
Gets bottom bar position |
protected abstract Rectangle2D |
getBarBoundaries(int index,
java.lang.Object baseValue)
Transforms the specified bar. |
abstract double |
getBarPosition(int index)
Gets bar position, where the bar should stand. |
abstract double |
getBarTop(int index)
Gets bar top position |
protected abstract double |
getBarWidth()
Returns general bar width for all bars. |
abstract Shape2D |
getDefaultShape()
Returns the default strategy shape |
protected java.util.Map<DataColumnType,MinMaxValues> |
getMinMaxValues()
Gets the minMaxValues value |
void |
setShape(Shape3D<?> shape)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AxisMapper xMapper
protected AxisMapper yMapper
protected AxisMapper zMapper
protected PlaneMapper mapper
protected ArrayDataModel model
protected MetaDataModel metaModel
protected Style style
protected int seriesCount
protected int seriesIndex
protected float seriesSpacing
protected float barSpacing
protected double barWidth
protected Orientation orientation
protected double zoomMultiplier
@Deprecated protected IndexedClipList clipList
protected Shape3D shape
protected java.lang.Object baseValue
protected ColorMapper colorMapper
protected java.util.Map<DataColumnType,MinMaxValues> minMaxValues
protected boolean dirty
| Constructor Detail |
|---|
public AbstractBar3DStrategy()
| Method Detail |
|---|
public void setShape(Shape3D<?> shape)
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)
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 abstract void drawPrimitive(AbstractGraphics g,
int index,
ChartProjector projector,
HotSpotMap hotMap,
boolean showNullValues,
java.lang.Object baseValue,
AbstractBarSeries barSeries)
g - graphics contextindex - data point indexprojector - projectorhotMap - hot spot mapshowNullValues - if true show null valuesbaseValue - base line valuebarSeries - bar series instancepublic abstract void dispose()
public abstract Shape2D getDefaultShape()
public abstract double getBarBottom(int index,
java.lang.Object baseValue)
index - index of data pointbaseValue - base line valuepublic abstract double getBarTop(int index)
index - data point indexpublic abstract double getBarPosition(int index)
index - data point index
protected abstract Rectangle2D getBarBoundaries(int index,
java.lang.Object baseValue)
index - index of the data pointbaseValue - base valueprotected abstract double getBarWidth()
protected java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||