|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.ExtentHistoryImpl
Implementation of the ExtentHistory interface
Constructor Summary | |
ExtentHistoryImpl()
Creates a new ExtentsHistory object. |
|
ExtentHistoryImpl(int numEntries)
Creates a new ExtentsHistory object. |
Method Summary | |
int |
getCapacity()
max number of extents permitted |
java.awt.geom.Rectangle2D |
getNext(java.awt.geom.Rectangle2D curr)
Obtiene el último rectángulo que se añadió al histórico |
java.awt.geom.Rectangle2D |
getPrevious(java.awt.geom.Rectangle2D r)
Obtiene el último rectángulo que se añadió al histórico |
boolean |
hasNext()
Devuelve true si hay algún rectángulo en el histórico |
boolean |
hasPrevious()
Devuelve true si hay algún rectángulo en el histórico |
void |
put(java.awt.geom.Rectangle2D ext)
Pone un nuevo rectángulo al final del array |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtentHistoryImpl()
public ExtentHistoryImpl(int numEntries)
numEntries
- Numero de entradas que se guardan en el historico de
rectángulos, por defecto 20Method Detail |
public void put(java.awt.geom.Rectangle2D ext)
put
in interface ExtentHistory
ext
- Rectángulo que se añade al históricopublic boolean hasPrevious()
hasPrevious
in interface ExtentHistory
public boolean hasNext()
hasNext
in interface ExtentHistory
public java.awt.geom.Rectangle2D getPrevious(java.awt.geom.Rectangle2D r)
getPrevious
in interface ExtentHistory
r
- current extent
public java.awt.geom.Rectangle2D getNext(java.awt.geom.Rectangle2D curr)
getNext
in interface ExtentHistory
curr
- current extent
public int getCapacity()
ExtentHistory
getCapacity
in interface ExtentHistory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |