|
|||||||||
| 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.spc.SPCLinesExceedStrategy<ChartProjector>
public class SPCLinesExceedStrategy<ChartProjector extends Projector> extends AbstractLineStrategy<ChartProjector>
SPC line series strategy for showing where given measurement series is exceeding limit series data.
| Modifier and Type | Field and Description |
|---|---|
protected Polygon2D[] |
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 Orientation |
lineOrientation
Specifies if the line direction is vertical |
protected Polygon2D[] |
polygon
Line series polygon array, new polygon if null values are present |
protected PseudoArrayDataModel |
pseudoModel
Data pseudo model |
| 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 |
|---|
SPCLinesExceedStrategy(LineSeries measurementSeries,
LineSeries limitSeries,
boolean checkUpperLimitExceeding)
SPC line series strategy for showing where given measurement series is exceeding limit series data. |
| Modifier and Type | Method and Description |
|---|---|
protected int |
binarySearch(java.lang.Object value)
Deprecated. |
protected Polygon2D |
cacheLines(java.util.List<java.lang.Double> x,
java.util.List<java.lang.Double> y,
int n)
Forms a polygon which has to be drawn. |
protected void |
determineLineDirection()
Determines the direction of the line |
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. |
protected void |
drawLine(AbstractGraphics g,
AbstractLineSeries<ChartProjector> series)
Paints the connected series line in the specified Graphics context. |
protected int |
formNewPolygon(Polygon2D[] polygon,
double[] firstX,
double[] lastX,
Polygon2D[] 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 |
protected int |
getEndIndex()
Gets the x value of visible range start |
Point2D |
getLinePointByX(double x)
Calculates line Point2D value for a given x coordinate. |
protected Point2D |
getPointPosition(int markerIndex)
Computes the marker's specified by the index position. |
protected int |
getStartIndex()
Gets the x value of the visible range end |
protected java.lang.Object |
getValue(int index)
Gets the value |
protected void |
initDrawing()
Initializes polygon arrays and other arrays. |
protected boolean |
isDataInverted()
Checks if the data of the line is inverted |
protected boolean |
isStacked()
Checks if the data model is stacked |
protected boolean |
showNullPoints()
Checks and returns if user has set nullLineColor or nullFillColor objects. |
| Methods inherited from class lt.monarch.chart.chart2D.series.AbstractLineStrategy |
|---|
calculateSelection, 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 Orientation lineOrientation
protected boolean isSortedSeries
protected double[] firstX
protected double[] lastX
protected Polygon2D[] polygon
protected Polygon2D[] bottomPolygon
protected PseudoArrayDataModel pseudoModel
| Constructor Detail |
|---|
public SPCLinesExceedStrategy(LineSeries measurementSeries,
LineSeries limitSeries,
boolean checkUpperLimitExceeding)
measurementSeries - limitSeries - checkUpperLimitExceeding - if true it checks if measurementSeries data is higher than limitSeries data,
otherwise (false) - chekcs if measurement data is lower than given limitSeries data.| Method Detail |
|---|
public void dispose()
AbstractLineStrategy
dispose in class AbstractLineStrategy<ChartProjector extends Projector>public Point2D getLinePointByX(double x)
AbstractLineStrategy
getLinePointByX in class AbstractLineStrategy<ChartProjector extends Projector>x - coordinate for which the corresponding line point must be calculated.protected void determineLineDirection()
protected boolean isDataInverted()
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
protected void drawLine(AbstractGraphics g,
AbstractLineSeries<ChartProjector> series)
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 - Chart series to which this strategy belongsAbstractChartSeries.setShowNullValues(boolean)
protected Polygon2D cacheLines(java.util.List<java.lang.Double> x,
java.util.List<java.lang.Double> y,
int n)
x - x point arrayy - y point arrayn - number of pointsprotected void initDrawing()
protected int getStartIndex()
protected int getEndIndex()
@Deprecated protected int binarySearch(java.lang.Object value)
protected java.lang.Object getValue(int index)
protected Point2D getPointPosition(int markerIndex)
markerIndex - index of the marker to compute position for
protected int formNewPolygon(Polygon2D[] polygon,
double[] firstX,
double[] lastX,
Polygon2D[] 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||