|
|||||||||
| 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
com.partnersoft.v3x.apps.MapBrowser.image.FileSystemImageStore
public class FileSystemImageStore
A FileSystemImageStore pulls image files from a local filesystem.
| Constructor Summary | |
|---|---|
FileSystemImageStore()
|
|
FileSystemImageStore(java.lang.String path)
Creates a new FileSystemImageStore based at directory base. |
|
| Method Summary | |
|---|---|
java.io.File |
fileFor(SheetCoord sheet)
Returns the File corresponding to the map image file. |
java.lang.String |
getImageDir()
|
java.awt.Image |
getImageImpl(SheetCoord coords)
Returns the Image associated with a SheetCoord. |
java.util.ArrayList |
getSuffixes()
|
boolean |
imageExists(SheetCoord coords)
Subclasses should override this if Image datapath is arranged differently. |
java.io.File |
preferredFileFor(SheetCoord sheet)
Returns the preferred file (the one with the first suffix from the suffix list), regardless of whether it exists or not. |
void |
setImageDir(java.lang.String newDir)
|
void |
setSuffixes(java.util.ArrayList newSuffixes)
|
| Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.image.TiledImageStore |
|---|
convertFromSourceDataUnits, convertToSourceDataUnits, getCacheSize, getImage, getPath, getRenderedScales, getSourceDataScalingFactor, indexFor, isPreloading, renderedScaleAt, setCacheSize, setPath, setPreloading, setRenderedScales, setSourceDataScalingFactor, sheetPixelContaining |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemImageStore()
public FileSystemImageStore(java.lang.String path)
| Method Detail |
|---|
public java.awt.Image getImageImpl(SheetCoord coords)
getImageImpl in class TiledImageStorepublic boolean imageExists(SheetCoord coords)
imageExists in class TiledImageStorepublic java.io.File fileFor(SheetCoord sheet)
public java.io.File preferredFileFor(SheetCoord sheet)
public java.util.ArrayList getSuffixes()
public void setSuffixes(java.util.ArrayList newSuffixes)
public java.lang.String getImageDir()
public void setImageDir(java.lang.String newDir)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||