|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart3D.series.AbstractLine3DStrategy
lt.monarch.chart.chart3D.series.Line3DStrategy
public class Line3DStrategy extends AbstractLine3DStrategy
Direct line series strategy.
| Modifier and Type | Field and Description |
|---|---|
protected Polygon3D[] |
bottomPolygon
bottom line polygon |
protected double[] |
firstX
First x coordinates |
protected boolean |
isSortedSeries
If true series is sorted |
protected double[] |
lastX
Last x coordinates |
protected double |
lineWidth
Line depth value |
protected Polygon3D[] |
polygon
Line series polygon array, new polygon if null values are present |
protected PseudoArrayDataModel3D |
pseudoModel
Data pseudo model |
| Fields inherited from class lt.monarch.chart.chart3D.series.AbstractLine3DStrategy |
|---|
baseValue, dirty, isConnected, mapper, metaModel, minMaxValues, model, paintMode, planePoint, projector, showNullValues, style, tempPoint, xMapper, yMapper, zMapper, zoomMultiplier |
| Constructor and Description |
|---|
Line3DStrategy()
Line3D strategy constructor |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendSeriesRectangles(Line3DSeries series,
Polygon3D polygon,
Area areaFull)
|
protected int |
buildSeriesPolygons(Polygon3D[] linePolygon,
double[] firstX,
double[] lastX,
Polygon3D[] bottomPolygon,
boolean drawNulls)
Builds polygons that are used to render series line and toFill it's area if toFill color is set. |
void |
dispose()
Disposes the object |
void |
draw(AbstractGraphics g,
Projector projector,
PlaneMapper3D mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
java.lang.Object baseValue,
Line3DSeries series)
Draws the series in the chart area. |
protected void |
drawLine(AbstractGraphics g,
Line3DSeries series,
HotSpotMap hotMap)
Paints the connected series line in the specified Graphics context. |
protected int |
formNewPolygon(Polygon3D[] polygon,
double[] firstX,
double[] lastX,
Polygon3D[] bottomPolygon,
int pi)
Forms a new polygon if previous polygon contains at least one point |
protected double |
getDataValueMappingHeight(java.lang.Object value,
int index)
Gets value of data height |
double |
getLineWidth()
|
protected Point3D |
getPointPosition(int markerIndex)
Computes the marker's specified by the index position. |
protected void |
initDrawing()
Initializes polygon arrays and other arrays Also determines line direction |
protected boolean |
isDataInverted()
Checks if the data of the line is inverted |
protected boolean |
isStacked()
Checks if the data model is stacked |
protected Polygon3D |
projectPolygon(Polygon3D polygon)
|
void |
setLineWidth(double width)
|
protected boolean |
showNullPoints()
Checks and returns if user has set nullLineColor or nullFillColor objects. |
| Methods inherited from class lt.monarch.chart.chart3D.series.AbstractLine3DStrategy |
|---|
finalize, getMinMaxValues, getX, getY, getZ, projectPoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isSortedSeries
protected double[] firstX
protected double[] lastX
protected Polygon3D[] polygon
protected Polygon3D[] bottomPolygon
protected PseudoArrayDataModel3D pseudoModel
protected double lineWidth
| Constructor Detail |
|---|
public Line3DStrategy()
| Method Detail |
|---|
public void dispose()
AbstractLine3DStrategy
dispose in class AbstractLine3DStrategyprotected boolean isDataInverted()
public void draw(AbstractGraphics g,
Projector projector,
PlaneMapper3D mapper,
HotSpotMap hotMap,
boolean showNullValues,
Style style,
java.lang.Object baseValue,
Line3DSeries series)
AbstractLine3DStrategy
draw in class AbstractLine3DStrategyg - 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
protected void drawLine(AbstractGraphics g,
Line3DSeries series,
HotSpotMap hotMap)
g - the Graphics context in which to paint the series line. NOTE:
setShowNullValues(boolean) works a little different here. When set to true, the
line is broken and started from the next non-null point value. When set to false,
the null values are simply ignored: the line connects all non-null value points.series - lt.monarch.chart.chart3D.series.Line3DSerieshotMap - lt.monarch.chart.engine.HotSpotMapAbstractChartSeries.setShowNullValues(boolean)protected void initDrawing()
protected int buildSeriesPolygons(Polygon3D[] linePolygon,
double[] firstX,
double[] lastX,
Polygon3D[] bottomPolygon,
boolean drawNulls)
linePolygon - array of polygons that forms series polylinefirstX - array of series segments start positions [0;1]lastX - array of series segments end positions [0;1]bottomPolygon - array of polygons that forms bottom polyline of series areadrawNulls - declares when to calculate values and build polygons for null values in
data model.protected Point3D getPointPosition(int markerIndex)
markerIndex - index of the marker to compute position forprotected Polygon3D projectPolygon(Polygon3D polygon)
protected int formNewPolygon(Polygon3D[] polygon,
double[] firstX,
double[] lastX,
Polygon3D[] bottomPolygon,
int pi)
polygon - Line polygon arrayfirstX - First point arraylastX - Last point arraybottomPolygon - Bottom line polygon arraypi - Count of the polygons currently in polygon array
protected double getDataValueMappingHeight(java.lang.Object value,
int index)
value - value of Objectindex - number in array of objectprotected boolean isStacked()
protected boolean showNullPoints()
public void setLineWidth(double width)
public double getLineWidth()
protected void appendSeriesRectangles(Line3DSeries series,
Polygon3D polygon,
Area areaFull)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||