|
|||||||||
| 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.chart2D.series.MarkerDecorableSeries<SeriesPaintTags,Projector2D>
lt.monarch.chart.chart2D.series.VectorSeries
public class VectorSeries extends MarkerDecorableSeries<SeriesPaintTags,Projector2D>
Vector series. This series draws line from one given point to the other drawing arrow symbol at the end. The default drawing strategy is VectorStrateiges.VECTOR_STRATEGY.
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class lt.monarch.chart.chart2D.series.MarkerDecorableSeries |
|---|
MarkerDecorableSeries.MarkerEntity |
| Modifier and Type | Field and Description |
|---|---|
protected PlaneMapper |
mapper
the plane mapper |
| Fields inherited from class lt.monarch.chart.chart2D.series.MarkerDecorableSeries |
|---|
baseValue, colorMapper, markerPainter, markers, minMaxValues, 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 |
|---|
VectorSeries(ArrayDataModel model,
AxisMapper xMapper,
AxisMapper yMapper)
Vector series constructor without a meta data model and default plane mapper is for Cartesian coordinates. |
VectorSeries(ArrayDataModel model,
MetaDataModel metaModel,
AxisMapper xMapper,
AxisMapper yMapper)
Constructs a new Vector series. |
VectorSeries(ArrayDataModel model,
PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
Vector series constructor without a meta data model |
VectorSeries(DataModel model,
MetaDataModel metaModel,
PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
Vector series constructor |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g)
Renders chart object on the Graphics context. |
void |
drawMarkers(AbstractGraphics g)
Draws markers according to default layouting |
double |
getMarkerPosition()
Returns marker's position on single vector |
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 |
protected GeneralPoint |
getPointForConstraint(ArrayDataModel model,
int index)
|
Projector2D |
getProjector()
Returns modified projector. |
AbstractVectorStrategy<Projector> |
getStrategy()
Gets line drawing strategy. |
protected void |
initLegendSymbol()
Initializes a new LegendVectorSymbol used for representing vector series in legend. |
void |
setMarkerPosition(double position)
Sets marker's position on single vector in the range of [0; 1], where value 0 means the beginning of vector and 1 - the end. |
void |
setStrategy(VectorStrategies strategy)
Sets line drawing strategy. |
| Methods inherited from class lt.monarch.chart.chart2D.series.MarkerDecorableSeries |
|---|
addMarker, addMarker, addMarker, calculateNullValue, copy, dataConstraintExtraction, drawMarkers, generateConstaint, getBaseValue, getColorMapper, getKeyType, getMarkerConstraints, getMarkers, getMarkerStyle, getPaintMode, getSortPosition, layout, mapMinMaxValue, removeMarker, setBaseValue, setColorMapper, setPaintMode |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, 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.engine.ChartObject |
|---|
dispose, getChart, getStyle, getStyle, invalidate, isVisible, repaint, repaint, setChart |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getParent, getStyle |
| Field Detail |
|---|
protected final PlaneMapper mapper
| Constructor Detail |
|---|
public VectorSeries(DataModel model,
MetaDataModel metaModel,
PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
model - chart data modelmetaModel - meta data modelmapper - mapper, used to map output to a plane in a n-dimensional spacexMapper - x axis mapperyMapper - y axis mapper
public VectorSeries(ArrayDataModel model,
PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
model - chart data modelmapper - mapper, used to map output to a plane in a n-dimensional spacexMapper - x axis mapperyMapper - y axis mapper
public VectorSeries(ArrayDataModel model,
MetaDataModel metaModel,
AxisMapper xMapper,
AxisMapper yMapper)
model - chart data modelmetaModel - meta data modelxMapper - x axis mapperyMapper - y axis mapper
public VectorSeries(ArrayDataModel model,
AxisMapper xMapper,
AxisMapper yMapper)
model - chart data modelxMapper - x axis mapperyMapper - y axis mapper| Method Detail |
|---|
protected void initLegendSymbol()
LegendVectorSymbol used for representing vector series in legend.
public Projector2D getProjector()
getProjector in class AbstractChartSeries<SeriesPaintTags,Projector2D>public void draw(AbstractGraphics g)
ChartObject
draw in interface ChartObjectdraw in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>g - graphics contextpublic void drawMarkers(AbstractGraphics g)
drawMarkers in interface AbstractMarkerSeriesdrawMarkers in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>g - graphics context
protected GeneralPoint getPointForConstraint(ArrayDataModel model,
int index)
getPointForConstraint in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>public java.lang.Object getMaxValue(DataColumnType valType)
AbstractChartSeries
getMaxValue in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>valType - data value columnpublic java.lang.Object getMinValue(DataColumnType valType)
AbstractChartSeries
getMinValue in class MarkerDecorableSeries<SeriesPaintTags,Projector2D>valType - data value columnpublic void setStrategy(VectorStrategies strategy)
strategy - drawing strategypublic AbstractVectorStrategy<Projector> getStrategy()
public double getMarkerPosition()
public void setMarkerPosition(double position)
position - Marker position. Should pass value in the range [0; 1]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||