public class GeorefImage extends java.lang.Object implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
GeorefImage.State |
Modifier and Type | Field and Description |
---|---|
private java.awt.Color |
fadeColor |
private java.awt.image.BufferedImage |
image |
private WMSLayer |
layer |
private java.lang.ref.SoftReference<java.awt.image.BufferedImage> |
reImg |
private static long |
serialVersionUID |
private GeorefImage.State |
state |
private static java.awt.Color |
transparentColor |
private int |
xIndex |
private int |
yIndex |
Constructor and Description |
---|
GeorefImage(WMSLayer layer) |
Modifier and Type | Method and Description |
---|---|
void |
changeImage(GeorefImage.State state,
java.awt.image.BufferedImage image,
java.lang.String errorMsg) |
void |
changePosition(int xIndex,
int yIndex) |
private java.awt.image.BufferedImage |
createImage() |
private void |
drawFadeRect(java.awt.Graphics g,
int x,
int y,
int width,
int height) |
boolean |
equalPosition(int xIndex,
int yIndex) |
private void |
fallbackDraw(java.awt.Graphics g,
java.awt.Image img,
int x,
int y,
int width,
int height,
boolean alphaChannel) |
void |
flushResizedCachedInstance() |
java.awt.image.BufferedImage |
getImage() |
EastNorth |
getMax() |
EastNorth |
getMin() |
GeorefImage.State |
getState() |
int |
getXIndex() |
int |
getYIndex() |
boolean |
paint(java.awt.Graphics g,
NavigatableComponent nc,
int xIndex,
int yIndex,
int leftEdge,
int bottomEdge) |
private void |
readObject(java.io.ObjectInputStream in) |
void |
resetImage()
Resets this image to initial state and release all resources being used.
|
void |
setLayer(WMSLayer layer) |
private void |
writeObject(java.io.ObjectOutputStream out) |
private static final long serialVersionUID
private GeorefImage.State state
private java.awt.image.BufferedImage image
private java.lang.ref.SoftReference<java.awt.image.BufferedImage> reImg
private int xIndex
private int yIndex
private static final java.awt.Color transparentColor
private java.awt.Color fadeColor
public GeorefImage(WMSLayer layer)
public void changePosition(int xIndex, int yIndex)
public boolean equalPosition(int xIndex, int yIndex)
public void resetImage()
public void changeImage(GeorefImage.State state, java.awt.image.BufferedImage image, java.lang.String errorMsg)
private java.awt.image.BufferedImage createImage()
public boolean paint(java.awt.Graphics g, NavigatableComponent nc, int xIndex, int yIndex, int leftEdge, int bottomEdge)
private void fallbackDraw(java.awt.Graphics g, java.awt.Image img, int x, int y, int width, int height, boolean alphaChannel)
private void drawFadeRect(java.awt.Graphics g, int x, int y, int width, int height)
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public void flushResizedCachedInstance()
public java.awt.image.BufferedImage getImage()
public GeorefImage.State getState()
public int getXIndex()
public int getYIndex()