public class Bar3D extends Bar
Title: Bar3D class
Description: Bar3D series.
Example:
series1 = new Bar3D(myChart.getChart()); series1.add( 0, 250, 200, "A", Color.RED ); series1.add( 1, 10, 200, "B", Color.GREEN ); series1.add( 2, 90, 100, "C", Color.YELLOW ); series1.add( 3, 30, 50, "D", Color.BLUE ); series1.add( 4, 70, 150, "E", Color.WHITE ); series1.add( 5, 120, 150, "F", Color.SILVER ); series1.setColorEach(true); series1.getMarks().setArrowLength(20); series1.getMarks().setVisible(true); series1.setBarStyle(BarStyle.RECTGRADIENT); series1.setBarWidthPercent(90); series1.getGradient().setDirection(GradientDirection.HORIZONTAL); series1.getGradient().setStartColor(Color.YELLOW);
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
CustomBar.BarRounding, CustomBar.BarStyleResolver, CustomBar.MarksLocation
Series.MarkTextResolver
barSizePercent, bDark3D, bUseOrigin, conePercent, customBarSize, dOrigin, iBarBounds, iBarSize, iMultiBar, iNumBars, iOrderPos, iPreviousCount, marksOnBar, normalBarColor, pPen
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 |
---|
Bar3D() |
Bar3D(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
int |
add(double x,
double y,
double offset)
Adds a bar with an X and Y value and Y start point.
|
int |
add(double x,
double y,
double offset,
Color color)
Adds a bar with an X and Y value, Y start point and color.
|
int |
add(double x,
double y,
double offset,
java.lang.String text)
Adds a bar with an X and Y value with offset and label.
|
int |
add(double x,
double y,
double offset,
java.lang.String text,
Color color)
Adds a bar with an X and Y value, Y start point, label and color.
|
protected void |
addSampleValues(int numValues) |
java.lang.String |
getDescription()
Gets descriptive text.
|
double |
getMaxYValue()
Returns the Maximum Value of the Series Y Values List.
|
double |
getMinYValue()
Returns the Minimum Value of the Series Y Values List.
|
ValueList |
getOffsetValues()
Specifies a different origin value for each bar point.
This can be used with standard Bar series components to make a "Stacked-3D" chart type. |
double |
getOriginValue(int valueIndex) |
double |
pointOrigin(int valueIndex,
boolean sumAll)
Returns the corresponding screen pixels coordinate of the leftmost
horizontal bar edge.
The UseOrigin property must be true (the default) to use the Origin method. |
void |
setOffsetValues(ValueList value)
Specifies a different origin value for each bar point.
This can be used with standard Bar series components to make a "Stacked-3D" chart type. |
protected boolean |
subGalleryStack() |
calcBarBounds, calcHorizMargins, calcVerticalMargins, calcXPos, calcYPos, drawBar, drawMark, drawMarksSeries, drawSeriesForward, drawTickLine, drawValue, getBarWidthPercent, getMaxXValue, getMinXValue, getOriginPos, internalCalcMarkLength, internalClicked, moreSameZOrder, setBarWidthPercent
applyBarOffset, assign, barMargin, barRectangle, barRectangle, barRectangle, calcFirstLastVisibleIndex, calcFirstLastVisibleIndex, calcMarkLength, calcZOrder, clicked, createSubGallery, doBarGradient, doBeforeDrawChart, doGetBarStyle, doGradient3D, drawLegendShape, 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, prepareForGallery, 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
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, 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, 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, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, 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, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, sortByLabels, sortByLabels, 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 Bar3D()
public Bar3D(IBaseChart c)
protected void addSampleValues(int numValues)
addSampleValues
in class Series
public int add(double x, double y, double offset, Color color)
x
- doubley
- doubleoffset
- doublecolor
- Colorpublic int add(double x, double y, double offset)
x
- doubley
- doubleoffset
- doublepublic int add(double x, double y, double offset, java.lang.String text)
x
- doubley
- doubleoffset
- doubletext
- Stringpublic int add(double x, double y, double offset, java.lang.String text, Color color)
x
- doubley
- doubleoffset
- doubletext
- Stringcolor
- Colorpublic double getOriginValue(int valueIndex)
getOriginValue
in interface ISeries
getOriginValue
in class Series
public double getMaxYValue()
getMaxYValue
in class Bar
public double getMinYValue()
getMinYValue
in class Bar
public double pointOrigin(int valueIndex, boolean sumAll)
pointOrigin
in class CustomBar
valueIndex
- intsumAll
- booleanpublic ValueList getOffsetValues()
public void setOffsetValues(ValueList value)
value
- ValueListpublic java.lang.String getDescription()
getDescription
in class Bar
protected boolean subGalleryStack()
subGalleryStack
in class CustomBar