Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

antMountGUI::CurveStroke Class Reference

Inheritance diagram for antMountGUI::CurveStroke:

Inheritance graph
[legend]
Collaboration diagram for antMountGUI::CurveStroke:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CurveStroke (double time, double orientation, double[][] theArray)
void setArray (double[][] newArray)
void setArray (Vector values)
void setRow (int row, Vector values)
void setArrayItem (int row, int col, String newVal)
void setArrayItem (int row, int col, double newVal)
double getArrayItem (int row, int col)
double[][] getArray ()
String[][] getArrayAsStrings ()

Private Attributes

double[][] array = null

Detailed Description

A curve stroke

Author:
acaproni
Version:
1.0


Constructor & Destructor Documentation

antMountGUI::CurveStroke::CurveStroke double  time,
double  orientation,
double  theArray[][]
[inline]
 

Build a curve stroke

Parameters:
time The time
orientation The orientation
theArray The array
Precondition:
theArray!=null


Member Function Documentation

double [][] antMountGUI::CurveStroke::getArray  )  [inline]
 

Returns:
The array

String [][] antMountGUI::CurveStroke::getArrayAsStrings  )  [inline]
 

Returns:
The array as array of String objects (useful for the DefaultTableModel used by the GUI)
Postcondition:
$result.length==array.length

$result[0].length==array[0].length

double antMountGUI::CurveStroke::getArrayItem int  row,
int  col
[inline]
 

Return the value of an item of the array

Parameters:
row The row of the item
col The column of the item
Returns:
The value of an item of the array
Precondition:
row>=0 && row<array.length

col>=0 && col<array[0].length

void antMountGUI::CurveStroke::setArray Vector  values  )  [inline]
 

Create the array with the values stored inthe parameter (useful link to the DefaultTableModel used in the GUI

Parameters:
values The vector of vector of strings to store into the array
Precondition:
values!=null && values.$forall(Vector v; v!=null)
Postcondition:
array.length==values.size()

(array[0].length)==((Vector)values.elementAt(0)).size()

values!=null

values.elementAt(t)!=null

void antMountGUI::CurveStroke::setArray double  newArray[][]  )  [inline]
 

Set the array

Parameters:
newArray The new array
Precondition:
newArray!=null

void antMountGUI::CurveStroke::setArrayItem int  row,
int  col,
double  newVal
[inline]
 

Set an item of the array in position [row,col]

Parameters:
row The row
col The column
newVal The new value
Precondition:
row>=0 && row<array.length

col>=0 && col<array[0].length

void antMountGUI::CurveStroke::setArrayItem int  row,
int  col,
String  newVal
[inline]
 

Set an item of the array in position [row,col] decoding the string

Parameters:
row The row
col The column
newVal The stringfied representation of the double
Precondition:
row>=0 && row<array.length

col>=0 && col<array[0].length

newVal!=null

void antMountGUI::CurveStroke::setRow int  row,
Vector  values
[inline]
 

Fill a row decoding the vector of strings (useful link to the DefaultTableModel used in the GUI

Parameters:
row The index of the row
values The vector of (string) values to insert into the row
&pre values!=null && values.$forall(String s; s!=null)


Member Data Documentation

double [][] antMountGUI::CurveStroke::array = null [private]
 

The array (xArray,yArray,time)


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:07:56 2009 for ACS Java API by doxygen 1.3.8