|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.series.AbstractLineStrategy<ChartProjector>
lt.monarch.chart.chart2D.series.SalesMetricBarStrategy<ChartProjector>
public class SalesMetricBarStrategy<ChartProjector extends Projector> extends AbstractLineStrategy<ChartProjector>
Sales metric bar strategy. In addition to actual value, three value zones and a possible target are drawn. Values of separate regions and target are taken from charts data model columns: target is taken from EXTENT, regions are taken from EXTRA, EXTRA2 and EXTRA3. Target value is optional.
| Modifier and Type | Field and Description |
|---|---|
protected double |
barSpacing
|
protected java.awt.Color[] |
colorPalette
|
protected Orientation |
orientation
|
protected double |
valueBarScale
|
| Fields inherited from class lt.monarch.chart.chart2D.series.AbstractLineStrategy |
|---|
baseValue, cachingEnabled, dirty, isConnected, mapper, metaModel, minMaxValues, model, paintMode, planePoint, projector, showNullValues, style, tempPoint, xMapper, yMapper, zoomMultiplier |
| Constructor and Description |
|---|
SalesMetricBarStrategy()
Creates SalesMetricBarStrategy with default values |
SalesMetricBarStrategy(java.awt.Color[] colors,
Orientation orientation)
Creates SalesMetricBarStrategy |
| 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,
java.lang.Object baseValue,
AbstractLineSeries<ChartProjector> series)
Draws the series in the chart area. |
void |
setBarSpacing(double barSpacing)
sets bar spacing |
void |
setOrientation(Orientation orientation)
sets bar orientation |
void |
setPalette(java.awt.Color[] colors)
sets colors of different bar regions |
void |
setValueBarScale(double scale)
sets bar scale |
| Methods inherited from class lt.monarch.chart.chart2D.series.AbstractLineStrategy |
|---|
calculateSelection, getLinePointByX, getMinMaxValues, getModel, getX, getY, projectPoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Color[] colorPalette
protected double barSpacing
protected double valueBarScale
protected Orientation orientation
| Constructor Detail |
|---|
public SalesMetricBarStrategy()
public SalesMetricBarStrategy(java.awt.Color[] colors,
Orientation orientation)
colors - array of 4 colors for different regions of the bars.
First there colors represent there value regions and the
forth one represents color of actual and target values.orientation - are bars vertical or horizontal| Method Detail |
|---|
public void setPalette(java.awt.Color[] colors)
colors - array of 4 colors for different regions of the bars.
First there colors represent there value regions and the
forth one represents color of actual and target values.public void setOrientation(Orientation orientation)
orientation - whether bars are vertical or horizontalpublic void setBarSpacing(double barSpacing)
barSpacing - proportional space between separate barspublic void setValueBarScale(double scale)
scale - proportional width of real value indicator compared to
value region indicatorspublic void dispose()
AbstractLineStrategy
dispose in class AbstractLineStrategy<ChartProjector extends Projector>
public void draw(AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
java.lang.Object baseValue,
AbstractLineSeries<ChartProjector> series)
AbstractLineStrategy
draw in class AbstractLineStrategy<ChartProjector extends Projector>g - graphics contextprojector - projector instancemapper - plane mapperhotMap - hot spot mapshowNullValues - boolean value indicating whether to show the null valuesstyle - style objectbaseValue - base valueseries - scatter series instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||