public class Arrow extends Points
Title: Arrow class
Description: Arrow Series.
Example:
arrowSeries = new com.steema.teechart.styles.Arrow(myChart.getChart()); arrowSeries.setArrowWidth(32); arrowSeries.setArrowHeight(32); arrowSeries.getXValues().setDateTime(false); arrowSeries.getYValues().setDateTime(false); arrowSeries.setColorEach(true); addRandomArrows();
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
protected ChartPen |
linePen |
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 |
|---|
Arrow() |
Arrow(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.
|
int |
add(double x0,
double y0,
double x1,
double y1)
Adds an Arrow with start and end coordinates.
Returns the position of the Arrow in the list. Positions start at zero. |
int |
add(double x0,
double y0,
double x1,
double y1,
Color color)
Returns the position of the Arrow in the list.
Positions start at zero. |
int |
add(double x0,
double y0,
double x1,
double y1,
java.lang.String text)
Adds an Arrow with start and end coordinates and label.
Returns the position of the Arrow in the list. Positions start at zero. |
int |
add(double x0,
double y0,
double x1,
double y1,
java.lang.String text,
Color color)
Returns the position of the Arrow in the list.
Positions start at zero. |
protected void |
addSampleValues(int numValues) |
protected double |
calcMinMaxValue(boolean isMin) |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series.
|
protected boolean |
doNotPaintNull() |
void |
drawValue(int valueIndex)
Called internally.
|
int |
getArrowHeight()
Determines the vertical arrow head size in pixels.
It sets the distance from the base of the arrow head to the arrow tip in pixels. |
int |
getArrowWidth()
Determines the horizontal arrow head size in pixels.
|
java.lang.String |
getDescription()
Gets descriptive text.
|
ValueList |
getEndXValues()
The X1 values for Arrows.
Each Arrow has (X0,Y0) and (X1,Y1) coordinates. |
ValueList |
getEndYValues()
The Y1 values for Arrows.
Each Arrow has (X0,Y0) and (X1,Y1) coordinates. |
double |
getMaxXValue()
The Maximum Value of the Series X Values List.
|
double |
getMaxYValue()
The Maximum Value of the Series Y Values List.
|
double |
getMinXValue()
The Minimum Value of the Series X Values List.
|
double |
getMinYValue()
The Minimum Value of the Series Y Values List.
|
ValueList |
getStartXValues()
The X0 values for Arrows.
|
ValueList |
getStartYValues()
The Y0 values for Arrows.
Each Arrow has (X0,Y0) and (X1,Y1) coordinates. |
boolean |
getTreatNaNAsNull() |
TreatNullsStyle |
getTreatNulls()
Defines how null points are treated.
|
protected boolean |
IgnoreNull() |
void |
setArrowHeight(int value)
Sets the vertical arrow head size in pixels.
|
void |
setArrowWidth(int value)
Sets the horizontal arrow head size in pixels.
|
void |
setEndXValues(ValueList value)
Sets X1 values for Arrows.
|
void |
setEndYValues(ValueList value)
Sets Y1 values for Arrows.
|
void |
setStartXValues(ValueList value)
Sets X0 values for Arrows.
|
void |
setStartYValues(ValueList value)
Sets Y0 values for Arrows.
|
void |
setTreatNaNAsNull(boolean value) |
void |
setTreatNulls(TreatNullsStyle value) |
assign, canDoExtra, createSubGallery, getColor, getLinePen, setColor, setColorEach, setSubGalleryaddSeriesMouseListener, calcHorizMargins, calcVerticalMargins, calcXPos, calcYPos, calcZOrder, clickedPointer, drawLegendShape, drawMark, drawPointer, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setChart, 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, 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, draw, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getBrush, 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, prepareLegendCanvas, randomBounds, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesPaintListener, repaint, sameClass, setActive, 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, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidateprotected ChartPen linePen
protected TreatNullsStyle treatnulls
protected boolean treatNans
public Arrow()
public Arrow(IBaseChart c)
public int getArrowHeight()
public void setArrowHeight(int value)
value - intgetArrowHeight()public int getArrowWidth()
public void setArrowWidth(int value)
value - intpublic ValueList getStartXValues()
public void setStartXValues(ValueList value)
value - ValueListpublic ValueList getStartYValues()
public void setStartYValues(ValueList value)
value - ValueListpublic ValueList getEndXValues()
public void setEndXValues(ValueList value)
value - ValueListpublic ValueList getEndYValues()
public void setEndYValues(ValueList value)
value - ValueListpublic int add(double x0,
double y0,
double x1,
double y1)
x0 - double arrow start x coordinatey0 - double arrow start y coordinatex1 - double arrow end x coordinatey1 - double arrow end y coordinatepublic int add(double x0,
double y0,
double x1,
double y1,
java.lang.String text)
x0 - double arrow start x coordinatey0 - double arrow start y coordinatex1 - double arrow end x coordinatey1 - double arrow end y coordinatetext - String label textpublic int add(double x0,
double y0,
double x1,
double y1,
Color color)
x0 - double arrow start x coordinatey0 - double arrow start y coordinatex1 - double arrow end x coordinatey1 - double arrow end y coordinatecolor - Color arrow colorpublic int add(double x0,
double y0,
double x1,
double y1,
java.lang.String text,
Color color)
x0 - double arrow start x coordinatey0 - double arrow start y coordinatex1 - double arrow end x coordinatey1 - double arrow end y coordinatetext - String label textcolor - Color arrow colorprotected void addSampleValues(int numValues)
addSampleValues in class Seriespublic int clicked(int x,
int y)
CustomPointclicked in interface ISeriesclicked in class CustomPointx - inty - intpublic double getMaxXValue()
getMaxXValue in class CustomPointpublic double getMinXValue()
getMinXValue in class CustomPointpublic double getMaxYValue()
getMaxYValue in class CustomPointpublic double getMinYValue()
getMinYValue in class CustomPointpublic void drawValue(int valueIndex)
drawValue in interface ISeriesdrawValue in class CustomPointvalueIndex - intpublic java.lang.String getDescription()
getDescription in class Pointsprotected double calcMinMaxValue(boolean isMin)
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)