es.prodevelop.gvsig.mobile.fmap
Class ExtentHistoryImpl

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.fmap.ExtentHistoryImpl
All Implemented Interfaces:
ExtentHistory

public class ExtentHistoryImpl
extends java.lang.Object
implements ExtentHistory

Implementation of the ExtentHistory interface

Author:
jldominguez

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

ExtentHistoryImpl

public ExtentHistoryImpl()
Creates a new ExtentsHistory object.


ExtentHistoryImpl

public ExtentHistoryImpl(int numEntries)
Creates a new ExtentsHistory object.

Parameters:
numEntries - Numero de entradas que se guardan en el historico de rectángulos, por defecto 20
Method Detail

put

public void put(java.awt.geom.Rectangle2D ext)
Pone un nuevo rectángulo al final del array

Specified by:
put in interface ExtentHistory
Parameters:
ext - Rectángulo que se añade al histórico

hasPrevious

public boolean hasPrevious()
Devuelve true si hay algún rectángulo en el histórico

Specified by:
hasPrevious in interface ExtentHistory
Returns:
true o false en caso de que haya o no haya rectángulos

hasNext

public boolean hasNext()
Devuelve true si hay algún rectángulo en el histórico

Specified by:
hasNext in interface ExtentHistory
Returns:
true o false en caso de que haya o no haya rectángulos

getPrevious

public java.awt.geom.Rectangle2D getPrevious(java.awt.geom.Rectangle2D r)
Obtiene el último rectángulo que se añadió al histórico

Specified by:
getPrevious in interface ExtentHistory
Parameters:
r - current extent
Returns:
Ultimo rectángulo añadido

getNext

public java.awt.geom.Rectangle2D getNext(java.awt.geom.Rectangle2D curr)
Obtiene el último rectángulo que se añadió al histórico

Specified by:
getNext in interface ExtentHistory
Parameters:
curr - current extent
Returns:
Ultimo rectángulo añadido

getCapacity

public int getCapacity()
Description copied from interface: ExtentHistory
max number of extents permitted

Specified by:
getCapacity in interface ExtentHistory
Returns: