|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.image.TiledImageStore
public abstract class TiledImageStore
A TiledImageStore is responsible for locating and returning Images based on their SheetCoord. Implementations can perform this in a variety of ways and pull their data from a variety of sources. It also encapsulates the knowledge of the database's extents - for any given SheetCoord, it knows whether an image exists.
| Constructor Summary | |
|---|---|
TiledImageStore()
|
|
| Method Summary | |
|---|---|
void |
convertFromSourceDataUnits()
Converts the ImageStore to think in terms of destination (i.e. |
void |
convertToSourceDataUnits()
Converts the ImageStore to think in terms of source data units by applying the sourceDataScalingFactor to each rendered scale. |
int |
getCacheSize()
|
java.awt.Image |
getImage(SheetCoord coord)
Returns the Image associated with a SheetCoord. |
abstract java.awt.Image |
getImageImpl(SheetCoord coords)
For subclasses; fetch an Image however appropriate (but avoid caching if possible; this class handles that for you! |
java.lang.String |
getPath()
The base path. |
java.util.ArrayList |
getRenderedScales()
|
double |
getSourceDataScalingFactor()
Amount to multiply dimensions and scales by to match original source data (e.g. |
abstract boolean |
imageExists(SheetCoord coords)
Returns true if an image is available for the given SheetCoord. |
int |
indexFor(Scale scaley)
Return the index for the scale given. |
boolean |
isPreloading()
|
RenderedScale |
renderedScaleAt(int index)
Return the RenderedScale for the given index. |
void |
setCacheSize(int newSize)
|
void |
setPath(java.lang.String newPath)
The base path. |
void |
setPreloading(boolean tizit)
|
void |
setRenderedScales(java.util.ArrayList newScales)
|
void |
setSourceDataScalingFactor(double newFactor)
|
SheetPixelCoord |
sheetPixelContaining(Coord3D coord,
int scaleIndex)
Return the SheetPixelCoord for the given ground coordinate at the given scale and content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TiledImageStore()
| Method Detail |
|---|
public java.awt.Image getImage(SheetCoord coord)
public abstract java.awt.Image getImageImpl(SheetCoord coords)
public abstract boolean imageExists(SheetCoord coords)
public SheetPixelCoord sheetPixelContaining(Coord3D coord,
int scaleIndex)
public int indexFor(Scale scaley)
public RenderedScale renderedScaleAt(int index)
public void convertToSourceDataUnits()
public void convertFromSourceDataUnits()
public java.lang.String getPath()
public void setPath(java.lang.String newPath)
public java.util.ArrayList getRenderedScales()
public void setRenderedScales(java.util.ArrayList newScales)
public int getCacheSize()
public void setCacheSize(int newSize)
public boolean isPreloading()
public void setPreloading(boolean tizit)
public void setSourceDataScalingFactor(double newFactor)
public double getSourceDataScalingFactor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||