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