public class BarSeries extends CategoricalSeries
Modifier and Type | Field and Description |
---|---|
static int |
FILL_COLOR_PROPERTY_KEY |
static int |
STROKE_COLOR_PROPERTY_KEY |
static int |
STROKE_WIDTH_PROPERTY_KEY |
SERIES_Z_INDEX
Constructor and Description |
---|
BarSeries()
Creates a new instance of the
BarSeries class. |
BarSeries(DataPointBinding valueBinding,
DataPointBinding categoryBinding,
Iterable data) |
Modifier and Type | Method and Description |
---|---|
DataPointInfo |
findClosestPoint(Point location)
Finds the closest
DataPoint to the given location. |
boolean |
getAreBarsRounded()
Gets a value that determines if the bars will be drawn with rounded corners.
|
int |
getFillColor()
Gets the fill color of the bars.
|
Paint |
getFillPaint() |
Shader |
getFillShader()
Gets the
Shader that is used when the fill of the bars is drawn. |
int |
getLegendFillColor()
Returns the color used to depict this series in the Chart legend.
|
int |
getLegendStrokeColor()
Returns the stroke color used to depict this series in the Chart legend.
|
double |
getMaxBarWidth()
Gets the maximum allowed size for a single bar within the series in pixels.
|
double |
getMinBarWidth()
Gets the minimum allowed size for a single bar within the series in pixels.
|
float |
getRoundBarsRadius()
Gets a value that determines how much to round the corners of the bars.
|
int |
getStrokeColor()
Gets the stroke color of the bars.
|
PathEffect |
getStrokeEffect()
Gets the
PathEffect that is used when stroke of the bars is drawn. |
Paint |
getStrokePaint() |
Shader |
getStrokeShader()
Gets the
Shader that is used when the stroke of the bars is drawn. |
float |
getStrokeWidth()
Gets the stroke width of the bars.
|
void |
setAreBarsRounded(boolean value)
Sets a value that determines if the bars will be drawn with rounded corners.
|
void |
setCanApplyPalette(boolean value)
Sets a value that determines if the chart palette should be applied to this presenter.
|
void |
setData(Iterable data)
Sets the items source of the series.
|
void |
setFillColor(int fillColor)
Gets the fill color of the bars.
|
void |
setFillShader(Shader value)
Sets the
Shader that is used when the fill of the bars is drawn. |
void |
setMaxBarWidth(double value)
Sets the maximum allowed size for a single bar within the series in pixels.
|
void |
setMinBarWidth(double value)
Sets the minimum allowed size for a single bar within the series in pixels.
|
void |
setRoundBarsRadius(float value)
Sets a value that determines how much to round the corners of the bars.
|
void |
setStrokeColor(int strokeColor)
Sets the stroke color of the bars.
|
void |
setStrokeEffect(PathEffect value)
Sets the
PathEffect that is used when stroke of the bars is drawn. |
void |
setStrokeShader(Shader value)
Sets the
Shader that is used when the fill of the bars is drawn. |
void |
setStrokeWidth(float strokeWidth)
Sets the stroke width of the bars.
|
getValueBinding, setValueBinding, setValueBinding
getCategoryBinding, getCombineMode, getStackGroupKey, setCategoryBinding, setCategoryBinding, setCombineMode, setStackGroupKey
chartAxisChanged, getHorizontalAxis, getVerticalAxis, setHorizontalAxis, setVerticalAxis
getDataPointRenderer, getLegendTitle, getSelectedChangeListener, onPointAdded, onPointRemoved, setDataPointRenderer, setIsSelected, setLegendTitle, setSelectedChangeListener
addPropertyChangedListener, dataSource, getClipToPlotArea, getData, getDistanceToPoint, getIsSelected, getIsVisibleInLegend, getLabelFillColor, getLabelFont, getLabelFontStyle, getLabelFormat, getLabelMargin, getLabelRenderer, getLabelSize, getLabelStrokeColor, getLabelTextColor, getLabelValueToStringConverter, getPlotAreaSize, getSelectionMode, getShowLabels, hitTest, hitTestDataPoint, model, onBoundItemPropertyChanged, onDataBindingComplete, onDataPointIsSelectedChanged, postRender, removePropertyChangedListener, render, setClipToPlotArea, setIsVisibleInLegend, setLabelFillColor, setLabelFont, setLabelFontStyle, setLabelFormat, setLabelMargin, setLabelPadding, setLabelRenderer, setLabelSize, setLabelStrokeColor, setLabelTextColor, setLabelValueToStringConverter, setSelectionMode, setShowLabels
attach, detach, getCanApplyPalette, getChart, getCollectionIndex, getPalette, getZIndex, invalidatePalette, onPaletteInvalidated, onPaletteUpdated, requestLayout, requestRender, setZIndex, updatePalette
getPaletteFamily, getPaletteFamilyCore, isLoaded, isPaletteApplied, isVisible, measureContent, paletteFamily, refreshNode, setPaletteFamily, setVisible, setVisible
getValue, resetPropertyValue, setValue, setValue
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIsSelected
getCollectionIndex, invalidatePalette, measureContent, refreshNode
public static final int FILL_COLOR_PROPERTY_KEY
public static final int STROKE_COLOR_PROPERTY_KEY
public static final int STROKE_WIDTH_PROPERTY_KEY
public BarSeries()
BarSeries
class.public BarSeries(DataPointBinding valueBinding, DataPointBinding categoryBinding, Iterable data)
public void setMaxBarWidth(double value)
value
- the maximum allowed size.public double getMaxBarWidth()
public void setMinBarWidth(double value)
value
- the minimum allowed size.public double getMinBarWidth()
public int getLegendFillColor()
PointTemplateSeries
getLegendFillColor
in class PointTemplateSeries
public int getLegendStrokeColor()
PointTemplateSeries
getLegendStrokeColor
in class PointTemplateSeries
public Shader getFillShader()
Shader
that is used when the fill of the bars is drawn.Shader
that is used when the fill of the bars is drawn.public void setFillShader(Shader value)
Shader
that is used when the fill of the bars is drawn.value
- The Shader
that is used when the fill of the bars is drawn.public Shader getStrokeShader()
Shader
that is used when the stroke of the bars is drawn.Shader
that is used when the stroke of the bars is drawn.public void setStrokeShader(Shader value)
Shader
that is used when the fill of the bars is drawn.value
- The Shader
that is used when the fill of the bars is drawn.public PathEffect getStrokeEffect()
PathEffect
that is used when stroke of the bars is drawn.PathEffect
that is used when stroke of the bars is drawn.public void setStrokeEffect(PathEffect value)
PathEffect
that is used when stroke of the bars is drawn.value
- The PathEffect
that is used when stroke of the bars is drawn.public boolean getAreBarsRounded()
true
if the bars will be with rounded corners and false
otherwise.public void setAreBarsRounded(boolean value)
value
- true
if the bars will be with rounded corners and false
otherwise.public float getRoundBarsRadius()
setAreBarsRounded(boolean)
public void setRoundBarsRadius(float value)
value
- A value that determines how much to round the corners of the bars.setAreBarsRounded(boolean)
public int getFillColor()
public void setFillColor(int fillColor)
fillColor
- The fill color of the bars.public int getStrokeColor()
public void setStrokeColor(int strokeColor)
strokeColor
- The stroke color of the bars.public float getStrokeWidth()
public void setStrokeWidth(float strokeWidth)
strokeWidth
- The stroke width of the bars.public DataPointInfo findClosestPoint(Point location)
ChartSeries
DataPoint
to the given location.findClosestPoint
in class ChartSeries
location
- The location.DataPoint
to the given location.public Paint getFillPaint()
public Paint getStrokePaint()
public void setCanApplyPalette(boolean value)
PresenterBase
setCanApplyPalette
in class PresenterBase
public void setData(Iterable data)
ChartSeries
setData
in class ChartSeries
data
- The new items source of the series.