public class nUILineChart extends nUITwoAxisChart
DEFAULT_POINT_MARKER_SIZE, NUM_POINT_MARKERS, POINT_MARKER_BLOCK, POINT_MARKER_CIRCLE, POINT_MARKER_CROSS, POINT_MARKER_DIAMOND, POINT_MARKER_DOT, POINT_MARKER_LINE, POINT_MARKER_NONE, POINT_MARKER_PLUS, POINT_MARKER_SQUARE, POINT_MARKER_TRIANGLE, STACK_ABSOLUTE, STACK_ACCUMULATE
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
Constructor and Description |
---|
nUILineChart() |
nUILineChart(float[] data)
Chart constructor for a single value set line chart.
|
nUILineChart(float[][] data)
Chart constructor for a stacked or multi line line chart.
|
nUILineChart(float[] data,
int stride)
Chart constructor for a stacked line chart.
|
Modifier and Type | Method and Description |
---|---|
float |
getDataLineThickness()
Gets the currently set thickness of the data line to be drawn.
|
int |
getDefaultNumColors()
Gets the default number of colours that would be used to render this chart.
|
void |
renderImage()
Render the chart data, creating the
image for
the nUIImageElement |
void |
setDataLineThickness(float data_line_thickness)
Sets the thickness of the data line to draw.
|
void |
setDefaults()
Sets all default values for this chart type.
|
getAxes, getAxisColor, getAxisLabelCentering, getAxisLineThickness, getDataPointMarkerSize, getDataPointMarkerSizes, getDataPointMarkerType, getDataPointMarkerTypes, getHorizontalAxis, getMajorGridlineColor, getMajorGridlineThickness, getMinorGridlineColor, getMinorGridlineThickness, getOrientation, getPointMarkerSize, getPointMarkerType, getVerticalAxis, isStacked, renderDataLabels, setAxes, setAxisColor, setAxisLabelCentering, setAxisLineThickness, setDataPointMarkerSizes, setDataPointMarkerTypes, setMajorGridlineColor, setMajorGridlineThickness, setMinorGridlineColor, setMinorGridlineThickness, setOrientation, setPointMarkerSize, setPointMarkerType, setStackType
clearChartBodyPadding, getAxisLabelTextColor, getBackgroundColor, getBestGuessScale, getBorderColor, getBorderThickness, getData, getDataColor, getDataColors, 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
applyBackground, applyBackground, applyBackground
getBackgroundDrawable, getBottom, getElementIdentifier, getFocusable, getGesturable, getInnerHeight, getInnerY, getLeft, getMaxChildX, getMaxChildY, getProperties, getProperty, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getX, getY, insertAtInternal, isEnabled, isVisible, onRemoved, remove, setBackgroundDrawable, setBottom, setElementIdentifier, setEnabled, setFocusable, setGesturable, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setProperties, setProperty, setRight, setTop, setTriggerable, setVisible, setX, setY
add, addEventListener, childElementAt, childIndexOf, getFirstChild, getId, getLastChild, getNextSibling, getParent, getPrevSibling, getTag, insertAfter, insertAt, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setId, setTag, setUnlinkChildrenOnRemoval
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBackgroundDrawable
public nUILineChart()
public nUILineChart(float[] data) throws java.lang.IllegalArgumentException
data
- The data used to render this chartjava.lang.IllegalArgumentException
public nUILineChart(float[][] data) throws java.lang.IllegalArgumentException
data
- The data used to render this chartjava.lang.IllegalArgumentException
public nUILineChart(float[] data, int stride) throws java.lang.IllegalArgumentException
stride
numbers for each line.data
- The data used to render this chartstride
- The number of data points for each line
elementjava.lang.IllegalArgumentException
public void setDefaults()
nUIChartImage
setDefaults
in class nUITwoAxisChart
public float getDataLineThickness()
public void setDataLineThickness(float data_line_thickness)
data_line_thickness
- public int getDefaultNumColors()
nUIChartImage
getDefaultNumColors
in class nUIChartImage
public void renderImage()
image
for
the nUIImageElement