public class ImageTile extends OMScalingRaster implements java.io.Serializable
OMRaster
,
OMRasterObject
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
ImageTile.Cache |
OMRasterObject.TrimScaleFilter
Modifier and Type | Field and Description |
---|---|
protected CacheHandler |
cache |
static java.awt.Color |
DEFAULT_NON_CLEAR_FILL_PAINT |
protected ImageReader |
imageDecoder |
protected java.lang.Boolean |
realSelection |
clipRect, corners, lastProjection, lat2, lon2, scaleTransformType, sourceImage
colors, transparent
bitmap, bits, colorModel, COLORMODEL_DIRECT, COLORMODEL_IMAGEICON, COLORMODEL_INDEXED, DEBUG, FAST_SCALING, filteredHeight, filteredWidth, height, imageFilter, lat, logger, lon, needToReposition, pixels, point1, point2, rotationAngle, SMOOTH_SCALING, width, x, y
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
ImageTile()
Construct a blank OMRaster, to be filled in with set calls.
|
ImageTile(double ullat,
double ullon,
double lrlat,
double lrlon,
java.awt.image.BufferedImage image)
Create an OMRaster, Lat/Lon placement with an ImageIcon.
|
ImageTile(double ullat,
double ullon,
double lrlat,
double lrlon,
ImageReader imageDecoder,
CacheHandler cache)
Create an OMRaster, Lat/Lon placement with an ImageIcon.
|
Modifier and Type | Method and Description |
---|---|
ImageReader |
getImageDecoder() |
boolean |
regenerate(Projection p)
Invoke this to regenerate a "dirty" graphic.
|
void |
setImageDecoder(ImageReader imageDecoder) |
void |
setSelected(boolean setting)
Calls select() or deselect() depending on the boolean (select is true).
|
protected boolean |
shouldFetchForProjection(Projection proj)
Checking to see of the image needs to be updated for the projection
parameters, namely scale.
|
protected boolean |
updateImageForProjection(Projection proj)
Called from within generate.
|
generate, getClippedRectangle, getImageWarp, getLRLat, getLRLon, getScaleTransformType, getULLat, getULLon, isOnMap, position, render, restore, rotate, scaleTo, setImage, setLRLat, setLRLon, setScaleTransformType, setShape, setULLat, setULLon
computePixels, getBitmapFromInternalData, getByte, getColors, getPixel, getTransparent, setBits, setByte, setColors, setColors, setImageIcon, setPixel, setTransparent
filterImage, getBits, getColorModel, getFilteredHeight, getFilteredWidth, getHeight, getImage, getImageFilter, getLat, getLon, getMapLocation, getNeedToReposition, getPixels, getRotationAngle, getWidth, getX, getY, hasLineTypeChoice, imageUpdate, scaleTo, setColorModel, setHeight, setImageFilter, setLat, setLon, setNeedToReposition, setPixels, setRotationAngle, setWidth, setX, setY, shouldRenderFill
clone, deselect, distance, getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, readStroke, renderLabel, select, setDeclutterType, setEdgeMatchesFill, setFillColor, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelectPaint, setShape, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, writeStroke
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, deselect, getDeclutterType, getDisplayColor, getDisplayPaint, getFillColor, getFillPaint, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, isMatted, isSelected, normalizeDistanceForLineWidth, renderLabel, select, setDeclutterType, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectPaint, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge
clearAttributes, contains, distance, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
protected ImageReader imageDecoder
protected CacheHandler cache
protected java.lang.Boolean realSelection
public static java.awt.Color DEFAULT_NON_CLEAR_FILL_PAINT
public ImageTile()
public ImageTile(double ullat, double ullon, double lrlat, double lrlon, ImageReader imageDecoder, CacheHandler cache)
ullat
- latitude of the top of the image.ullon
- longitude of the left side of the image.lrlat
- latitude of the bottom of the image.lrlon
- longitude of the right side of the image.imageDecoder
- ImageReader for Image.cache
- CacheHandler holding cached images.public ImageTile(double ullat, double ullon, double lrlat, double lrlon, java.awt.image.BufferedImage image)
ullat
- latitude of the top of the image.ullon
- longitude of the left side of the image.lrlat
- latitude of the bottom of the image.lrlon
- longitude of the right side of the image.image
- BufferedImage used for the image.public void setSelected(boolean setting)
OMGraphicAdapter
setSelected
in interface OMGraphic
setSelected
in class OMGraphicAdapter
protected boolean shouldFetchForProjection(Projection proj)
proj
- current projectionprotected boolean updateImageForProjection(Projection proj)
updateImageForProjection
in class OMScalingRaster
proj
- current projection.public boolean regenerate(Projection p)
OMGraphicAdapter
generate()
method. It invokes
generate()
only if needToRegenerate() on the
graphic returns true. To force a graphic to be generated, call
generate()
directly.regenerate
in interface OMGeometry
regenerate
in interface OMGraphic
regenerate
in class OMGraphicAdapter
p
- the ProjectionOMGraphicAdapter.generate(com.bbn.openmap.proj.Projection)
public ImageReader getImageDecoder()
public void setImageDecoder(ImageReader imageDecoder)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details