com.bbn.openmap.dataAccess.mapTile
Class StandardImagePreparer
java.lang.Object
com.bbn.openmap.dataAccess.mapTile.StandardImagePreparer
- All Implemented Interfaces:
- TileImagePreparer
public class StandardImagePreparer
- extends java.lang.Object
- implements TileImagePreparer
This is the standard map tile preparer, setting up the factory with ARGB
images.
- Author:
- dietrick
Method Summary |
void |
prepareForEmptyTile(MapTileFactory factory)
Sometimes, based on the color handling of the preparer, empty tiles need to be handled differently. |
java.awt.image.BufferedImage |
preprocessImage(java.awt.Image origImage,
int imageWidth,
int imageHeight)
Method called to manipulate provided image in some way, returning modified image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardImagePreparer
public StandardImagePreparer()
prepareForEmptyTile
public void prepareForEmptyTile(MapTileFactory factory)
- Description copied from interface:
TileImagePreparer
- Sometimes, based on the color handling of the preparer, empty tiles need to be handled differently.
- Specified by:
prepareForEmptyTile
in interface TileImagePreparer
- Parameters:
factory
- used to make calls on the factory to prepare for empty tile fetch.
preprocessImage
public java.awt.image.BufferedImage preprocessImage(java.awt.Image origImage,
int imageWidth,
int imageHeight)
throws java.lang.InterruptedException
- Description copied from interface:
TileImagePreparer
- Method called to manipulate provided image in some way, returning modified image.
- Specified by:
preprocessImage
in interface TileImagePreparer
- Parameters:
origImage
- Any java ImageimageWidth
- pixel widthimageHeight
- pixel height
- Returns:
- BufferedImage with any changes necessary.
- Throws:
java.lang.InterruptedException
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details