com.partnersoft.v3x.apps.MapBrowser.image
Class FileSystemImageStore

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.image.TiledImageStore
      extended by com.partnersoft.v3x.apps.MapBrowser.image.FileSystemImageStore
All Implemented Interfaces:
java.io.Serializable

public class FileSystemImageStore
extends TiledImageStore

A FileSystemImageStore pulls image files from a local filesystem.

See Also:
Serialized Form

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

FileSystemImageStore

public FileSystemImageStore()

FileSystemImageStore

public FileSystemImageStore(java.lang.String path)
Creates a new FileSystemImageStore based at directory base.

Method Detail

getImageImpl

public java.awt.Image getImageImpl(SheetCoord coords)
Returns the Image associated with a SheetCoord. Returns null if there is none.

Specified by:
getImageImpl in class TiledImageStore

imageExists

public boolean imageExists(SheetCoord coords)
Subclasses should override this if Image datapath is arranged differently.

Specified by:
imageExists in class TiledImageStore

fileFor

public java.io.File fileFor(SheetCoord sheet)
Returns the File corresponding to the map image file.


preferredFileFor

public 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.


getSuffixes

public java.util.ArrayList getSuffixes()

setSuffixes

public void setSuffixes(java.util.ArrayList newSuffixes)

getImageDir

public java.lang.String getImageDir()

setImageDir

public void setImageDir(java.lang.String newDir)