public abstract class AbstractGraphicImage extends java.lang.Object implements ReferencedImage, Disposable, AlphaSetting
Modifier and Type | Field and Description |
---|---|
protected com.vividsolutions.jts.geom.Envelope |
env |
protected java.awt.image.BufferedImage |
image |
protected boolean |
initialload |
protected java.lang.String |
loader |
protected java.lang.String |
type |
protected java.lang.String |
uristring |
protected WorldFile |
wf |
Constructor and Description |
---|
AbstractGraphicImage(java.lang.String location,
WorldFile wf) |
Modifier and Type | Method and Description |
---|---|
static void |
close(java.io.Closeable is) |
void |
dispose() |
int |
getAlpha() |
com.vividsolutions.jts.geom.Envelope |
getEnvelope() |
java.awt.image.BufferedImage |
getImage() |
java.lang.String |
getLoader() |
java.lang.String |
getType() |
java.lang.String |
getUri() |
protected abstract void |
initImage() |
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
void |
setAlpha(int alpha) |
void |
setImage(java.awt.image.BufferedImage image) |
void |
setType(java.lang.String type) |
protected java.lang.String uristring
protected java.awt.image.BufferedImage image
protected WorldFile wf
protected boolean initialload
protected com.vividsolutions.jts.geom.Envelope env
protected java.lang.String type
protected java.lang.String loader
public AbstractGraphicImage(java.lang.String location, WorldFile wf)
public com.vividsolutions.jts.geom.Envelope getEnvelope() throws ReferencedImageException
getEnvelope
in interface ReferencedImage
ReferencedImageException
public void paint(Feature f, java.awt.Graphics2D g, Viewport viewport) throws ReferencedImageException
paint
in interface ReferencedImage
ReferencedImageException
public void setType(java.lang.String type)
public java.lang.String getType()
getType
in interface ReferencedImage
public java.lang.String getLoader()
getLoader
in interface ReferencedImage
public java.lang.String getUri()
public java.awt.image.BufferedImage getImage()
public void setImage(java.awt.image.BufferedImage image)
protected abstract void initImage() throws ReferencedImageException
ReferencedImageException
public static void close(java.io.Closeable is)
public void dispose()
dispose
in interface Disposable
public int getAlpha()
getAlpha
in interface AlphaSetting
public void setAlpha(int alpha)
setAlpha
in interface AlphaSetting