smart_arrays_plot_polyline library
Classes
-
Axis
-
The purpose of this class is to draw the axes supplementing the graphical
representation of 1D or 2D array data. A graphical representation of a 1D
array is provided by the class Polyline of this package.
For 1D arrays, a horizontal coordinate axis and a vertical intensity axis
is provided (constructors Axis.coord and Axis.intens. For 2D arrays,
a horizontal coordinate axis and a vertical second coordinate axis is
provided (both constructed with Axis.coord.
The user can control many axis attributes.
Note: Drawing is performed using Svg, Scalable Vector Graphics.
Usage: [...]
-
JsonUtils
-
JSON utils: json.decode(..) returns "dynamic".
These utility functions convert "dynamic" to a wanted type.
-
Legend
-
This class represents a legend consisting of [...]
-
PhysUnits
-
Helper class to convert array indices to "physical" units,
and to scale ("normalize") the values of the array.
Its is used to label x and y axes when the array is displayed as a graph,
e.g. using Polyline.
-
Polyline
-
The purpose of this class is to draw (plot) the values of a 1D array as a curve.
Drawing is performed using SVG, Scalable Vector Graphics. The drawn curve
is a SVG "polyline".
The user can control many polyline attributes.
Usage: [...]
-
SVG
-
Utilities for Svg, Scalable Vector Graphics.
-
Utils
-
Some utilities used in this package
-
XYGrid
-
Draws a grid in form of horizontal or vertical lines, or both.
The grid is particularly useful when employed in conjunction with the
Axis class to form a coordinate grid positioned at the tick marks of an axis.
Usage: [...]
-
YZoomRegion
-
An intensity (y) region defined by a selection rectangle
Enums
-
AxA
-
Axis attribute names definitions. See also
AXIS_DEFAULT_ATTRIBUTES
.
The attribute values are Strings (possibly a String resulting from json
encoded Map or List).
You may pass any of these attributes to an axis constructor. The respective
defaults attributes will be overridden.
-
LegA
-
Legend attribute names definitions. See also
LEGEND_DEFAULT_ATTRIBUTES
.
The attribute values are Strings.
You may pass any of these attributes to a legend constructor. The respective
defaults attributes will be overridden.
-
PyA
-
Polyline attribute names definitions. See also POLYLINE_DEFAULT_ATTRIBUTES.
The attribute values are Strings (possibly a String resulting from json
encoded Map or List).
You may pass any of these attributes to a Polyline constructor. The respective
defaults attributes will be overridden.
Typedefs
-
PhysicalToScreen(double physicalCoordinate)
→ double
-
Converts a "physical" axis coordinate to a screen coordinate
-
TouchCallback(UIEvent e)
→ dynamic
-
Called for touch events on an axis elements