public class Custom extends CustomPoint
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
Series.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
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 |
iStacked, pointAUTODEPTH, 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 |
|---|
Custom() |
Custom(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. |
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.
Default value: true |
boolean |
getColorEachLine()
Enables/Disables the coloring of each connecting line of a series.
Default value: true |
boolean |
getDark3D()
Darkens parts of 3D Line Series to add depth.
Default value: true |
boolean |
getInvertedStairs()
Changes the direction of the step, when true.
Default value: false |
int |
getLineHeight()
The vertical thickness of the line in pixels.
Default value: 0 |
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.
Default value: null |
boolean |
getSmoothed()
Gets whether the Line Series' line is smoothed.
Default value: false |
boolean |
getStairs()
Steps line joining adjacent points.
In most normal situations, a series draws a line between each Line point. |
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.
Default value: true |
void |
setColor(Color value)
Default color for all points.
Default value: Color.Empty |
void |
setColorEachLine(boolean value)
Enables/Disables the coloring of each connecting line of a series.
Default value: true |
void |
setDark3D(boolean value)
Darkens parts of 3D Line Series to add depth.
Default value: true |
void |
setInvertedStairs(boolean value)
Changes the direction of the step, when true.
Default value: false |
void |
setLineHeight(int value)
Sets the vertical thickness of the line in pixels.
Default value: 0 |
void |
setOpacity(int value)
Sets Opacity level from 0 to 100%
|
void |
setSmoothed(boolean value)
Sets whether the Line Series' line is smoothed.
Default value: false |
void |
setStairs(boolean value)
Steps line joining adjacent points.
Default value: false |
void |
setTransparency(int value)
Sets Transparency level from 0 to 100%
Default value: 0 |
void |
setTreatNaNAsNull(boolean value) |
void |
setTreatNulls(TreatNullsStyle value) |
void |
SmoothSeries() |
addSeriesMouseListener, calcXPos, calcYPos, calcZOrder, clickedPointer, drawMark, drawPointer, getMaxXValue, getMaxYValue, getMinXValue, getMinYValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setPointerStyleResolver, setStackedadd, 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, addSeriesPaintListener, addValues, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcPercentSt, calcPosValue, calculateMarkPosition, calcXPosValue, calcXSizeValue, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getDescription, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxZValue, getMiddleZ, 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, recalcGetAxis, refreshSeries, removeMarkTextResolver, 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, setSubGallery, 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 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
public Custom()
public Custom(IBaseChart c)
protected java.lang.Object readResolve()
readResolve in class Seriespublic 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()
public boolean getDark3D()
public void setDark3D(boolean value)
value - booleanpublic void setChart(IBaseChart c)
TeeBasesetChart in interface ISeriessetChart in class CustomPointc - IBaseChartpublic void setColor(Color value)
SeriessetColor in class Seriesvalue - 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)
Seriesassign in class CustomPointsource - Seriespublic void SmoothSeries()
public void setSmoothed(boolean value)
public int getLineHeight()
public void setLineHeight(int value)
value - intpublic void calcHorizMargins(Margins margins)
SeriescalcHorizMargins in class CustomPointmargins - Marginspublic void calcVerticalMargins(Margins margins)
SeriescalcVerticalMargins in class CustomPointmargins - Marginspublic int clicked(int x,
int y)
clicked in interface ISeriesclicked in class CustomPointx - inty - intpublic void drawValue(int valueIndex)
drawValue in interface ISeriesdrawValue in class CustomPointvalueIndex - intpublic void drawHiddenValue(int valueIndex,
PointDouble startEndVals,
int gapSize,
Axis axis)
drawHiddenValue in class Seriesprotected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect)
drawLegendShape in class CustomPointprotected 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()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)