|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<Tags>
lt.monarch.chart.AbstractChartSeries<Tags,ChartProjector>
lt.monarch.chart.chart3D.series.MarkerDecorableSeries3D<SeriesPaintTags,Projector3D>
lt.monarch.chart.chart3D.series.Bar3DSeries
public class Bar3DSeries extends MarkerDecorableSeries3D<SeriesPaintTags,Projector3D> implements AbstractBarSeries<Projector3D>
Bar series. This series draws various types of bars. In order, to change the drawing strategy,you must set different strategy. The strategies included are BAR_STRATEGY, ERROR_BAR_STRATEGY, EVENT_STRATEGY, FLOATING_BAR_STRATEGY, WATERFALL_STRATEGY Stylesheet constants setObject, "primitive" - sets the bar shape primitive.
| Modifier and Type | Field and Description |
|---|---|
protected double |
barDepth
Custom bar depth |
protected java.lang.Double |
barDepthOrg
|
protected static java.util.Hashtable<AxisMapper,java.lang.Float> |
barSpacings
Hashtable that maps axis mapper to bar spacing |
protected double |
barWidth
Custom bar width |
protected java.lang.Double |
barWidthOrg
|
protected PlaneMapper |
mapper
the plane mapper |
protected ArrayDataModel |
model
Chart data model |
protected int |
seriesCount
Series count on the mapper. |
protected int |
seriesIndex
Series index on the mapper. |
protected static java.util.Hashtable<AxisMapper,java.lang.Float> |
seriesSpacings
Hashtable that maps axis mapper to bar spacing |
| Fields inherited from class lt.monarch.chart.chart3D.series.MarkerDecorableSeries3D |
|---|
baseValue, colorMapper, markerPainter, markers, pseudoModel |
| Fields inherited from class lt.monarch.chart.AbstractChartSeries |
|---|
metaModel, modelValidator, seriesName, seriesTransform, showLegend, showNullValues, symbol, xMapper, yMapper, zMapper |
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
Bar3DSeries(ArrayDataModel model,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper)
Bar series constructor without a meta data model and default plane mapper is for Cartesian coordinates. |
Bar3DSeries(ArrayDataModel model,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper,
PlaneMapper mapper)
Constructs a new BarSeries object |
Bar3DSeries(ArrayDataModel model,
MetaDataModel metaModel,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper)
Constructs a new bar series. |
Bar3DSeries(ArrayDataModel model,
MetaDataModel metaModel,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper,
PlaneMapper mapper)
Constructs a new BarSeries object |
| Modifier and Type | Method and Description |
|---|---|
LegendSymbol |
createLegendSymbol(int bar)
Create a legend symbol for the specified bar. |
void |
dispose()
Cleans this bar series object. |
void |
draw(AbstractGraphics g)
Renders chart object on the Graphics context. |
double |
getBarDepth()
Retrieves the depth of the bars. |
static float |
getBarSpacing(AxisMapper mapper)
Returns spacing between bars. |
double |
getBarWidth()
Retrieves the width of the bars. |
AxisMapper |
getGroupKey()
Gets grouping key for bar layout. |
MarkerConstraints[] |
getMarkerConstraints()
Returns series marker constraints. |
java.lang.Object |
getMaxValue(DataColumnType valType)
Note: internal use only! Gets maximum value that is used by series to fit into the chart |
java.lang.Object |
getMinValue(DataColumnType valType)
Note: internal use only! Gets minimum value that is used by series to fit into the chart |
Orientation |
getOrientation()
Gets bar orientation |
static float |
getSeriesSpacing(AxisMapper mapper)
Returns spacing between different bar series. |
AbstractBar3DStrategy<Projector3D> |
getStrategy()
Gets bar drawing strategy object |
protected void |
handleDataModelChangeEvent(DataModelChangeEvent ev)
Handles data model change event. |
protected void |
initLegendSymbol()
Initializes a new BarSeriesLegendSymbol used for representing bar series in
legend. |
void |
invalidate()
Invalidates the bar series. |
void |
layout(int seriesCount,
int index)
Layout bar series (series layouting) |
static void |
removeBarSpacing(AxisMapper mapper)
Removes bar spacing from the hashtable according to the specified axis mapper |
static void |
removeSeriesSpacing(AxisMapper mapper)
Removes series spacing from the hashtable according to the specified axis mapper |
void |
setBarDepth(double barDepth)
Sets a depth for the bars. |
void |
setBarDepthInternal(double barDepth)
|
static void |
setBarSpacing(AxisMapper mapper,
float space)
Sets spacing between bars for all series in a chart. |
void |
setBarWidth(double barWidth)
Sets a width for the bars. |
void |
setBarWidthInternal(double barWidth)
|
void |
setOrientation(Orientation orientation)
Sets bar orientation |
void |
setPrimitive(Shapes primitive)
Sets primitive of the bar shape |
static void |
setSeriesSpacing(AxisMapper mapper,
float space)
Sets spacing between different bar series. |
void |
setStrategy(Bar3DStrategies strategy)
Sets bar drawing strategy, i.e. |
| Methods inherited from class lt.monarch.chart.chart3D.series.MarkerDecorableSeries3D |
|---|
addMarker, addMarker, addMarker, drawMarkers, drawMarkers, getBaseValue, getColorMapper, getKeyType, getPaintMode, getSortPosition, setBaseValue, setColorMapper, setPaintMode |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.AbstractBarSeries |
|---|
getDataModel, getKeyType, getMetaDataModel, getModelValidator, getPaintMode, getProjector, getXMapper, getYMapper, getZMapper |
| Methods inherited from interface lt.monarch.chart.engine.ChartSeries |
|---|
createLegendEntries, createLegendEntry, getName, setName |
| Methods inherited from interface lt.monarch.chart.engine.ChartObject |
|---|
getChart, getSortPosition, getStyle, getStyle, isVisible, layout, repaint, repaint, setChart |
| Methods inherited from interface lt.monarch.chart.engine.ChartEntity |
|---|
fillEntitySheet, getDescription, getParentEntity, getShortDescription |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getChartObjectBounds, getParent, getStyle |
| Field Detail |
|---|
protected ArrayDataModel model
protected PlaneMapper mapper
protected int seriesCount
protected int seriesIndex
protected static final java.util.Hashtable<AxisMapper,java.lang.Float> barSpacings
protected static final java.util.Hashtable<AxisMapper,java.lang.Float> seriesSpacings
protected double barWidth
protected java.lang.Double barWidthOrg
protected double barDepth
protected java.lang.Double barDepthOrg
| Constructor Detail |
|---|
public Bar3DSeries(ArrayDataModel model,
MetaDataModel metaModel,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper,
PlaneMapper mapper)
model - chart data modelmetaModel - meta data modelxMapper - x axis mapperyMapper - y axis mapperzMapper - z axis mappermapper - mapper, used to map output to a plane in a n-dimensional space
public Bar3DSeries(ArrayDataModel model,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper,
PlaneMapper mapper)
model - chart data modelxMapper - x axis mapperyMapper - y axis mapperzMapper - z axis mappermapper - mapper, used to map output to a plane in a n-dimensional space
public Bar3DSeries(ArrayDataModel model,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper)
model - chart data modelxMapper - x axis mapperyMapper - y axis mapperzMapper - z axis mapper
public Bar3DSeries(ArrayDataModel model,
MetaDataModel metaModel,
AxisMapper xMapper,
AxisMapper yMapper,
AxisMapper zMapper)
model - chart data modelmetaModel - meta data modelxMapper - x axis mapperyMapper - y axis mapperzMapper - z axis mapper| Method Detail |
|---|
protected void handleDataModelChangeEvent(DataModelChangeEvent ev)
AbstractChartSeriesDataModelChangeEvent is received.
Calls repaint() method.
handleDataModelChangeEvent in class AbstractChartSeries<SeriesPaintTags,Projector3D>ev - the chart data model change eventDataModelChangeEventpublic LegendSymbol createLegendSymbol(int bar)
bar - bar indexprotected void initLegendSymbol()
BarSeriesLegendSymbol used for representing bar series in
legend.
public void draw(AbstractGraphics g)
ChartObject
draw in interface ChartObjectdraw in class MarkerDecorableSeries3D<SeriesPaintTags,Projector3D>g - graphics context
public void layout(int seriesCount,
int index)
AbstractBarSeries
layout in interface AbstractBarSeries<Projector3D>seriesCount - series count in the chartindex - index of the barpublic void dispose()
dispose in interface ChartObjectdispose in class AbstractChartObject<SeriesPaintTags>public void invalidate()
invalidate in interface ChartObjectinvalidate in class AbstractChartObject<SeriesPaintTags>ChartObject.invalidate()public void setBarWidth(double barWidth)
barWidth - bar widthpublic void setBarWidthInternal(double barWidth)
public double getBarWidth()
public void setBarDepth(double barDepth)
barDepth - bar depthpublic void setBarDepthInternal(double barDepth)
public double getBarDepth()
public static void setBarSpacing(AxisMapper mapper,
float space)
mapper - Axis mapper for which bar spacing is specified. It is the mapper of the axis,
where the bar key values are specified.space - Space between different bars relative to bar width. Must be in interval [0.0 ..
1.0]. Passing negative space value allows the neighbouring bars to overlap.public static float getBarSpacing(AxisMapper mapper)
mapper - Axis mapper for which bar spacing is specified. It is the mapper of the axis,
where the bar key values are specified.public static float getSeriesSpacing(AxisMapper mapper)
mapper - Axis mapper for which bar spacing is returned.
public static void setSeriesSpacing(AxisMapper mapper,
float space)
mapper - Axis mapper for which bar spacing is specified.space - Space between different bar series relative to bar width. Must be in interval
[0.0 .. 1.0]. Passing negative space value allows the series to overlap.public static void removeBarSpacing(AxisMapper mapper)
mapper - axis mapper, that specifies the bar spacingpublic static void removeSeriesSpacing(AxisMapper mapper)
mapper - axis mapper, that specifies the series spacingpublic MarkerConstraints[] getMarkerConstraints()
MarkerDecorableSeries3D
getMarkerConstraints in class MarkerDecorableSeries3D<SeriesPaintTags,Projector3D>public Orientation getOrientation()
AbstractBarSeries
getOrientation in interface AbstractBarSeries<Projector3D>public void setOrientation(Orientation orientation)
AbstractBarSeries
setOrientation in interface AbstractBarSeries<Projector3D>orientation - bar orientationpublic void setStrategy(Bar3DStrategies strategy)
strategy - the bar drawing strategy to setpublic AbstractBar3DStrategy<Projector3D> getStrategy()
public void setPrimitive(Shapes primitive)
primitive - bar shape primitivepublic AxisMapper getGroupKey()
AbstractBarSeries
getGroupKey in interface AbstractBarSeries<Projector3D>public java.lang.Object getMaxValue(DataColumnType valType)
AbstractChartSeries
getMaxValue in class AbstractChartSeries<SeriesPaintTags,Projector3D>valType - data value columnpublic java.lang.Object getMinValue(DataColumnType valType)
AbstractChartSeries
getMinValue in class AbstractChartSeries<SeriesPaintTags,Projector3D>valType - data value column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||