Class AbstractGraphicImage
- java.lang.Object
-
- com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage
-
- All Implemented Interfaces:
ReferencedImage,Disposable,AlphaSetting
- Direct Known Subclasses:
CommonsImage,IOGraphicImage,JAIGraphicImage
public abstract class AbstractGraphicImage extends Object implements ReferencedImage, Disposable, AlphaSetting
An image whose source is a bitmap Much of this code was donated by Larry Becker and Robert Littlefield of Integrated Systems Analysts, Inc.
-
-
Constructor Summary
Constructors Constructor Description AbstractGraphicImage(String location, WorldFile wf)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static voidclose(Closeable is)voiddispose()intgetAlpha()org.locationtech.jts.geom.EnvelopegetEnvelope()BufferedImagegetImage()StringgetLoader()StringgetType()StringgetUri()protected abstract voidinitImage()voidpaint(Feature f, Graphics2D g, Viewport viewport)voidsetAlpha(int alpha)voidsetImage(BufferedImage image)voidsetType(String type)
-
-
-
Field Detail
-
uristring
protected String uristring
-
image
protected BufferedImage image
-
wf
protected WorldFile wf
-
initialload
protected boolean initialload
-
env
protected org.locationtech.jts.geom.Envelope env
-
type
protected String type
-
loader
protected String loader
-
-
Method Detail
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope() throws ReferencedImageException- Specified by:
getEnvelopein interfaceReferencedImage- Throws:
ReferencedImageException
-
paint
public void paint(Feature f, Graphics2D g, Viewport viewport) throws ReferencedImageException
- Specified by:
paintin interfaceReferencedImage- Throws:
ReferencedImageException
-
setType
public void setType(String type)
-
getType
public String getType()
- Specified by:
getTypein interfaceReferencedImage
-
getLoader
public String getLoader()
- Specified by:
getLoaderin interfaceReferencedImage
-
getUri
public String getUri()
-
getImage
public BufferedImage getImage()
-
setImage
public void setImage(BufferedImage image)
-
initImage
protected abstract void initImage() throws ReferencedImageException- Throws:
ReferencedImageException
-
close
public static void close(Closeable is)
-
dispose
public void dispose()
- Specified by:
disposein interfaceDisposable
-
getAlpha
public int getAlpha()
- Specified by:
getAlphain interfaceAlphaSetting
-
setAlpha
public void setAlpha(int alpha)
- Specified by:
setAlphain interfaceAlphaSetting
-
-