public class nUIPointGenerator
extends java.lang.Object
Constructor and Description |
---|
nUIPointGenerator() |
Modifier and Type | Method and Description |
---|---|
static javax.microedition.lcdui.Image |
generatePointImage(int color_index,
nUIChartImage chart,
int width,
int height)
Uses the information in your chart to render out an appropriate colour marker.
If a line chart (with data markers set) or a scatter graph is used, then the appropriate data marker will be used. |
public static javax.microedition.lcdui.Image generatePointImage(int color_index, nUIChartImage chart, int width, int height) throws java.lang.IllegalArgumentException
color_index
- the index of the data color to draw, as per nUIChartImage.getDataColor()
chart
- the chart to use to get cues for colouring, line thicknesses, etc.width
- the width of the Image to create.height
- the height of the Image to create.java.lang.IllegalArgumentException
- if the index is too high or too low, or if the Image's width and height are not > 0.