Class Selection

java.lang.Object
   |
   +----Selection

public class Selection
extends Object
Fields and methods defining a selection of a wave.
The values start and end are in samples. They are inclusive, ie sample is the last sample included in this selection.
champs et methodes pour la selection
les valeur de Debut et Fin sont en echantillons et sont inclusives.


Variable Index

 o BOTH
 o end
 o LEFT
 o RIGHT
 o side
 o start

Constructor Index

 o Selection()

Method Index

 o copyItself(Selection)
Makes a copy of this selection to Dest.
 o getLength()
Returns length of this selection.
 o getPoint()
Returns the point of the selection.
 o onePoint()
Returns whether this selection defines one point.
 o setPoint(int)
Sets this selection to one point.

Variables

 o BOTH
 public static final int BOTH
 o LEFT
 public static final int LEFT
 o RIGHT
 public static final int RIGHT
 o start
 public int start
 o end
 public int end
 o side
 public int side

Constructors

 o Selection
 public Selection()

Methods

 o onePoint
 public boolean onePoint()
Returns whether this selection defines one point.
This is the case, when you clicked once in a graph, the point is marked as a green line.
The definition is: (start=end) => one point is selected.
S'il y a une selection et si Debut == Fin
alors un point est selectionne.

 o getPoint
 public int getPoint()
Returns the point of the selection. If there is not defined a point but rather a range, is returned.
retourne le point de la selection.

 o setPoint
 public void setPoint(int pos)
Sets this selection to one point.
etabli les coordonnees du point selectionne.

 o getLength
 public int getLength()
Returns length of this selection.
renvoie la taille de la selection.

See Also:
setPoint
 o copyItself
 public void copyItself(Selection Dest)
Makes a copy of this selection to Dest.
copie conforme de la selection.