public abstract class nUIDataSeriesChart extends nUIChartImage
DEFAULT_BORDER_THICKNESS, NUM_RENDER_STYLES, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, RENDER_STYLE_FLAT, RENDER_STYLE_GRADIENT
Y_IDENTIFIER_PREV_BOTTOM
COLOR_BACKGROUND_NORMAL, COLOR_BLACK, COLOR_FOREGROUND_DARK, COLOR_FOREGROUND_LIGHT, COLOR_FOREGROUND_NORMAL, COLOR_TRANSPARENT, COLOR_WHITE, DIMENSIONS_IDENTIFIER_PARENT_DIMENSIONS
event_listener, event_listener_exclusive, first_child, last_child, next_sibling, nuiid, parent, prev_sibling, unlink_children_on_removal_from_parent
Constructor and Description |
---|
nUIDataSeriesChart(int nuiid)
Chart constructor that creates an empty chart
|
nUIDataSeriesChart(int nuiid,
float[] data)
Chart constructor that takes a single dimension
float
[] array containing the data. |
Modifier and Type | Method and Description |
---|---|
nUIChartLabel[] |
getDataLabels()
Gets the array of data labels for the chart.
|
float |
getTickFrequency()
For a chart with data labels, get how often the default data labels should appear.
|
void |
renderDataLabels()
Render the labels for this graph.
|
void |
setDataLabels(nUIChartLabel[] data_labels)
Sets the data labels for the chart elements from an array of
nUIChartLabel items.
|
void |
setDataLabelStrings(java.lang.String[] label_strings)
Sets the labels for each of the data elements in the grid
using strings.
|
void |
setDefaults()
Sets all default values for this chart type.
|
void |
setTickFrequency(float tick_frequency)
For a chart with data labels, determine how often the data labels should appear.
|
clearChartBodyPadding, getAxisLabelTextColor, getBackgroundColor, getBestGuessScale, getBorderColor, getBorderThickness, getData, getDataColor, getDataColors, getDefaultNumColors, getHeight, getImage, getNumColors, getOutlineColor, getOutlineThickness, getTickLabelTextColor, getWidth, setAxisLabelTextColor, setBackgroundColor, setBestGuessScale, setBorderColor, setBorderThickness, setChartBodyPadding, setChartBodyPadding, setData, setData, setData, setDataColors, setHeight, setImage, setOutlineColor, setOutlineThickness, setRenderStyle, setSize, setTickLabelTextColor, setWidth, suggestLineThickness
getAlign, getInnerWidth, getInnerX, setAlign
getY, insertAt
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getInnerHeight, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getX, insertAtInternal, isEnabled, onRemoved, remove, setBackgroundDrawable, setBgcolor, setBottom, setChildFocus, setEnabled, setFocus, setFocusable, setGesturable, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setX, setY
add, addEventListener, childElementAt, childIndexOf, getTag, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setTag
public nUIDataSeriesChart(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public nUIDataSeriesChart(int nuiid, float[] data) throws java.lang.IllegalArgumentException
float
[]
array containing the data.nuiid
- Unique Native UI ID (or -1 if unidentified)data
- The data used to render this chartjava.lang.IllegalArgumentException
public void setDefaults()
nUIChartImage
setDefaults
in class nUIChartImage
public void setDataLabelStrings(java.lang.String[] label_strings)
label_strings
- an array of strings, or null to clear any
labels.public void setDataLabels(nUIChartLabel[] data_labels)
data_labels
- array of nUIChartLabel items, or null to
clear any labels.public nUIChartLabel[] getDataLabels()
public void setTickFrequency(float tick_frequency)
tick_frequency
- public float getTickFrequency()
public void renderDataLabels()