public class Tile extends AbstractBean
Modifier and Type | Class and Description |
---|---|
static class |
Tile.Priority
The loading priority
|
Constructor and Description |
---|
Tile(int x,
int y,
int zoom)
Create a new Tile at the specified tile point and zoom level
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
getImage() |
Tile.Priority |
getPriority()
Gets the loading priority of this tile.
|
String |
getURL()
Gets the URL of this tile.
|
int |
getX() |
int |
getY() |
int |
getZoom() |
boolean |
isLoaded()
Indicates if this tile's underlying image has been successfully loaded yet.
|
boolean |
isLoading() |
void |
setLoading(boolean isLoading) |
void |
setPriority(Tile.Priority priority)
Set the loading priority of this tile.
|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
public Tile(int x, int y, int zoom)
x
- the x valuey
- the y valuezoom
- the zoom levelpublic boolean isLoaded()
public BufferedImage getImage()
public int getZoom()
public boolean isLoading()
public void setLoading(boolean isLoading)
isLoading
- the isLoading to setpublic Tile.Priority getPriority()
public void setPriority(Tile.Priority priority)
priority
- the priority to setpublic String getURL()
public int getX()
public int getY()
Copyright © 2013. All Rights Reserved.