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-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver
iStacked, point
linePen, treatNans, 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 |
---|
Arrow() |
Arrow(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
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) |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series.
|
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. |
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.
|
assign, canDoExtra, createSubGallery, getColor, getLinePen, setColor, setColorEach, setSubGallery
addSeriesMouseListener, calcHorizMargins, calcVerticalMargins, calcXPos, calcYPos, calcZOrder, clickedPointer, drawLegendShape, drawMark, drawPointer, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setChart, setPointerStyleResolver, setStacked
add, add, calcMinMaxValue, doNotPaintNull, getTreatNaNAsNull, getTreatNulls, IgnoreNull, setTreatNaNAsNull, setTreatNulls
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, 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, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
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 Series
public int clicked(int x, int y)
CustomPoint
clicked
in interface ISeries
clicked
in class CustomPoint
x
- inty
- intpublic double getMaxXValue()
getMaxXValue
in class CustomPoint
public double getMinXValue()
getMinXValue
in class CustomPoint
public double getMaxYValue()
getMaxYValue
in class CustomPoint
public double getMinYValue()
getMinYValue
in class CustomPoint
public void drawValue(int valueIndex)
drawValue
in interface ISeries
drawValue
in class CustomPoint
valueIndex
- intpublic java.lang.String getDescription()
getDescription
in class Points