public class HorizBar extends CustomBar
Title: HorizBar class
Description: Horizontal Bar Series.
Example:
barSeries = new HorizBar(myChart.getChart()); barSeries.setBarStyle(BarStyle.RECTANGLE); barSeries.setMultiBar(MultiBars.NONE); barSeries.fillSampleValues(3);
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 |
---|
HorizBar() |
HorizBar(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
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 pixel Screen Horizontal coordinate of the ValueIndex Series value.
This coordinate is calculated using the Series associated Horizontal Axis. |
int |
calcYPos(int valueIndex)
The vertical Bar position is the "real" Y pos plus the Barwidth by our
BarSeries order.
This coordinate is calculated using the Series associated Vertical Axis. |
protected void |
drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition position) |
protected boolean |
drawSeriesForward(int valueIndex) |
protected void |
drawTickLine(int tickPos,
BarStyle aStyle) |
void |
drawValue(int valueIndex)
Called internally.
|
int |
getBarHeightPercent()
Defines the percent of bar Height, from 0 to 100.
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 Lists.
As some Series have more than one Y Values List, this Minimum Value is the "Minimum of Minimums" of all Series Y Values lists. |
protected int |
getOriginPos(int valueIndex) |
protected int |
internalCalcMarkLength(int valueIndex) |
protected boolean |
internalClicked(int valueIndex,
Point point) |
void |
setBarHeightPercent(int value)
Defines the percent of bar Height, from 0 to 100.
Default value: 70 |
applyBarOffset, assign, barMargin, barRectangle, barRectangle, barRectangle, calcBarBounds, 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, drawMarksSeries, 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, moreSameZOrder, 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 HorizBar()
public HorizBar(IBaseChart c)
public java.lang.String getDescription()
getDescription
in class Series
public int getBarHeightPercent()
public void setBarHeightPercent(int value)
value
- intprotected int internalCalcMarkLength(int valueIndex)
internalCalcMarkLength
in class CustomBar
protected boolean internalClicked(int valueIndex, Point point)
internalClicked
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 drawMark(int valueIndex, java.lang.String s, SeriesMarksPosition position)
public int calcXPos(int valueIndex)
public int calcYPos(int valueIndex)
protected void drawTickLine(int tickPos, BarStyle aStyle)
drawTickLine
in class CustomBar
protected boolean drawSeriesForward(int valueIndex)
drawSeriesForward
in class Series
protected int getOriginPos(int valueIndex)
public double getMaxXValue()
getMaxXValue
in class Series
public double getMinXValue()
getMinXValue
in class Series
public double getMinYValue()
getMinYValue
in class Series
public double getMaxYValue()
getMaxYValue
in class Series