|
|||||||||
| 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>
public abstract class AbstractLineStrategy<ChartProjector extends Projector> extends java.lang.Object implements AbstractStrategy, java.io.Serializable
Abstract scatter strategy class. It defines which methods the scatter strategies should implement and it implements common methods for all strategies in it.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
baseValue
Base value of the series |
protected boolean |
cachingEnabled
Indicates if caching is enabled |
protected boolean |
dirty
True, if dirty, otherwise -false |
protected boolean |
isConnected
Shows if the data points are connected and whether they can be drawn as separate primitives |
protected PlaneMapper |
mapper
Plane mapper |
protected MetaDataModel |
metaModel
Meta data model |
protected java.util.Map<DataColumnType,MinMaxValues> |
minMaxValues
Minimum and Maximum values |
protected ArrayDataModel |
model
Series data model |
protected PaintMode |
paintMode
Paint mode of the series |
protected Point2D |
planePoint
Template point for mapping plane |
protected Projector |
projector
Point projector |
protected boolean |
showNullValues
Boolean which determines if to show null values |
protected Style |
style
Style of series |
protected GeneralPoint |
tempPoint
Template point for projecting points |
protected AxisMapper |
xMapper
X axis mapper |
protected AxisMapper |
yMapper
Y axis mapper |
protected double |
zoomMultiplier
Zoom multiplier |
| Constructor and Description |
|---|
AbstractLineStrategy()
|
| Modifier and Type | Method and Description |
|---|---|
static Polygon2D |
calculateSelection(Polygon2D contour)
Calculate 4 pixels thick outline around chart line |
abstract 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. |
Point2D |
getLinePointByX(double x)
Calculates line Point2D value for a given x coordinate. |
protected java.util.Map<DataColumnType,MinMaxValues> |
getMinMaxValues()
Gets the minMaxValues value |
ArrayDataModel |
getModel()
Gets strategy data model |
protected java.lang.Object |
getX(int index)
Gets x value |
protected java.lang.Object |
getY(int index)
Gets y value |
protected Point2D |
projectPoint(Projector projector,
GeneralPoint ptt,
Point2D planePoint,
double x,
double y)
Projects the point |
| 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 ArrayDataModel model
protected MetaDataModel metaModel
protected PlaneMapper mapper
protected Style style
protected double zoomMultiplier
protected GeneralPoint tempPoint
protected Point2D planePoint
protected java.lang.Object baseValue
protected Projector projector
protected PaintMode paintMode
protected boolean isConnected
protected boolean showNullValues
protected boolean cachingEnabled
protected boolean dirty
protected java.util.Map<DataColumnType,MinMaxValues> minMaxValues
| Constructor Detail |
|---|
public AbstractLineStrategy()
| Method Detail |
|---|
public void draw(AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
java.lang.Object baseValue,
AbstractLineSeries<ChartProjector> series)
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 instancepublic abstract void dispose()
protected Point2D projectPoint(Projector projector,
GeneralPoint ptt,
Point2D planePoint,
double x,
double y)
projector - projectorptt - template pointplanePoint - template point to map plane coordinatesx - x coordinate to mapy - y coordinate to mapprotected java.lang.Object getX(int index)
index - index of the data pointprotected java.lang.Object getY(int index)
index - index of the data pointprotected java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
public ArrayDataModel getModel()
AbstractStrategy
getModel in interface AbstractStrategypublic Point2D getLinePointByX(double x)
x - coordinate for which the corresponding line point must be calculated.public static Polygon2D calculateSelection(Polygon2D contour)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||