tapeutils
Class SampleModification

java.lang.Object
  extended bytapeutils.SampleModification

public class SampleModification
extends java.lang.Object

This class holds the parameters for conversion.

Author:
hldswrth

Constructor Summary
SampleModification(Sample sample, int index, int length)
          Constructor.
 
Method Summary
 void modified()
          Indicates that the sample has been modified.
 int redo()
          Redo the modification to the sample.
 int undo()
          Undo the modification to the sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleModification

public SampleModification(Sample sample,
                          int index,
                          int length)
Constructor.

Parameters:
sample - The sample data to be modified.
index - The index at which modification will occur.
length - The length of the modification.
Method Detail

modified

public void modified()
Indicates that the sample has been modified.


undo

public int undo()
Undo the modification to the sample.

Returns:
The index of the modification.

redo

public int redo()
Redo the modification to the sample.

Returns:
The index of the modification.