public class CustomPoint extends Series
Title: CustomPoint 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 CustomStack |
iStacked |
protected ChartPen |
linePen |
protected SeriesPointer |
point |
protected boolean |
treatNans |
protected TreatNullsStyle |
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 |
---|
CustomPoint() |
CustomPoint(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 |
addSeriesMouseListener(SeriesMouseListener l) |
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 |
calcXPos(int valueIndex)
Returns horizontal screen position for a given point.
|
int |
calcYPos(int valueIndex)
Returns vertical screen position for a given point.
|
void |
calcZOrder() |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series.
|
boolean |
clickedPointer(int valueIndex,
int tmpX,
int tmpY,
int x,
int y)
For internal use
|
protected boolean |
doNotPaintNull() |
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect) |
protected void |
drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position) |
void |
drawPointer(int aX,
int aY,
Color aColor,
int valueIndex)
Draws series pointer to the Canvas.
|
void |
drawValue(int valueIndex)
Called internally.
|
ChartPen |
getLinePen()
Determines pen to draw the line connecting all points.
|
double |
getMaxXValue()
Returns the Maximum Value of the Series X Values List.
|
double |
getMaxYValue()
Returns the Maximum Value of the Series Y Values List.
|
double |
getMinXValue()
Returns the Minimum Value of the Series X Values List.
|
double |
getMinYValue()
Returns the Minimum Value of the Series Y Values List.
|
protected int |
getOriginPos(int valueIndex) |
SeriesPointer |
getPointer()
Defines all necessary properties of the Series Pointer.
It is a subclass of Points series, Line series and all other derived Points series classes like Bubble series. Each point in a Points series is drawn using the Pointer properties. Pointer contains several methods to control the formatting attributes of Points like Pen, Brush, Draw3D, Visible, etc. |
CustomStack |
getStacked()
Defines how multiple series will be displayed.
Stacking options of Points series are: CustomSeriesStack.None: No overlap action. |
boolean |
getTreatNaNAsNull() |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
protected boolean |
IgnoreNull() |
protected PointerStyle |
onGetPointerStyle(int valueIndex,
PointerStyle style) |
void |
removePointerStyleResolver() |
void |
removeSeriesMouseListener(SeriesMouseListener l) |
protected boolean |
sameClassOrigin(Series s) |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setPointerStyleResolver(PointerStyleResolver resolver) |
void |
setStacked(CustomStack value)
Defines how multiple series will be displayed.
|
void |
setTreatNaNAsNull(boolean value) |
void |
setTreatNulls(TreatNullsStyle value) |
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, createSubGallery, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, draw, 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, 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, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesPaintListener, repaint, sameClass, setActive, setColor, 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, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
protected SeriesPointer point
protected CustomStack iStacked
protected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
public CustomPoint()
public CustomPoint(IBaseChart c)
public void assign(Series source)
Series
source
- Seriespublic void addSeriesMouseListener(SeriesMouseListener l)
addSeriesMouseListener
in class Series
public void removeSeriesMouseListener(SeriesMouseListener l)
removeSeriesMouseListener
in class Series
public void setPointerStyleResolver(PointerStyleResolver resolver)
public void removePointerStyleResolver()
public CustomStack getStacked()
public void setStacked(CustomStack value)
value
- CustomStackpublic SeriesPointer getPointer()
public void setChart(IBaseChart c)
TeeBase
protected boolean sameClassOrigin(Series s)
protected PointerStyle onGetPointerStyle(int valueIndex, PointerStyle style)
public void calcHorizMargins(Margins margins)
Series
calcHorizMargins
in class Series
margins
- Marginspublic void calcVerticalMargins(Margins margins)
Series
calcVerticalMargins
in class Series
margins
- Marginspublic void calcZOrder()
calcZOrder
in class Series
public boolean clickedPointer(int valueIndex, int tmpX, int tmpY, int x, int y)
valueIndex
- inttmpX
- inttmpY
- intx
- inty
- intprotected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect)
drawLegendShape
in class Series
protected void drawMark(int valueIndex, java.lang.String s, SeriesMarksPosition position)
public void drawPointer(int aX, int aY, Color aColor, int valueIndex)
aX
- intaY
- intaColor
- ColorvalueIndex
- intpublic int calcYPos(int valueIndex)
public int calcXPos(int valueIndex)
protected int getOriginPos(int valueIndex)
public void drawValue(int valueIndex)
public int clicked(int x, int y)
public double getMaxXValue()
getMaxXValue
in class Series
public double getMinXValue()
getMinXValue
in class Series
public double getMaxYValue()
getMaxYValue
in class Series
public double getMinYValue()
getMinYValue
in class Series
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)
public int add(double x, double y)
Series
protected boolean IgnoreNull()
protected boolean doNotPaintNull()
public boolean getTreatNaNAsNull()
public void setTreatNaNAsNull(boolean value)