public class XYSeriesRenderer extends SimpleSeriesRenderer
Modifier and Type | Class and Description |
---|---|
static class |
XYSeriesRenderer.FillOutsideLine
A descriptor for the line fill behavior.
|
Constructor and Description |
---|
XYSeriesRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
addFillOutsideLine(XYSeriesRenderer.FillOutsideLine fill)
Sets if the line chart should be filled outside its line.
|
int |
getAnnotationsColor()
Returns the annotations color.
|
int |
getAnnotationsTextAlign()
Returns the annotations text align.
|
float |
getAnnotationsTextSize()
Returns the annotations text size.
|
float |
getChartValuesSpacing()
Returns the chart values spacing from the data point.
|
int |
getChartValuesTextAlign()
Returns the chart values text align.
|
float |
getChartValuesTextSize()
Returns the chart values text size.
|
int |
getDisplayChartValuesDistance()
Returns the chart values minimum distance.
|
XYSeriesRenderer.FillOutsideLine[] |
getFillOutsideLine()
Returns the type of the outside fill of the line.
|
float |
getLineWidth()
Returns the chart line width.
|
float |
getPointStrokeWidth()
Returns the point stroke width in pixels.
|
PointStyle |
getPointStyle()
Returns the point style.
|
boolean |
isDisplayChartValues()
Returns if the chart point values should be displayed as text.
|
boolean |
isFillBelowLine()
Deprecated.
Use
getFillOutsideLine() instead. |
boolean |
isFillPoints()
Returns if the chart points should be filled.
|
void |
setAnnotationsColor(int color)
Sets the annotations color.
|
void |
setAnnotationsTextAlign(int align)
Sets the annotations text align.
|
void |
setAnnotationsTextFont(Font font)
Sets the annotations text font size using a Font object instead of a point size.
|
void |
setAnnotationsTextSize(float textSize)
Sets the annotations text size.
|
void |
setChartValuesSpacing(float spacing)
Sets the chart values spacing from the data point.
|
void |
setChartValuesTextAlign(int align)
Sets the chart values text align.
|
void |
setChartValuesTextFont(Font font)
Sets the chart values title text font size using a Font object instead of a point size.
|
void |
setChartValuesTextSize(float textSize)
Sets the chart values text size.
|
void |
setDisplayChartValues(boolean display)
Sets if the chart point values should be displayed as text.
|
void |
setDisplayChartValuesDistance(int distance)
Sets chart values minimum distance.
|
void |
setFillBelowLine(boolean fill)
Deprecated.
Use
addFillOutsideLine(FillOutsideLine) instead. |
void |
setFillBelowLineColor(int color)
Deprecated.
Use FillOutsideLine.setColor instead
|
void |
setFillPoints(boolean fill)
Sets if the chart points should be filled.
|
void |
setLineWidth(float lineWidth)
Sets the chart line width.
|
void |
setPointStrokeWidth(float strokeWidth)
Sets the point stroke width in pixels.
|
void |
setPointStyle(PointStyle style)
Sets the point style.
|
getChartValuesFormat, getColor, getGradientStartColor, getGradientStartValue, getGradientStopColor, getGradientStopValue, getStroke, isDisplayBoundingPoints, isGradientEnabled, isHighlighted, isShowLegendItem, setChartValuesFormat, setColor, setDisplayBoundingPoints, setGradientEnabled, setGradientStart, setGradientStop, setHighlighted, setShowLegendItem, setStroke
@Deprecated public boolean isFillBelowLine()
getFillOutsideLine()
instead.@Deprecated public void setFillBelowLine(boolean fill)
addFillOutsideLine(FillOutsideLine)
instead.fill
- the fill below line flag valuepublic XYSeriesRenderer.FillOutsideLine[] getFillOutsideLine()
public void addFillOutsideLine(XYSeriesRenderer.FillOutsideLine fill)
fill
- the type of the fillingpublic boolean isFillPoints()
public void setFillPoints(boolean fill)
fill
- the points fill flag value@Deprecated public void setFillBelowLineColor(int color)
color
- the fill below line colorpublic PointStyle getPointStyle()
public void setPointStyle(PointStyle style)
style
- the point stylepublic float getPointStrokeWidth()
public void setPointStrokeWidth(float strokeWidth)
strokeWidth
- the point stroke width in pixelspublic float getLineWidth()
public void setLineWidth(float lineWidth)
lineWidth
- the line widthpublic boolean isDisplayChartValues()
public void setDisplayChartValues(boolean display)
display
- if the chart point values should be displayed as textpublic int getDisplayChartValuesDistance()
public void setDisplayChartValuesDistance(int distance)
distance
- the chart values minimum distancepublic float getChartValuesTextSize()
public void setChartValuesTextSize(float textSize)
setChartValuesTextFont(com.codename1.ui.Font)
instead to allow the font size to to be adjusted appropriately for the display
resolution.textSize
- the chart values text sizepublic void setChartValuesTextFont(Font font)
setChartValuesTextSize(float)
to set the text
size in pixels.font
- public int getChartValuesTextAlign()
public void setChartValuesTextAlign(int align)
align
- the chart values text alignpublic float getChartValuesSpacing()
public void setChartValuesSpacing(float spacing)
spacing
- the chart values spacing (in pixels) from the chart data
pointpublic float getAnnotationsTextSize()
public void setAnnotationsTextSize(float textSize)
setAnnotationsTextFont(com.codename1.ui.Font)
instead to allow the font size to to be adjusted appropriately for the display
resolution.textSize
- the annotations text sizepublic void setAnnotationsTextFont(Font font)
setAnnotationsTextSize(float)
to set the text
size in pixels.font
- public int getAnnotationsTextAlign()
public void setAnnotationsTextAlign(int align)
align
- the chart values text alignpublic int getAnnotationsColor()
public void setAnnotationsColor(int color)
color
- the annotations color