public class Bar extends CustomBar
Title: Bar class
Description: The Bar Series component outputs all points as vertical bars.
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 |
---|
Bar() |
Bar(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
calcBarBounds(int valueIndex) |
void |
calcHorizMargins(Margins margins)
Returns the number of pixels for horizontal margins
|
void |
calcVerticalMargins(Margins margins)
Returns the number of pixels for vertical margins
|
int |
calcXPos(int valueIndex)
The Screen X pixel coordinate of the ValueIndex Series
value.
The horizontal Bar position is the "real" X pos + the BarWidth by our BarSeries order. |
int |
calcYPos(int valueIndex)
The Screen Y pixel coordinate of the ValueIndex Series value.
|
void |
drawBar(int barIndex,
int startPos,
int endPos)
Internal use
|
protected void |
drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition p) |
boolean |
drawMarksSeries(Series s,
boolean activeRegion) |
boolean |
drawSeriesForward(int valueIndex) |
protected void |
drawTickLine(int tickPos,
BarStyle aStyle) |
void |
drawValue(int valueIndex)
Called internally.
|
int |
getBarWidthPercent()
Determines the percent of total Bar width used.
Setting BarWidthPercent = 100 makes joined Bars. You can control how many Bars appear at the same time by using Page.MaxPointsPerPage. Default value: 70 |
java.lang.String |
getDescription()
Gets descriptive text.
|
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.
|
int |
getOriginPos(int valueIndex)
The corresponding screen pixels coordinate of the leftmost
horizontal bar edge.
|
protected int |
internalCalcMarkLength(int valueIndex) |
protected boolean |
internalClicked(int valueIndex,
Point point) |
protected boolean |
moreSameZOrder()
Returns true if there are more series that share the same Z order.
For example Stacked Bars. |
void |
setBarWidthPercent(int value)
Sets the percent of total Bar width used.
Default value: 70 |
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, pointOrigin, 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, subGalleryStack
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, addSampleValues, 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, 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 Bar()
public Bar(IBaseChart c)
public java.lang.String getDescription()
getDescription
in class Series
public int getBarWidthPercent()
public void setBarWidthPercent(int value)
value
- intgetBarWidthPercent()
protected int internalCalcMarkLength(int valueIndex)
internalCalcMarkLength
in class CustomBar
protected boolean internalClicked(int valueIndex, Point point)
internalClicked
in class CustomBar
protected Rectangle calcBarBounds(int valueIndex)
calcBarBounds
in class CustomBar
public void calcHorizMargins(Margins margins)
Series
calcHorizMargins
in class Series
margins
- Marginspublic void calcVerticalMargins(Margins margins)
Series
calcVerticalMargins
in class Series
margins
- Marginspublic void drawValue(int valueIndex)
protected void drawTickLine(int tickPos, BarStyle aStyle)
drawTickLine
in class CustomBar
public void drawBar(int barIndex, int startPos, int endPos)
barIndex
- intstartPos
- intendPos
- intprotected boolean moreSameZOrder()
Series
moreSameZOrder
in class Series
public boolean drawSeriesForward(int valueIndex)
drawSeriesForward
in class Series
public int calcXPos(int valueIndex)
public int calcYPos(int valueIndex)
protected void drawMark(int valueIndex, java.lang.String s, SeriesMarksPosition p)
public boolean drawMarksSeries(Series s, boolean activeRegion)
drawMarksSeries
in class Series
public int getOriginPos(int valueIndex)
valueIndex
- intpublic 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