public class Area extends Custom
Title: Area class
Description: Area Series
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
TChart
,
Serialized FormSeries.MarkTextResolver
Modifier and Type | Field and Description |
---|---|
protected ChartPen |
linePen |
protected boolean |
treatNans |
protected TreatNullsStyle |
treatnulls |
bAreaBrush, bClickableLine, bDark3D, drawArea, drawLine, pAreaLines
iStacked, point
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 |
---|
Area() |
Area(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.
|
protected double |
calcMinMaxValue(boolean isMin) |
void |
calcZOrder() |
void |
createSubGallery(Gallery addSubChart) |
protected boolean |
doNotPaintNull() |
ChartBrush |
getAreaBrush()
Determines the Brush used to fill the background Area region.
You can control the Area background color by using the Series.Color method. |
ChartPen |
getAreaLines()
Determines Pen to draw AreaLines.
By default AreaLines .Visible is false, so you need first to set it to true. |
ChartPen |
getAreaLinesPen()
Obsolete. Please use AreaLines instead.
|
java.lang.String |
getDescription()
Gets descriptive text.
|
Gradient |
getGradient()
Determines Gradient to fill the background Area region.
|
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points.
|
double |
getMaxXValue()
The Maximum Value of the Series X Values List.
|
double |
getMaxYValue()
Returns the highest of all the current Series Y point values.
|
double |
getMinXValue()
The Minimum Value of the Series X Values List.
|
double |
getMinYValue()
Returns the Minimum Value of the Series Y Values List.
As some Series have more than one Y Values List, this Minimum Value is the "Minimum of Minimums" of all Series Y Values lists. |
MultiAreas |
getMultiArea()
Determines how Multi-AreaSeries are displayed.
Determines the kind of displayed Area when there's more than one Area Series with the same ParentChart. |
double |
getOrigin()
The axis value as a common bottom for all AreaSeries points.
Default value: O |
protected int |
getOriginPos(int valueIndex) |
int |
getStackGroup() |
Gradient |
getTopGradient()
Determines how to fill the top 3D Area region.
|
boolean |
getTreatNaNAsNull() |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
boolean |
getUseOrigin()
Aligns bottom of AreaSeries to the Origin property value.
Default value: false |
protected boolean |
IgnoreNull() |
protected void |
prepareLegendCanvas(IGraphics3D g,
int valueIndex,
Color backColor,
ChartBrush aBrush) |
protected boolean |
sameClassOrigin(Series s) |
void |
setMultiArea(MultiAreas value)
Sets how multiple areas are displayed.
|
void |
setOrigin(double value)
Sets axis value as a common bottom for all AreaSeries points.
Default value: O |
void |
setStackGroup(int value) |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery
dialog.
|
void |
setTreatNaNAsNull(boolean value) |
void |
setTreatNulls(TreatNullsStyle value) |
void |
setUseOrigin(boolean value)
Enables/disables the setting of the Y value (via the Origin
property) that defines the bottom position for area points.
|
assign, calcHorizMargins, calcVerticalMargins, clicked, draw, drawHiddenValue, drawLegendShape, drawValue, getAreaBrushColor, getBrush, getClickableLine, getColorEachLine, getDark3D, getInvertedStairs, getLineHeight, getOpacity, getOutLine, getSmoothed, getStairs, getTransparency, readResolve, setChart, setClickableLine, setColor, setColorEachLine, setDark3D, setInvertedStairs, setLineHeight, setOpacity, setSmoothed, setStairs, setTransparency, SmoothSeries
addSeriesMouseListener, calcXPos, calcYPos, clickedPointer, drawMark, drawPointer, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, setPointerStyleResolver, setStacked
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, 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, 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, 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, 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, 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
protected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
public Area(IBaseChart c)
public Area()
public MultiAreas getMultiArea()
setMultiArea(com.steema.teechart.styles.MultiAreas)
public void setMultiArea(MultiAreas value)
value
- MultiAreasgetMultiArea()
public ChartBrush getAreaBrush()
public Gradient getTopGradient()
public Gradient getGradient()
Example:
areaSeries = new Area(myChart.getChart()); areaSeries.getMarks().setVisible(false); areaSeries.setColor(Color.RED); areaSeries.fillSampleValues(10); areaSeries.setTransparency(0); areaSeries.setStacked(CustomStack.NONE); com.steema.teechart.drawing.Gradient tmpGradient = areaSeries.getGradient(); tmpGradient.setVisible(true); tmpGradient.setUseMiddle(true); tmpGradient.setDirection(GradientDirection.HORIZONTAL); tmpGradient.setStartColor(Color.RED); tmpGradient.setMiddleColor(Color.BLUE); tmpGradient.setEndColor(Color.GREEN); tmpGradient.setTransparency(0);
public ChartPen getAreaLinesPen()
public ChartPen getAreaLines()
public boolean getUseOrigin()
public void setUseOrigin(boolean value)
Example:
areaSeries = new Area(myChart.getChart()); areaSeries.getMarks().setVisible(false); areaSeries.fillSampleValues(20); areaSeries.setStacked(CustomStack.NONE); areaSeries.setUseOrigin(false); areaSeries.setOrigin(200);
value
- booleangetOrigin()
public double getOrigin()
public void setOrigin(double value)
Example:
areaSeries = new Area(myChart.getChart()); areaSeries.getMarks().setVisible(false); areaSeries.fillSampleValues(20); areaSeries.setStacked(CustomStack.NONE); areaSeries.setUseOrigin(false); areaSeries.setOrigin(200);
value
- doublepublic int getStackGroup()
public void setStackGroup(int value)
public void calcZOrder()
calcZOrder
in class CustomPoint
protected boolean sameClassOrigin(Series s)
sameClassOrigin
in class CustomPoint
public double getMaxYValue()
getMaxYValue
in class CustomPoint
public double getMinYValue()
getMinYValue
in class CustomPoint
public double getMaxXValue()
getMaxXValue
in class CustomPoint
public double getMinXValue()
getMinXValue
in class CustomPoint
public java.lang.String getDescription()
getDescription
in class Series
protected int getOriginPos(int valueIndex)
getOriginPos
in class CustomPoint
protected void prepareLegendCanvas(IGraphics3D g, int valueIndex, Color backColor, ChartBrush aBrush)
prepareLegendCanvas
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
- intprotected 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)
Series
protected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)