public class CustomError extends Bar
Title: CustomError class
Description: CustomErrorSeries Series.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
CustomBar.BarRounding, CustomBar.BarStyleResolver, CustomBar.MarksLocationSeries.MarkTextResolver| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bDrawBar |
protected ErrorStyle |
iErrorStyle |
barSizePercent, bDark3D, bUseOrigin, conePercent, customBarSize, dOrigin, iBarBounds, iBarSize, iMultiBar, iNumBars, iOrderPos, iPreviousCount, marksOnBar, normalBarColor, pPenAUTODEPTH, 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 |
|---|
CustomError() |
CustomError(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(double x,
double y,
double errorValue)
Adds a new Error Bar point to the Series.
|
int |
add(double x,
double y,
double errorValue,
Color color)
Adds a new Error Bar point to the Series in selected color.
|
int |
add(double x,
double y,
double errorValue,
java.lang.String text)
Adds a new Error Bar point to the Series with label.
|
int |
add(double x,
double y,
double errorValue,
java.lang.String text,
Color color)
Adds a new Error Bar point in selected color and with label.
|
protected void |
addSampleValues(int numValues) |
int |
addValue(double y,
double errorValue)
Adds a new Error Bar point with y value and error Value only.
|
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
|
void |
calcVerticalMargins(Margins margins)
Returns the number of pixels for vertical margins
|
void |
drawBar(int barIndex,
int startPos,
int endPos)
Displays an ErrorBar point ( BarIndex point ) using the Start and
End pixel coordinates.
|
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle r) |
ChartPen |
getErrorPen()
Defines Pen to draw Error "T" on top of Error Bars.
|
ErrorStyle |
getErrorStyle()
Defines the Error Series Style according to EErrorSeriesStyle.
Default value: ErrorStyle.TopBottom |
ValueList |
getErrorValues()
Gets and sets the corresponding Error value for each Bar.
The Error value will be displayed as a "T" on top of each Bar. |
int |
getErrorWidth()
Determines the horizontal size of the Error "T".
Size is expressed either in pixels or in percent of Bar width depending on ErrorWidthUnit property. |
ErrorWidthUnit |
getErrorWidthUnits()
The ErrorWidth in pixels or percentage of Bar width.
By default, the Error "T" width is 100% of Bar width. |
double |
getMaxYValue()
Returns the Maximum Value of the Series Y Values List.
|
double |
getMinYValue()
Returns the Minimum Value of the Series Y Values List.
|
void |
prepareForGallery(boolean isEnabled) |
protected java.lang.Object |
readResolve() |
void |
setColor(Color c)
Default color for all points.
Default value: Color.Empty |
void |
setErrorStyle(ErrorStyle value)
Defines the Error Series Style according to EErrorSeriesStyle.
Default value: ErrorStyle.TopBottom |
void |
setErrorWidth(int value)
Determines the horizontal size of the Error "T".
Default value: 100 |
void |
setErrorWidthUnits(ErrorWidthUnit value)
Sets ErrorWidth in pixels or percentage of Bar width.
Default value: ErrorWidthUnit.Percent |
calcBarBounds, calcXPos, calcYPos, drawMark, drawMarksSeries, drawSeriesForward, drawTickLine, drawValue, getBarWidthPercent, getDescription, getMaxXValue, getMinXValue, getOriginPos, internalCalcMarkLength, internalClicked, moreSameZOrder, setBarWidthPercentapplyBarOffset, barMargin, barRectangle, barRectangle, barRectangle, calcFirstLastVisibleIndex, calcFirstLastVisibleIndex, calcMarkLength, calcZOrder, clicked, createSubGallery, doBarGradient, doBeforeDrawChart, doGetBarStyle, doGradient3D, drawTickLines, drawValuesForward, getAutoMarkPosition, getBarBounds, getBarBoundsMidX, getBarRound, getBarSizePercent, getBarStyle, getBrush, getConePercent, getCustomBarWidth, getDark3D, getDepthPercent, getGradient, getGradientRelative, getMarksLocation, getMarksOnBar, getMultiBar, getOffsetPercent, getOrigin, getPen, getRoundSize, getSideMargins, getStackGroup, getTickLines, getUseOrigin, getYOrigin, internalApplyBarMargin, internalGetOriginPos, isPointInChartRect, lastVisibleMark, maxMandatoryValue, minMandatoryValue, numSampleValues, pointOrigin, removeBarStyleResolver, setAutoMarkPosition, setBarRound, setBarSizePercent, setBarStyle, setBarStyleResolver, setChart, setConePercent, setCustomBarWidth, setDark3D, setDepthPercent, setGradientRelative, setMarksLocation, setMarksOnBar, setMultiBar, setOffsetPercent, setOrigin, setPenBrushBar, setRoundSize, setSideMargins, setStackGroup, setSubGallery, setUseOrigin, setYOrigin, setZPositions, shouldSerializeYOrigin, sortDrawSeries, subGalleryStackadd, add, 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, addSeriesMouseListener, addSeriesPaintListener, addValues, assignDispose, assignValues, associatedToAxis, beginUpdate, 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, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, draw, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawSeries, 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, isValidSeriesSource, isValidSourceOf, lastDisplayed, legendItemColor, legendToValueIndex, maxMarkWidth, mouseEvent, newFromType, onDisposing, prepareLegendCanvas, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, 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, sortByLabels, sortByLabels, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValuegetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, invalidateprotected ErrorStyle iErrorStyle
protected boolean bDrawBar
public CustomError()
public CustomError(IBaseChart c)
public void assign(Series source)
Seriesprotected java.lang.Object readResolve()
readResolve in class Seriespublic ValueList getErrorValues()
public ChartPen getErrorPen()
public ErrorStyle getErrorStyle()
public void setErrorStyle(ErrorStyle value)
value - ErrorStylepublic ErrorWidthUnit getErrorWidthUnits()
public void setErrorWidthUnits(ErrorWidthUnit value)
value - ErrorWidthUnitpublic int getErrorWidth()
public void setErrorWidth(int value)
value - intprotected void addSampleValues(int numValues)
addSampleValues in class Seriespublic void calcHorizMargins(Margins margins)
SeriescalcHorizMargins in class Barmargins - Marginspublic void calcVerticalMargins(Margins margins)
SeriescalcVerticalMargins in class Barmargins - Marginsprotected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle r)
drawLegendShape in class CustomBarpublic void prepareForGallery(boolean isEnabled)
prepareForGallery in class CustomBarpublic void setColor(Color c)
SeriessetColor in class Seriesc - ColorSeries.getColorEach()public int add(double x,
double y,
double errorValue,
java.lang.String text,
Color color)
x - doubley - doubleerrorValue - doubletext - Stringcolor - Colorpublic int add(double x,
double y,
double errorValue,
java.lang.String text)
x - doubley - doubleerrorValue - doubletext - Stringpublic int add(double x,
double y,
double errorValue)
x - doubley - doubleerrorValue - doublepublic int add(double x,
double y,
double errorValue,
Color color)
x - doubley - doubleerrorValue - doublecolor - Colorpublic int addValue(double y,
double errorValue)
y - doubleerrorValue - doublepublic void drawBar(int barIndex,
int startPos,
int endPos)
public double getMaxYValue()
getMaxYValue in class Barpublic double getMinYValue()
getMinYValue in class Bar