Class XYSeriesRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA descriptor for the line fill behavior. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets if the line chart should be filled outside its line.intReturns the annotations color.intReturns the annotations text align.floatReturns the annotations text size.floatReturns the chart values spacing from the data point.intReturns the chart values text align.floatReturns the chart values text size.intReturns the chart values minimum distance.Returns the type of the outside fill of the line.floatReturns the chart line width.floatReturns the point stroke width in pixels.Returns the point style.booleanReturns if the chart point values should be displayed as text.booleanDeprecated.booleanReturns if the chart points should be filled.voidsetAnnotationsColor(int color) Sets the annotations color.voidsetAnnotationsTextAlign(int align) Sets the annotations text align.voidsetAnnotationsTextFont(Font font) Sets the annotations text font size using a Font object instead of a point size.voidsetAnnotationsTextSize(float textSize) Sets the annotations text size.voidsetChartValuesSpacing(float spacing) Sets the chart values spacing from the data point.voidsetChartValuesTextAlign(int align) Sets the chart values text align.voidsetChartValuesTextFont(Font font) Sets the chart values title text font size using a Font object instead of a point size.voidsetChartValuesTextSize(float textSize) Sets the chart values text size.voidsetDisplayChartValues(boolean display) Sets if the chart point values should be displayed as text.voidsetDisplayChartValuesDistance(int distance) Sets chart values minimum distance.voidsetFillBelowLine(boolean fill) Deprecated.voidsetFillBelowLineColor(int color) Deprecated.voidsetFillPoints(boolean fill) Sets if the chart points should be filled.voidsetLineWidth(float lineWidth) Sets the chart line width.voidsetPointStrokeWidth(float strokeWidth) Sets the point stroke width in pixels.voidsetPointStyle(PointStyle style) Sets the point style.Methods inherited from class SimpleSeriesRenderer
getChartValuesFormat, getColor, getGradientStartColor, getGradientStartValue, getGradientStopColor, getGradientStopValue, getStroke, isDisplayBoundingPoints, isGradientEnabled, isHighlighted, isShowLegendItem, setChartValuesFormat, setColor, setDisplayBoundingPoints, setGradientEnabled, setGradientStart, setGradientStop, setHighlighted, setShowLegendItem, setStrokeModifier and TypeMethodDescriptionReturns the number format for displaying chart values.intgetColor()Returns the series color.intReturns the gradient start color.doubleReturns the gradient start value.intReturns the gradient stop color.doubleReturns the gradient stop value.Returns the stroke style.booleanReturns if the bounding points of the first and last visible ones should be displayed.booleanReturns the gradient is enabled value.booleanReturns if the item is displayed highlighted.booleanReturns if the legend item for this renderer should be visible.voidsetChartValuesFormat(NumberFormat format) Sets the number format for displaying chart values.voidsetColor(int color) Sets the series color.voidsetDisplayBoundingPoints(boolean display) Sets if the bounding points of the first and last visible ones should be displayed.voidsetGradientEnabled(boolean enabled) Sets the gradient enabled value.voidsetGradientStart(double start, int color) Sets the gradient start value and color.voidsetGradientStop(double start, int color) Sets the gradient stop value and color.voidsetHighlighted(boolean highlighted) Sets if the item for this renderer should be highlighted.voidsetShowLegendItem(boolean showLegend) Sets if the legend item for this renderer should be visible.voidsetStroke(BasicStroke stroke) Sets the stroke style.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
XYSeriesRenderer
public XYSeriesRenderer()
-
-
Method Details
-
isFillBelowLine
Deprecated.Returns if the chart should be filled below the line.
Returns
the fill below line status
Deprecated
Use
#getFillOutsideLine()instead. -
setFillBelowLine
Deprecated.Sets if the line chart should be filled below its line. Filling below the line transforms a line chart into an area chart.
Parameters
fill: the fill below line flag value
Deprecated
Use
#addFillOutsideLine(FillOutsideLine)instead. -
getFillOutsideLine
Returns the type of the outside fill of the line.
Returns
the type of the outside fill of the line.
-
addFillOutsideLine
Sets if the line chart should be filled outside its line. Filling outside with FillOutsideLine.INTEGRAL the line transforms a line chart into an area chart.
Parameters
fill: the type of the filling
-
isFillPoints
public boolean isFillPoints()Returns if the chart points should be filled.
Returns
the points fill status
-
setFillPoints
public void setFillPoints(boolean fill) Sets if the chart points should be filled.
Parameters
fill: the points fill flag value
-
setFillBelowLineColor
Deprecated.Sets the fill below the line color.
Parameters
color: the fill below line color
Deprecated
Use FillOutsideLine.setColor instead
-
getPointStyle
Returns the point style.
Returns
the point style
-
setPointStyle
Sets the point style.
Parameters
style: the point style
-
getPointStrokeWidth
public float getPointStrokeWidth()Returns the point stroke width in pixels.
Returns
the point stroke width in pixels
-
setPointStrokeWidth
public void setPointStrokeWidth(float strokeWidth) Sets the point stroke width in pixels.
Parameters
strokeWidth: the point stroke width in pixels
-
getLineWidth
public float getLineWidth()Returns the chart line width.
Returns
the line width
-
setLineWidth
public void setLineWidth(float lineWidth) Sets the chart line width.
Parameters
lineWidth: the line width
-
isDisplayChartValues
public boolean isDisplayChartValues()Returns if the chart point values should be displayed as text.
Returns
if the chart point values should be displayed as text
-
setDisplayChartValues
public void setDisplayChartValues(boolean display) Sets if the chart point values should be displayed as text.
Parameters
display: if the chart point values should be displayed as text
-
getDisplayChartValuesDistance
public int getDisplayChartValuesDistance()Returns the chart values minimum distance.
Returns
the chart values minimum distance
-
setDisplayChartValuesDistance
public void setDisplayChartValuesDistance(int distance) Sets chart values minimum distance.
Parameters
distance: the chart values minimum distance
-
getChartValuesTextSize
public float getChartValuesTextSize()Returns the chart values text size.
Returns
the chart values text size
-
setChartValuesTextSize
public void setChartValuesTextSize(float textSize) Sets the chart values text size. Consider using
#setChartValuesTextFont(com.codename1.ui.Font)instead to allow the font size to to be adjusted appropriately for the display resolution.Parameters
textSize: the chart values text size
-
setChartValuesTextFont
Sets the chart values title text font size using a Font object instead of a point size. This method is the preferred way to set font size because it allows you to more easily have fonts appear in an appropriate size for the target device.
Alternatively check out
#setChartValuesTextSize(float)to set the text size in pixels.Parameters
font
-
getChartValuesTextAlign
public int getChartValuesTextAlign()Returns the chart values text align.
Returns
the chart values text align
-
setChartValuesTextAlign
public void setChartValuesTextAlign(int align) Sets the chart values text align.
Parameters
align: the chart values text align
-
getChartValuesSpacing
public float getChartValuesSpacing()Returns the chart values spacing from the data point.
Returns
the chart values spacing
-
setChartValuesSpacing
public void setChartValuesSpacing(float spacing) Sets the chart values spacing from the data point.
Parameters
spacing: @param spacing the chart values spacing (in pixels) from the chart data point
-
getAnnotationsTextSize
public float getAnnotationsTextSize()Returns the annotations text size.
Returns
the annotations text size
-
setAnnotationsTextSize
public void setAnnotationsTextSize(float textSize) Sets the annotations text size. Consider using
#setAnnotationsTextFont(com.codename1.ui.Font)instead to allow the font size to to be adjusted appropriately for the display resolution.Parameters
textSize: the annotations text size
-
setAnnotationsTextFont
Sets the annotations text font size using a Font object instead of a point size. This method is the preferred way to set font size because it allows you to more easily have fonts appear in an appropriate size for the target device.
Alternatively check out
#setAnnotationsTextSize(float)to set the text size in pixels.Parameters
font
-
getAnnotationsTextAlign
public int getAnnotationsTextAlign()Returns the annotations text align.
Returns
the annotations text align
-
setAnnotationsTextAlign
public void setAnnotationsTextAlign(int align) Sets the annotations text align.
Parameters
align: the chart values text align
-
getAnnotationsColor
public int getAnnotationsColor()Returns the annotations color.
Returns
the annotations color
-
setAnnotationsColor
public void setAnnotationsColor(int color) Sets the annotations color.
Parameters
color: the annotations color
-