next up previous contents
Next: DTWDataSelector module detail Up: GUI detailed design Previous: DTWDataPlotter module detail   Contents

DTWPathPlotter module detail

Private data and data structures

int[][] values
An array of vectors. Two int values in an element to describe one element.

JLabel pathLength
Path lenght displayed in the component.

Implementation of methods

DTWPathPlotter

  1. Initialize the component with size width*height.

setValues

  1. Copy values from the parameters to values[][].
  2. Call drawVectors method.

drawVectors

  1. Set currentX int value to 0.
  2. Set currentY int value to graphicsHeight.
  3. Get the coordinates from values[values.length()-1] to maxX and maxY.
  4. float $xScaling = width / maxX$ and float $yScaling = height / maxY$.
  5. Repeat values.length() times:



2002-03-19