public class FastLine extends Series
Title: FastLine class
Description: The FastLine Series is an extremely simple Series component that draws its points as fast as possible.
Example:
myChart.getAxes().setVisible(true); myChart.setClipPoints(true); // hide things for better speed myChart.getAspect().setView3D(false); myChart.getLegend().setVisible(false); myChart.getFooter().setVisible(false); myChart.getHeader().setVisible(false);
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
protected ChartPen |
linePen |
protected boolean |
treatNans |
protected TreatNullsStyle |
treatnulls |
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, oldDataSource, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatorychart, InternalUse| Constructor and Description |
|---|
FastLine() |
FastLine(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double[] xValues,
double[] yValues,
boolean append) |
int |
add(double x,
double y)
Adds a new point with specified x and y values.
|
void |
assign(Series source)
Copies all properties from one Series component to another.
Only the common properties shared by both source and destination Series are copied. |
protected double |
calcMinMaxValue(boolean isMin) |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series.
Clicked means the X and Y coordinates are in the point screen region bounds. |
void |
createSubGallery(Gallery addSubChart) |
protected boolean |
doNotPaintNull() |
protected void |
draw() |
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect) |
protected void |
drawMark(int valueIndex,
java.lang.String st,
SeriesMarksPosition aPosition) |
void |
drawValue(int index)
Called internally.
|
boolean |
getAutoRepaint()
Repaints Chart after any changes are made.
Use AutoRepaint false to disable Chart repainting whilst, for example, adding a large number of points to a FastLine Series. |
java.lang.String |
getDescription()
Gets descriptive text.
|
boolean |
getDrawAllPoints()
When false, it only draws the first point at any X pixel location.
|
DrawAllPointsStyle |
getDrawAllPointsStyle()
The DrawAllPoints style.
It defines the method used to calculate the DrawAllPoints style. FastLine series DrawAllPoints should be false. Default value: FIRST |
boolean |
getIgnoreNulls()
Displays null points when false
For speed reasons, FastLine series supports null (empty) values only when IgnoreNulls is false. |
boolean |
getInvertedStairs()
Controls the FastLine series drawing.
|
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points.
|
double |
getMaxYValue()
The Maximum Value of the Series Y Values List.
|
double |
getMinYValue()
The Minimum Value of the Series Y Values List.
|
boolean |
getStairs()
Controls the drawing of FastLine series.
|
int |
getTransparency()
The Transparency of the FastLine series as a percentage.
|
boolean |
getTreatNaNAsNull() |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
protected boolean |
IgnoreNull() |
void |
setAutoRepaint(boolean value)
Repaints Chart after any changes are made.
Default value: true |
void |
setChart(IBaseChart value)
Chart associated with this object.
|
void |
setColor(Color value)
Default color for all points.
Default value: Color.Empty |
void |
setDrawAllPoints(boolean value)
When false, it only draws the first point at any X pixel location.
|
void |
setDrawAllPointsStyle(DrawAllPointsStyle value)
Sets the DrawAllPoints style.
Default value: FIRST |
void |
setIgnoreNulls(boolean value)
Displays null points when false
Default value: true |
void |
setInvertedStairs(boolean value)
Controls the FastLine series drawing.
|
void |
setStairs(boolean value)
Controls the drawing of FastLine series.
|
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery
dialog.
|
void |
setTransparency(int value)
Sets the Transparency of the FastLine series as a percentage.
|
void |
setTreatNaNAsNull(boolean value) |
void |
setTreatNulls(TreatNullsStyle value) |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addChartValue, added, addedValue, addNull, addNullXY, addSampleValues, addSeriesMouseListener, addSeriesPaintListener, addValues, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getBrush, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxXValue, getMaxZValue, getMiddleZ, getMinXValue, getMinZValue, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getPoint, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueColor, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasColors, hasDataSource, hasLabels, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, numSampleValues, onDisposing, prepareForGallery, prepareLegendCanvas, randomBounds, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setActive, setColorEach, setColorMember, setColors, setCursor, setCustomHorizAxis, setCustomHorizAxis, setCustomVertAxis, setCustomVertAxis, setDataSource, setDefaultNullValue, setDepth, setEndZ, setFunction, setHorizontal, setHorizontalAxis, setLabelMember, setLabels, setMarks, setMarkTextResolver, setMiddleZ, setNull, setNull, setPercentFormat, setSeriesColor, setShowInLegend, setStartZ, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, sortDrawSeries, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidateprotected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
public FastLine(IBaseChart c)
public FastLine()
public void setChart(IBaseChart value)
TeeBasepublic double getMaxYValue()
SeriesgetMaxYValue in class Seriespublic double getMinYValue()
SeriesgetMinYValue in class Seriespublic boolean getAutoRepaint()
public void setAutoRepaint(boolean value)
value - booleanpublic int getTransparency()
public void setTransparency(int value)
value - intpublic boolean getDrawAllPoints()
public void setDrawAllPoints(boolean value)
Example:
lineSeries.setDrawAllPoints( false );
value - booleanpublic DrawAllPointsStyle getDrawAllPointsStyle()
public void setDrawAllPointsStyle(DrawAllPointsStyle value)
value - DrawAllPointsStylepublic void setColor(Color value)
SeriessetColor in class Seriesvalue - ColorSeries.getColorEach()public int clicked(int x,
int y)
public void drawValue(int index)
protected void drawMark(int valueIndex,
java.lang.String st,
SeriesMarksPosition aPosition)
protected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect)
drawLegendShape in class Seriespublic void createSubGallery(Gallery addSubChart)
createSubGallery in class Seriespublic void setSubGallery(int index)
SeriessetSubGallery in interface ISeriessetSubGallery in class Seriesindex - intpublic boolean getStairs()
public void setStairs(boolean value)
Example:
lineSeries1.setStairs( true );
value - booleanpublic boolean getInvertedStairs()
public void setInvertedStairs(boolean value)
value - booleanpublic boolean getIgnoreNulls()
public void setIgnoreNulls(boolean value)
Example:
lineSeries1.setNull( 123 ); // -- make null (empty) point index 123 lineSeries1.setIgnoreNulls( false ); // -- allow null points lineSeries1.setStairs( true ); // -- set "stairs" mode
value - booleanprotected boolean doNotPaintNull()
public java.lang.String getDescription()
getDescription in class Seriespublic void assign(Series source)
Seriesprotected double calcMinMaxValue(boolean isMin)
public ChartPen getLinePen()
public TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
public void add(double[] xValues,
double[] yValues,
boolean append)
public int add(double x,
double y)
Seriesprotected boolean IgnoreNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)