|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.styles.Series
com.steema.teechart.styles.FastLine
public class FastLine
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-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
---|
Series.MarkTextResolver |
Field Summary | |
---|---|
protected ChartPen |
linePen
|
protected TreatNullsStyle |
treatnulls
|
Fields inherited from class com.steema.teechart.styles.Series |
---|
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, InternalUse, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart |
Constructor Summary | |
---|---|
FastLine()
|
|
FastLine(IBaseChart c)
|
Method Summary | |
---|---|
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 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. |
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. |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated. |
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 |
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 |
setTreatNulls(TreatNullsStyle value)
|
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.steema.teechart.styles.ISeries |
---|
getChart, invalidate |
Field Detail |
---|
protected ChartPen linePen
protected TreatNullsStyle treatnulls
Constructor Detail |
---|
public FastLine(IBaseChart c)
public FastLine()
Method Detail |
---|
public void setChart(IBaseChart value)
TeeBase
setChart
in interface ISeries
value
- IBaseChartpublic 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 void setColor(Color value)
Series
setColor
in class Series
value
- ColorSeries.getColorEach()
public int clicked(int x, int y)
clicked
in interface ISeries
clicked
in class Series
x
- inty
- int
protected void draw()
draw
in class Series
public void drawValue(int index)
drawValue
in interface ISeries
drawValue
in class Series
index
- intprotected void drawMark(int valueIndex, java.lang.String st, SeriesMarksPosition aPosition)
drawMark
in class Series
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
- booleanpublic java.lang.String getDescription()
getDescription
in class Series
public void assign(Series source)
Series
assign
in class Series
source
- Seriesprotected double calcMinMaxValue(boolean isMin)
public ChartPen getLinePen()
public TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |