Next: DTWPathPlotter module detail
Up: GUI detailed design
Previous: DTWFileIO module detail
  Contents
Private data and data structures
float[] values
A float table containing the values for plotting.
javax.swing.JLabel Name
Plotting name.
javax.swing.JLabel Length
Plotting length.
DTWSelectionPlotter.selectionStart
Selection start point.
DTWSelectionPlotter.selectionEnd
Selection ending point.
DTWSelectionPlotter.mouseListener
A listener for mouse actions in the plotter area. On a mouse event the listener raises an DTWSelectionPlotterEvent
that contains the relative coordinate the mouse cursor was in on the moment of click.
Either
java.awt.BufferedImage Plotting
Plotting area image to be scaled into ScaledPlotting.
java.awt.Graphics ScaledPlotting
The plotting area for the component.
Or
java.awt.Graphics2D grap
The plotting area for the component.
Implementation of methods
DTWDataPlotter
Create a new DTWDataPlotter
object with width and height specified in parameters.
setValues
- Set values for plotter to match with values in
newValues
.
- Draw the plotting with method
drawPlotting()
.
- Set Name label to
newValues.name
.
- Set Length label to
newValues.values.length()\verb
.
DTWHorizontalPlotter.drawPlotting
- Find the maximum value from
values
array.
- Create a new int array
plotValues[]
with size of values.length()
.
Convert values[]
to the array by scaling; The scaling factor is graphicsHeight/maxValue
.
.
- Set distance of two plotting points
- initialize
and
- Draw the plotting:
-
.
-
.
- Draw a line from (currentX, currentY) to (nextX, nextY).
- currentX = nextX, currentY = nextY.
DTWVerticalPlotter.drawPlotting
- Find the maximum value from
values
array.
- Create a new int array
plotValues[]
with size of values.length()
.
- Convert
values[]
to the array by scaling; The scaling factor is graphicsWidth/maxValue
.
.
- Set distance of two plotting points
- initialize
and
- Draw the plotting:
-
.
-
.
- Draw a line from (currentX, currentY) to (nextX, nextY).
- currentX = nextX, currentY = nextY.
DTWSelectionPlotter.setSelection
- Set
this.selectionStart = start
- Set
this.selectionEnd = end
- Invert area covering the selection from the plotter.
DTWSelectionPlotter.getSelectionValues
- Create a new array of floats of size
- Copy values array items from
selectionStart
to selectionEnd
to the new array.
- Return the new array.
Next: DTWPathPlotter module detail
Up: GUI detailed design
Previous: DTWFileIO module detail
  Contents
2002-03-19