|
||||||||||
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.CustomPoint
com.steema.teechart.styles.Custom
public class Custom
Title: Custom class
Description: Base Series class inherited by a number of TeeChart series styles.
Copyright (c) 2005-2013 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 ChartBrush |
bAreaBrush
|
protected boolean |
bClickableLine
|
protected boolean |
bDark3D
|
protected boolean |
drawArea
|
protected boolean |
drawLine
|
protected ChartPen |
linePen
|
protected ChartPen |
pAreaLines
|
protected boolean |
treatNans
|
protected TreatNullsStyle |
treatnulls
|
Fields inherited from class com.steema.teechart.styles.CustomPoint |
---|
iStacked, point |
Fields inherited from class com.steema.teechart.styles.Series |
---|
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, 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, InternalUse |
Constructor Summary | |
---|---|
Custom()
|
|
Custom(IBaseChart c)
|
Method Summary | |
---|---|
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. |
void |
calcHorizMargins(Margins margins)
Returns the number of pixels for horizontal margins |
protected double |
calcMinMaxValue(boolean isMin)
|
void |
calcVerticalMargins(Margins margins)
Returns the number of pixels for vertical margins |
int |
clicked(int x,
int y)
Calculates if any point is at XY position. |
protected boolean |
doNotPaintNull()
|
protected void |
draw()
|
void |
drawHiddenValue(int valueIndex,
PointDouble startEndVals,
int gapSize,
Axis axis)
|
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
|
void |
drawValue(int valueIndex)
Called internally. |
protected Color |
getAreaBrushColor(Color c)
|
ChartBrush |
getBrush()
Sets Brush characteristics. |
boolean |
getClickableLine()
Allows mouse clicks over the line drawn between points. |
boolean |
getColorEachLine()
Enables/Disables the coloring of each connecting line of a series. |
boolean |
getDark3D()
Darkens parts of 3D Line Series to add depth. |
boolean |
getInvertedStairs()
Changes the direction of the step, when true. |
int |
getLineHeight()
The vertical thickness of the line in pixels. |
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points. |
int |
getOpacity()
Opacity level from 0 to 100% |
ChartPen |
getOutLine()
Pen for Series Line's outer pen. |
boolean |
getSmoothed()
Gets whether the Line Series' line is smoothed. |
boolean |
getStairs()
Steps line joining adjacent points. |
int |
getTransparency()
Transparency level from 0 to 100% Default value: 0 |
boolean |
getTreatNaNAsNull()
|
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated. |
protected boolean |
IgnoreNull()
|
protected java.lang.Object |
readResolve()
|
void |
setChart(IBaseChart c)
Chart associated with this object. |
void |
setClickableLine(boolean value)
Allows mouse clicks over the line drawn between points. |
void |
setColor(Color value)
Default color for all points. |
void |
setColorEachLine(boolean value)
Enables/Disables the coloring of each connecting line of a series. |
void |
setDark3D(boolean value)
Darkens parts of 3D Line Series to add depth. |
void |
setInvertedStairs(boolean value)
Changes the direction of the step, when true. |
void |
setLineHeight(int value)
Sets the vertical thickness of the line in pixels. |
void |
setOpacity(int value)
Sets Opacity level from 0 to 100% |
void |
setSmoothed(boolean value)
Sets whether the Line Series' line is smoothed. |
void |
setStairs(boolean value)
Steps line joining adjacent points. |
void |
setTransparency(int value)
Sets Transparency level from 0 to 100% Default value: 0 Example: Series1.setTransparency(45); |
void |
setTreatNaNAsNull(boolean value)
|
void |
setTreatNulls(TreatNullsStyle value)
|
Methods inherited from class com.steema.teechart.styles.CustomPoint |
---|
addSeriesMouseListener, calcXPos, calcYPos, calcZOrder, clickedPointer, drawMark, drawPointer, getMaxXValue, getMaxYValue, getMinXValue, getMinYValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setPointerStyleResolver, setStacked |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, 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 ChartBrush bAreaBrush
protected ChartPen pAreaLines
protected boolean bClickableLine
protected boolean bDark3D
protected boolean drawArea
protected boolean drawLine
protected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
Constructor Detail |
---|
public Custom()
public Custom(IBaseChart c)
Method Detail |
---|
protected java.lang.Object readResolve()
readResolve
in class Series
public boolean getClickableLine()
Example:
lineSeries.setClickableLine( false );
public void setClickableLine(boolean value)
value
- booleanpublic int getOpacity()
public void setOpacity(int value)
value
- intpublic int getTransparency()
public void setTransparency(int value)
Example:
Series1.setTransparency(45);
value
- intpublic ChartBrush getBrush()
getBrush
in class Series
public boolean getDark3D()
public void setDark3D(boolean value)
value
- booleanpublic void setChart(IBaseChart c)
TeeBase
setChart
in interface ISeries
setChart
in class CustomPoint
c
- IBaseChartpublic void setColor(Color value)
Series
setColor
in class Series
value
- ColorSeries.getColorEach()
public boolean getStairs()
public void setStairs(boolean value)
Example:
areaSeries1.setStairs(true); areaSeries2.setStairs(true);
value
- booleangetStairs()
public boolean getColorEachLine()
Example:
lineSeries.setColorEach(true); lineSeries.setColorEachLine(false);
public void setColorEachLine(boolean value)
value
- booleanpublic boolean getInvertedStairs()
public void setInvertedStairs(boolean value)
value
- booleanpublic ChartPen getOutLine()
Example:
lineSeries.getOutline().setColor(Color.Yellow);
public boolean getSmoothed()
public void assign(Series source)
Series
assign
in class CustomPoint
source
- Seriespublic void setSmoothed(boolean value)
public int getLineHeight()
public void setLineHeight(int value)
value
- intpublic void calcHorizMargins(Margins margins)
Series
calcHorizMargins
in class CustomPoint
margins
- Marginspublic void calcVerticalMargins(Margins margins)
Series
calcVerticalMargins
in class CustomPoint
margins
- Marginspublic int clicked(int x, int y)
clicked
in interface ISeries
clicked
in class CustomPoint
x
- inty
- int
protected void draw()
draw
in class Series
protected Color getAreaBrushColor(Color c)
public void drawValue(int valueIndex)
drawValue
in interface ISeries
drawValue
in class CustomPoint
valueIndex
- intpublic void drawHiddenValue(int valueIndex, PointDouble startEndVals, int gapSize, Axis axis)
drawHiddenValue
in class Series
protected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect)
drawLegendShape
in class CustomPoint
protected double calcMinMaxValue(boolean isMin)
public ChartPen getLinePen()
public TreatNullsStyle getTreatNulls()
public void setTreatNulls(TreatNullsStyle value)
public void add(double[] xValues, double[] yValues, boolean append)
add
in class Series
public int add(double x, double y)
Series
add
in interface ISeries
add
in class Series
x
- doubley
- double
protected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |