public class BarSeries extends AxesSeries
BarChart
.Constructor and Description |
---|
BarSeries()
Initializes a new instance of the
BarSeries class. |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateLabelSpace(android.graphics.RectF cartRect,
android.graphics.RectF _plotAreaRect,
android.graphics.Paint _textPaint) |
protected void |
calculateLayoutRects(android.graphics.RectF cartRect,
android.graphics.RectF _plotAreaRect,
android.graphics.Paint _textPaint) |
protected void |
correctCartCoords(int countOfBarSeries,
float intervalLength) |
protected void |
createAndCalculateSeriesElements(android.graphics.RectF cartRect,
java.util.ArrayList<android.graphics.RectF> cartRects,
java.util.ArrayList<android.graphics.RectF> lineCartRects,
float intervalLength) |
protected void |
DrawLabels(android.graphics.Paint _textPaint,
android.graphics.Canvas _imgCanvas) |
protected void |
DrawSeries(android.graphics.Paint _graphPaint,
android.graphics.Canvas _imgCanvas) |
BarType |
getBarType()
Gets the type of the bars in this
BarSeries . |
float |
getBarWidth()
Gets the width of the bar as a percent of the space allocated to it.
|
java.util.ArrayList<java.lang.String> |
getInnerLabels()
Gets the inner labels for the bars in this
BarSeries . |
float |
getSeriesWidth()
Gets the width of the
BarSeries as a percent of the space allocated to it. |
float |
getTopLabelOffset()
Gets the offset of the top labels to the edge of the
Bar . |
java.util.ArrayList<java.lang.String> |
getTopLabels()
Gets the top labels for the bars in this
BarSeries . |
protected void |
layout(android.graphics.RectF cartRect,
android.graphics.RectF _plotAreaRect,
android.graphics.Paint _textPaint) |
void |
setBarType(BarType barType)
Sets the type of the bars in this
BarSeries . |
void |
setBarWidth(float barWidth)
Sets the width of the bar as a percent of the space allocated to it.
|
void |
setInnerLabels(java.util.ArrayList<java.lang.String> innerLabels)
Sets the inner labels for the bars in this
BarSeries . |
void |
setSeriesWidth(float seriesWidth)
Sets the width of the
BarSeries as a percent of the space allocated to it. |
void |
setTopLabelOffset(float topLabelOffset)
Sets the offset of the top labels to the edge of the
Bar . |
void |
setTopLabels(java.util.ArrayList<java.lang.String> topLabels)
Sets the top labels for the bars in this
BarSeries . |
getXData, getYData, measure, NormalizePoint, setXData, setYData
addSeriesListener, getFillColors, getIndex, getStrokeColors, getStrokeEffect, getStrokeWidth, removeSeriesListener, setFillColors, setStrokeColors, setStrokeEffect, setStrokeWidth, UpdateLayout
public BarSeries()
BarSeries
class.protected void correctCartCoords(int countOfBarSeries, float intervalLength)
correctCartCoords
in class AxesSeries
protected void createAndCalculateSeriesElements(android.graphics.RectF cartRect, java.util.ArrayList<android.graphics.RectF> cartRects, java.util.ArrayList<android.graphics.RectF> lineCartRects, float intervalLength)
createAndCalculateSeriesElements
in class AxesSeries
protected void layout(android.graphics.RectF cartRect, android.graphics.RectF _plotAreaRect, android.graphics.Paint _textPaint)
layout
in class AxesSeries
protected void calculateLayoutRects(android.graphics.RectF cartRect, android.graphics.RectF _plotAreaRect, android.graphics.Paint _textPaint)
calculateLayoutRects
in class AxesSeries
protected void calculateLabelSpace(android.graphics.RectF cartRect, android.graphics.RectF _plotAreaRect, android.graphics.Paint _textPaint)
calculateLabelSpace
in class AxesSeries
protected void DrawSeries(android.graphics.Paint _graphPaint, android.graphics.Canvas _imgCanvas)
DrawSeries
in class AxesSeries
protected void DrawLabels(android.graphics.Paint _textPaint, android.graphics.Canvas _imgCanvas)
DrawLabels
in class AxesSeries
public void setInnerLabels(java.util.ArrayList<java.lang.String> innerLabels)
BarSeries
.innerLabels
- ArrayList with strings that represent the
inner labels for the bars.public java.util.ArrayList<java.lang.String> getInnerLabels()
BarSeries
.public void setTopLabels(java.util.ArrayList<java.lang.String> topLabels)
BarSeries
.topLabels
- ArrayList with strings that represent the
top labels for the bars.public java.util.ArrayList<java.lang.String> getTopLabels()
BarSeries
.public void setBarWidth(float barWidth)
barWidth
- The width of the bar as a percent of the space allocated to it.
Acceptable values range from 0 to 100.public float getBarWidth()
public void setSeriesWidth(float seriesWidth)
BarSeries
as a percent of the space allocated to it.seriesWidth
- The width of the BarSeries
as a percent of the space allocated to it.
Acceptable values range from 0 to 100.public float getSeriesWidth()
BarSeries
as a percent of the space allocated to it.BarSeries
as a percent of the space allocated to it.
Acceptable values range from 0 to 100.public void setTopLabelOffset(float topLabelOffset)
Bar
.topLabelOffset
- The offset of the top labels to the edge of the Bar
,
in pixels.public float getTopLabelOffset()
Bar
.Bar
,
in pixels.public void setBarType(BarType barType)
BarSeries
.barType
- One of the BarType
enumeration values.