Package org.hortonmachine.gui.utils
Class ImageCache
- java.lang.Object
-
- org.hortonmachine.gui.utils.ImageCache
-
public class ImageCache extends Object
A singleton cache for images.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Clears the internal map.static ImageIconget(String key)static BufferedImagegetBuffered(String key)BufferedImagegetBufferedImage(String key)ImageIcongetImage(String key)Get an image for a certain key.static ImageCachegetInstance()
-
-
-
Field Detail
-
HOME
public static final String HOME
- See Also:
- Constant Field Values
-
TRASH
public static final String TRASH
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
MODULE
public static final String MODULE
- See Also:
- Constant Field Values
-
MODULEEXP
public static final String MODULEEXP
- See Also:
- Constant Field Values
-
MODULE_TEMPLATE
public static final String MODULE_TEMPLATE
- See Also:
- Constant Field Values
-
TEMPLATE
public static final String TEMPLATE
- See Also:
- Constant Field Values
-
RUN
public static final String RUN
- See Also:
- Constant Field Values
-
RUN_TO_FILE
public static final String RUN_TO_FILE
- See Also:
- Constant Field Values
-
RUN_TO_SHAPEFILE
public static final String RUN_TO_SHAPEFILE
- See Also:
- Constant Field Values
-
STOP
public static final String STOP
- See Also:
- Constant Field Values
-
GRID
public static final String GRID
- See Also:
- Constant Field Values
-
PROGRESS_STOP
public static final String PROGRESS_STOP
- See Also:
- Constant Field Values
-
NEW
public static final String NEW
- See Also:
- Constant Field Values
-
OPEN
public static final String OPEN
- See Also:
- Constant Field Values
-
SAVE
public static final String SAVE
- See Also:
- Constant Field Values
-
COPY
public static final String COPY
- See Also:
- Constant Field Values
-
MEMORY
public static final String MEMORY
- See Also:
- Constant Field Values
-
DEBUG
public static final String DEBUG
- See Also:
- Constant Field Values
-
FONT
public static final String FONT
- See Also:
- Constant Field Values
-
FILE
public static final String FILE
- See Also:
- Constant Field Values
-
FOLDER
public static final String FOLDER
- See Also:
- Constant Field Values
-
REFRESH
public static final String REFRESH
- See Also:
- Constant Field Values
-
CONNECT
public static final String CONNECT
- See Also:
- Constant Field Values
-
CONNECT_REMOTE
public static final String CONNECT_REMOTE
- See Also:
- Constant Field Values
-
DISCONNECT
public static final String DISCONNECT
- See Also:
- Constant Field Values
-
HISTORY_DB
public static final String HISTORY_DB
- See Also:
- Constant Field Values
-
NEW_DATABASE
public static final String NEW_DATABASE
- See Also:
- Constant Field Values
-
DATABASE
public static final String DATABASE
- See Also:
- Constant Field Values
-
TABLE_FOLDER
public static final String TABLE_FOLDER
- See Also:
- Constant Field Values
-
TABLE
public static final String TABLE
- See Also:
- Constant Field Values
-
VIEW
public static final String VIEW
- See Also:
- Constant Field Values
-
TABLE_SPATIAL
public static final String TABLE_SPATIAL
- See Also:
- Constant Field Values
-
TABLE_SPATIAL_VIRTUAL
public static final String TABLE_SPATIAL_VIRTUAL
- See Also:
- Constant Field Values
-
TABLE_COLUMN
public static final String TABLE_COLUMN
- See Also:
- Constant Field Values
-
TABLE_COLUMN_PRIMARYKEY
public static final String TABLE_COLUMN_PRIMARYKEY
- See Also:
- Constant Field Values
-
TABLE_COLUMN_INDEX
public static final String TABLE_COLUMN_INDEX
- See Also:
- Constant Field Values
-
TABLE_COLUMN_FK
public static final String TABLE_COLUMN_FK
- See Also:
- Constant Field Values
-
DBIMAGE
public static final String DBIMAGE
- See Also:
- Constant Field Values
-
LOG
public static final String LOG
- See Also:
- Constant Field Values
-
INFO
public static final String INFO
- See Also:
- Constant Field Values
-
PHOTO
public static final String PHOTO
- See Also:
- Constant Field Values
-
NOTE
public static final String NOTE
- See Also:
- Constant Field Values
-
EXPORT
public static final String EXPORT
- See Also:
- Constant Field Values
-
INFOTOOL_ON
public static final String INFOTOOL_ON
- See Also:
- Constant Field Values
-
INFOTOOL_OFF
public static final String INFOTOOL_OFF
- See Also:
- Constant Field Values
-
GLOBE
public static final String GLOBE
- See Also:
- Constant Field Values
-
ZOOM_TO_ALL
public static final String ZOOM_TO_ALL
- See Also:
- Constant Field Values
-
ZOOM_TO_NEXT
public static final String ZOOM_TO_NEXT
- See Also:
- Constant Field Values
-
ZOOM_TO_PREVIOUS
public static final String ZOOM_TO_PREVIOUS
- See Also:
- Constant Field Values
-
SELECTION_MODE
public static final String SELECTION_MODE
- See Also:
- Constant Field Values
-
BROWSER
public static final String BROWSER
- See Also:
- Constant Field Values
-
VECTOR
public static final String VECTOR
- See Also:
- Constant Field Values
-
GEOM_POINT
public static final String GEOM_POINT
- See Also:
- Constant Field Values
-
GEOM_LINE
public static final String GEOM_LINE
- See Also:
- Constant Field Values
-
GEOM_POLYGON
public static final String GEOM_POLYGON
- See Also:
- Constant Field Values
-
DEM
public static final String DEM
- See Also:
- Constant Field Values
-
TREE_OPEN
public static final String TREE_OPEN
- See Also:
- Constant Field Values
-
TREE_CLOSED
public static final String TREE_CLOSED
- See Also:
- Constant Field Values
-
SPATIALITE32
public static final String SPATIALITE32
- See Also:
- Constant Field Values
-
H2GIS32
public static final String H2GIS32
- See Also:
- Constant Field Values
-
GPKG32
public static final String GPKG32
- See Also:
- Constant Field Values
-
POSTGIS32
public static final String POSTGIS32
- See Also:
- Constant Field Values
-
MONGO32
public static final String MONGO32
- See Also:
- Constant Field Values
-
SETTINGS
public static final String SETTINGS
- See Also:
- Constant Field Values
-
PALETTE
public static final String PALETTE
- See Also:
- Constant Field Values
-
FORM_PICTURE
public static final String FORM_PICTURE
- See Also:
- Constant Field Values
-
FORM_SKETCH
public static final String FORM_SKETCH
- See Also:
- Constant Field Values
-
FORM_MAP
public static final String FORM_MAP
- See Also:
- Constant Field Values
-
FORM_DATE
public static final String FORM_DATE
- See Also:
- Constant Field Values
-
FORM_TIME
public static final String FORM_TIME
- See Also:
- Constant Field Values
-
FORM_PLUS
public static final String FORM_PLUS
- See Also:
- Constant Field Values
-
HORTONMACHINE_FRAME_ICON
public static final String HORTONMACHINE_FRAME_ICON
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ImageCache getInstance()
-
getImage
public ImageIcon getImage(String key)
Get an image for a certain key.The only keys to be used are the static strings in this class!!
- Parameters:
key- a file key, as for exampleImageCache#DATABASE_VIEW.- Returns:
- the image.
-
getBufferedImage
public BufferedImage getBufferedImage(String key)
-
getBuffered
public static BufferedImage getBuffered(String key)
-
dispose
public void dispose()
Clears the internal map.
-
-