public abstract class nUITwoAxisChart extends nUIChartImage
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_POINT_MARKER_SIZE
The default base size of a data point marker.
|
static int |
NUM_POINT_MARKERS
Point marker types
|
static int |
POINT_MARKER_BLOCK
Point marker types
|
static int |
POINT_MARKER_CIRCLE
Point marker types
|
static int |
POINT_MARKER_CROSS
Point marker types
|
static int |
POINT_MARKER_DIAMOND
Point marker types
|
static int |
POINT_MARKER_DOT
Point marker types
|
static int |
POINT_MARKER_LINE
Point marker types
|
static int |
POINT_MARKER_NONE
Point marker types
|
static int |
POINT_MARKER_PLUS
Point marker types
|
static int |
POINT_MARKER_SQUARE
Point marker types
|
static int |
POINT_MARKER_TRIANGLE
Point marker types
|
static int |
STACK_ABSOLUTE
Data stacking
|
static int |
STACK_ACCUMULATE
Data stacking
|
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 |
---|
nUITwoAxisChart(int nuiid)
Chart constructor that creates an empty chart
|
nUITwoAxisChart(int nuiid,
float[] data)
Chart constructor that takes a single dimension
float
[] array containing the data. |
nUITwoAxisChart(int nuiid,
float[][] data)
Chart constructor that takes a multi dimension
float
[][] array containing the data. |
nUITwoAxisChart(int nuiid,
float[] data,
int stride)
Chart constructor that takes a single dimension
float
[] array containing the data. |
Modifier and Type | Method and Description |
---|---|
nUIChartAxis[] |
getAxes()
Gets the current array of nUIChartAxis objects for the
chart.
|
int |
getAxisColor()
Gets the current color used when drawing the chart axes.
|
boolean |
getAxisLabelCentering()
Are major gridline labels allowed to be drawn centered over the axis line.
|
float |
getAxisLineThickness()
Gets the current thickness of the axis lines.
|
float |
getDataPointMarkerSize(int index)
Gets the currently used point marker's size.
|
float[] |
getDataPointMarkerSizes()
Gets the currently set data point marker sizes.
|
int |
getDataPointMarkerType(int index)
Gets the currently used point marker type for a given data point.
|
int[] |
getDataPointMarkerTypes()
Gets the current set of data point marker types.
|
nUIChartAxis |
getHorizontalAxis()
Gets the horizontal axis for the chart.
|
int |
getMajorGridlineColor()
Gets the current color for the major grid lines.
|
float |
getMajorGridlineThickness()
Gets the current thickness of the major grid lines.
|
int |
getMinorGridlineColor()
Gets the current color for the minor grid lines.
|
float |
getMinorGridlineThickness()
Gets the current thickness of the minor grid lines.
|
int |
getOrientation()
Gets the orientation of the chart.
|
float |
getPointMarkerSize()
Gets the current size of the point marker.
|
int |
getPointMarkerType()
Gets the currently set point type for the chart.
|
nUIChartAxis |
getVerticalAxis()
Gets the vertical axis for the chart.
|
boolean |
isStacked()
Returns true if the chart is stacked
|
void |
renderDataLabels()
Render the axes labels for the graph.
|
void |
setAxes(nUIChartAxis[] axes)
Sets values for the chart axes.
|
void |
setAxisColor(int color)
Sets the color used when drawing the chart axes.
|
void |
setAxisLabelCentering(boolean allow_centering)
Sets if the chart is allowed to draw major gridline labels centered over the axis line itself.
|
void |
setAxisLineThickness(float axis_line_thickness)
Sets the thickness of the axis lines to use in x/y graphs.
|
void |
setDataPointMarkerSizes(float[] data_point_marker_sizes)
Sets the data point marker sizes.
|
void |
setDataPointMarkerTypes(int[] data_point_marker_types)
Sets a number of data point marker types.
|
void |
setDefaults()
Sets all default values for this chart type.
|
void |
setMajorGridlineColor(int grid_color)
Sets the color of the major gridlines.
|
void |
setMajorGridlineThickness(float grid_line_thickness)
Sets the thickness of the major grid lines to use in x/y graphs.
|
void |
setMinorGridlineColor(int grid_color)
Sets the color of the minor grid lines.
|
void |
setMinorGridlineThickness(float grid_line_thickness)
Sets the thickness of the minor grid lines to use in x/y graphs.
|
void |
setOrientation(int orientation)
Sets the orientation of the chart to vertical or horizontal.
|
void |
setPointMarkerSize(float point_marker_size)
Sets the point marker's size.
|
void |
setPointMarkerType(int point_marker_type)
For scatter charts and other types that render points
individually, this method sets the type of the points drawn.
|
void |
setStackType(int type)
Sets the type of the data stacking - ether STACK_ABSOLUTE (all data values passed in correspond to literal values), or
STACK_ACCUMULATE (data values are added together). |
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 static final float DEFAULT_POINT_MARKER_SIZE
public static final int POINT_MARKER_NONE
public static final int POINT_MARKER_DOT
public static final int POINT_MARKER_DIAMOND
public static final int POINT_MARKER_CROSS
public static final int POINT_MARKER_BLOCK
public static final int POINT_MARKER_CIRCLE
public static final int POINT_MARKER_TRIANGLE
public static final int POINT_MARKER_PLUS
public static final int POINT_MARKER_SQUARE
public static final int POINT_MARKER_LINE
public static final int NUM_POINT_MARKERS
public static final int STACK_ABSOLUTE
public static final int STACK_ACCUMULATE
public nUITwoAxisChart(int nuiid)
nuiid
- Unique Native UI ID (or -1 if unidentified)public nUITwoAxisChart(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 nUITwoAxisChart(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 nUITwoAxisChart(int nuiid, float[] data, int stride) 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 chartstride
- The stride of the data in the arrayjava.lang.IllegalArgumentException
public void setDefaults()
nUIChartImage
setDefaults
in class nUIChartImage
public boolean getAxisLabelCentering()
public void setAxisLabelCentering(boolean allow_centering)
allow_centering
- true if the labels can be placed over the axis line.public void setAxisLineThickness(float axis_line_thickness)
axis_line_thickness
- the width of the line to set.public void setMinorGridlineThickness(float grid_line_thickness)
grid_line_thickness
- the width of the line to set.public void setMajorGridlineThickness(float grid_line_thickness)
grid_line_thickness
- the width of the line to set.public float getMinorGridlineThickness()
public float getMajorGridlineThickness()
public float getAxisLineThickness()
public void setMinorGridlineColor(int grid_color)
grid_color
- an AARRGGBB color.public void setMajorGridlineColor(int grid_color)
grid_color
- an AARRGGBB color.public int getMinorGridlineColor()
public int getMajorGridlineColor()
public void setOrientation(int orientation)
nUIChartImage
.orientation
- Either nUIChartImage.ORIENTATION_VERTICAL or
nUIChartImage.ORIENTATION_HORIZONTALpublic int getOrientation()
public void setAxisColor(int color)
color
- The color value to set.public int getAxisColor()
public void setStackType(int type)
public boolean isStacked()
public int getDataPointMarkerType(int index)
index
- the number of the data point, starting from 0.public float getDataPointMarkerSize(int index)
index
- the index of the data point.public void setPointMarkerType(int point_marker_type)
point_marker_type
- POINT_MARKER_ value describing how the points on the chart should be drawn.public int getPointMarkerType()
public void setPointMarkerSize(float point_marker_size)
point_marker_size
- public float getPointMarkerSize()
public void setDataPointMarkerTypes(int[] data_point_marker_types)
data_point_marker_types
- public int[] getDataPointMarkerTypes()
public void setDataPointMarkerSizes(float[] data_point_marker_sizes)
data_point_marker_sizes
- public float[] getDataPointMarkerSizes()
public void renderDataLabels()
public void setAxes(nUIChartAxis[] axes)
axes
- array of nUIChartAxis objectspublic nUIChartAxis[] getAxes()
public nUIChartAxis getHorizontalAxis()
public nUIChartAxis getVerticalAxis()