org.jdesktop.swingx.mapviewer
Class Tile

java.lang.Object
  extended by org.jdesktop.beans.AbstractBean
      extended by org.jdesktop.swingx.mapviewer.Tile

public class Tile
extends org.jdesktop.beans.AbstractBean


Nested Class Summary
static class Tile.Priority
           
 
Constructor Summary
Tile(TilePoint location, int zoom)
          Create a new Tile
Tile(TilePoint location, int zoom, java.lang.String url, Tile.Priority priority)
          Create a new Tile that loads its data from the given URL.
 
Method Summary
 void addUniquePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Addes a property change listener *only* if one wasn't already added
 java.awt.image.BufferedImage getImage()
           
 java.lang.Throwable getLoadingError()
           
 TilePoint getLocation()
           
 Tile.Priority getPriority()
           
 java.lang.Throwable getUnrecoverableError()
           
 int getZoom()
           
 boolean isDummy()
           
 boolean isLoaded()
           
 void promote()
           
 
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tile

public Tile(TilePoint location,
            int zoom)
Create a new Tile


Tile

public Tile(TilePoint location,
            int zoom,
            java.lang.String url,
            Tile.Priority priority)
Create a new Tile that loads its data from the given URL. The URL must resolve to an image

Method Detail

isLoaded

public boolean isLoaded()

getUnrecoverableError

public java.lang.Throwable getUnrecoverableError()

getLoadingError

public java.lang.Throwable getLoadingError()

getImage

public java.awt.image.BufferedImage getImage()

isDummy

public boolean isDummy()

getLocation

public TilePoint getLocation()
Returns:
the location in the world at this zoom level that this tile should be placed

getZoom

public int getZoom()
Returns:
the zoom level that this tile belongs in

addUniquePropertyChangeListener

public void addUniquePropertyChangeListener(java.lang.String propertyName,
                                            java.beans.PropertyChangeListener listener)
Addes a property change listener *only* if one wasn't already added


getPriority

public Tile.Priority getPriority()

promote

public void promote()