JaRMoS
1.1
Java Reduced Model Simulations
|
Activity for output plotting of functions of time using the AChartEngine library. More...
Public Member Functions | |
void | onCreate (Bundle savedInstanceState) |
Constructor. More... | |
GraphicalView | execute (Context context) |
Executes the chart demo. More... | |
boolean | onTouchEvent (final MotionEvent event) |
void | add_sweep_point (float xpos) |
Adds a new point in non-time-dependent problems on where a touch event has occurred. More... | |
void | showPoint (float xpos) |
Displays information on an individual user-selected point on the graph. More... | |
boolean | onPrepareOptionsMenu (Menu menu) |
boolean | onOptionsItemSelected (MenuItem item) |
boolean | onKeyDown (int keyCode, KeyEvent event) |
Public Attributes | |
int | sweepIndex |
String | title |
String | xLabel |
double | dt |
double | xMin |
double | xMax |
int | n_time_steps |
int | n_outputs |
double[][] | RB_outputs_all_k |
double[][] | RB_outputs_LB |
double[][] | RB_outputs_UB |
Protected Member Functions | |
XYMultipleSeriesDataset | buildDataset (String[] titles, List< double[]> xValues, List< double[]> yValues) |
Builds an XY multiple dataset using the provided values. More... | |
XYMultipleSeriesRenderer | buildRenderer () |
Builds an XY multiple series renderer. More... | |
void | setChartSettings (XYMultipleSeriesRenderer renderer, String title, String xLabel, double xMin, double xMax) |
Sets a few of the series renderer settings. More... | |
Dialog | onCreateDialog (int id) |
This function takes care of constructing the dialogs that pop up. More... | |
Package Attributes | |
double[] | time_step_array |
Static Package Attributes | |
static final int | AXES_DIALOG_ID = 0 |
static final int | PLOT_DIALOG_ID = 1 |
static final int | LABEL_DIALOG_ID = 2 |
static final int | WARNING_DIALOG_ID = 3 |
static final int | INFO_DIALOG_ID = 4 |
Activity for output plotting of functions of time using the AChartEngine library.
The code is based on the demo provided with AChartEngine library.
This class has been taken from the original rbAppMIT package and modified to fit into the current JaRMoS framework.
Definition at line 55 of file OutputPlotterActivity.java.
void jarmos.app.activity.rb.OutputPlotterActivity.add_sweep_point | ( | float | xpos | ) |
Adds a new point in non-time-dependent problems on where a touch event has occurred.
Definition at line 507 of file OutputPlotterActivity.java.
|
protected |
Builds an XY multiple dataset using the provided values.
titles | the series titles |
xValues | the values for the X axis |
yValues | the values for the Y axis |
Definition at line 264 of file OutputPlotterActivity.java.
|
protected |
Builds an XY multiple series renderer.
colors | the series rendering colors |
styles | the series point styles |
Definition at line 311 of file OutputPlotterActivity.java.
GraphicalView jarmos.app.activity.rb.OutputPlotterActivity.execute | ( | Context | context | ) |
Executes the chart demo.
context | the context |
Definition at line 452 of file OutputPlotterActivity.java.
void jarmos.app.activity.rb.OutputPlotterActivity.onCreate | ( | Bundle | savedInstanceState | ) |
Constructor.
Definition at line 139 of file OutputPlotterActivity.java.
|
protected |
This function takes care of constructing the dialogs that pop up.
Definition at line 617 of file OutputPlotterActivity.java.
boolean jarmos.app.activity.rb.OutputPlotterActivity.onKeyDown | ( | int | keyCode, |
KeyEvent | event | ||
) |
Definition at line 1043 of file OutputPlotterActivity.java.
boolean jarmos.app.activity.rb.OutputPlotterActivity.onOptionsItemSelected | ( | MenuItem | item | ) |
Definition at line 925 of file OutputPlotterActivity.java.
boolean jarmos.app.activity.rb.OutputPlotterActivity.onPrepareOptionsMenu | ( | Menu | menu | ) |
Definition at line 917 of file OutputPlotterActivity.java.
boolean jarmos.app.activity.rb.OutputPlotterActivity.onTouchEvent | ( | final MotionEvent | event | ) |
Definition at line 489 of file OutputPlotterActivity.java.
|
protected |
Sets a few of the series renderer settings.
renderer | the renderer to set the properties to |
title | the chart title |
xTitle | the title for the X axis |
yTitle | the title for the Y axis |
xMin | the minimum value on the X axis |
xMax | the maximum value on the X axis |
yMin | the minimum value on the Y axis |
yMax | the maximum value on the Y axis |
axesColor | the axes color |
labelsColor | the labels color |
Definition at line 420 of file OutputPlotterActivity.java.
void jarmos.app.activity.rb.OutputPlotterActivity.showPoint | ( | float | xpos | ) |
Displays information on an individual user-selected point on the graph.
Definition at line 573 of file OutputPlotterActivity.java.
|
staticpackage |
Definition at line 60 of file OutputPlotterActivity.java.
double jarmos.app.activity.rb.OutputPlotterActivity.dt |
Definition at line 100 of file OutputPlotterActivity.java.
|
staticpackage |
Definition at line 64 of file OutputPlotterActivity.java.
|
staticpackage |
Definition at line 62 of file OutputPlotterActivity.java.
int jarmos.app.activity.rb.OutputPlotterActivity.n_outputs |
Definition at line 118 of file OutputPlotterActivity.java.
int jarmos.app.activity.rb.OutputPlotterActivity.n_time_steps |
Definition at line 115 of file OutputPlotterActivity.java.
|
staticpackage |
Definition at line 61 of file OutputPlotterActivity.java.
double [][] jarmos.app.activity.rb.OutputPlotterActivity.RB_outputs_all_k |
Definition at line 124 of file OutputPlotterActivity.java.
double [][] jarmos.app.activity.rb.OutputPlotterActivity.RB_outputs_LB |
Definition at line 127 of file OutputPlotterActivity.java.
double [][] jarmos.app.activity.rb.OutputPlotterActivity.RB_outputs_UB |
Definition at line 128 of file OutputPlotterActivity.java.
int jarmos.app.activity.rb.OutputPlotterActivity.sweepIndex |
Definition at line 93 of file OutputPlotterActivity.java.
|
package |
Definition at line 121 of file OutputPlotterActivity.java.
String jarmos.app.activity.rb.OutputPlotterActivity.title |
Definition at line 96 of file OutputPlotterActivity.java.
|
staticpackage |
Definition at line 63 of file OutputPlotterActivity.java.
String jarmos.app.activity.rb.OutputPlotterActivity.xLabel |
Definition at line 97 of file OutputPlotterActivity.java.
double jarmos.app.activity.rb.OutputPlotterActivity.xMax |
Definition at line 104 of file OutputPlotterActivity.java.
double jarmos.app.activity.rb.OutputPlotterActivity.xMin |
Definition at line 103 of file OutputPlotterActivity.java.