|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
fr.ifremer.isisfish.ui.widget.Interval
public class Interval
Classe permettant de d'ecrire un interval. Cette interval est un peu particulier car il est circulaire. Par exemple si min=0, max=100, first=75 et bien last peut etre egal à 25 donc inferieur a first. Dans ce cas si l'on demande contains 50 il repond faux et contains 99 retourne vrai. Created: Wed Oct 4 2000
| Nested Class Summary | |
|---|---|
static class |
Interval.IntervalIterator
|
| Constructor Summary | |
|---|---|
Interval()
|
|
Interval(int first,
int last)
|
|
Interval(int min,
int max,
int first,
int last)
|
|
| Method Summary | |
|---|---|
Interval |
clone()
|
boolean |
contains(int integerToCheck)
Retourne vrai si l'entier est dans l'interval. |
boolean |
equals(Object o)
Method equals |
int |
getFirst()
Get the value of first. |
int |
getLast()
Get the value of last. |
int |
getMax()
Retourne le nombre maximal que peut prendre comme valeur cette interval. |
int |
getMin()
Retourne le nombre minimal que peut prendre comme valeur cette interval. |
int |
getNbElem()
|
Iterator<Integer> |
iterator()
|
void |
move(int decal)
Move. |
void |
setFirst(int v)
Set the value of first. |
void |
setLast(int v)
Set the value of last. |
void |
setMax(int max)
|
void |
setMin(int min)
|
String |
toString()
|
String |
toXML()
Deprecated. since 20090414 (unused) |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Interval(int min,
int max,
int first,
int last)
public Interval(int first,
int last)
public Interval()
| Method Detail |
|---|
public int getMin()
public void setMin(int min)
public int getMax()
public void setMax(int max)
public int getFirst()
public void setFirst(int v)
v - Value to assign to first.public int getLast()
public void setLast(int v)
v - Value to assign to last.public void move(int decal)
decal - decal to movepublic boolean contains(int integerToCheck)
integerToCheck - integer to check
public int getNbElem()
public String toString()
toString in class Objectpublic String toXML()
public Iterator<Integer> iterator()
public boolean equals(Object o)
equals in class Objecto -
public Interval clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||