public class FastLine extends BaseLine
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-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver
linePen, treatNans, 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, yMandatory
chart, InternalUse
Constructor and Description |
---|
FastLine() |
FastLine(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
add, add, assign, calcMinMaxValue, getLinePen, getTreatNaNAsNull, getTreatNulls, IgnoreNull, setTreatNaNAsNull, setTreatNulls
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, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
public FastLine(IBaseChart c)
public FastLine()
public void setChart(IBaseChart value)
TeeBase
public double getMaxYValue()
Series
getMaxYValue
in class Series
public double getMinYValue()
Series
getMinYValue
in class Series
public 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)
Series
setColor
in class Series
value
- 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 Series
public void createSubGallery(Gallery addSubChart)
createSubGallery
in class Series
public void setSubGallery(int index)
Series
setSubGallery
in interface ISeries
setSubGallery
in class Series
index
- 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()
doNotPaintNull
in class BaseLine
public java.lang.String getDescription()
getDescription
in class Series