org.openstreetmap.josm.data.imagery
Class GeorefImage

java.lang.Object
  extended by org.openstreetmap.josm.data.imagery.GeorefImage
All Implemented Interfaces:
java.io.Serializable

public class GeorefImage
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class GeorefImage.State
           
 
Field Summary
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 Summary
GeorefImage(WMSLayer layer)
           
 
Method Summary
 void changeImage(GeorefImage.State state, java.awt.image.BufferedImage image)
           
 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 flushedResizedCachedInstance()
           
 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 setLayer(WMSLayer layer)
           
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

layer

private WMSLayer layer

state

private GeorefImage.State state

image

private java.awt.image.BufferedImage image

reImg

private java.lang.ref.SoftReference<java.awt.image.BufferedImage> reImg

xIndex

private int xIndex

yIndex

private int yIndex

transparentColor

private static final java.awt.Color transparentColor

fadeColor

private java.awt.Color fadeColor
Constructor Detail

GeorefImage

public GeorefImage(WMSLayer layer)
Method Detail

getMin

public EastNorth getMin()

getMax

public EastNorth getMax()

changePosition

public void changePosition(int xIndex,
                           int yIndex)

equalPosition

public boolean equalPosition(int xIndex,
                             int yIndex)

changeImage

public void changeImage(GeorefImage.State state,
                        java.awt.image.BufferedImage image)

createImage

private java.awt.image.BufferedImage createImage()

paint

public boolean paint(java.awt.Graphics g,
                     NavigatableComponent nc,
                     int xIndex,
                     int yIndex,
                     int leftEdge,
                     int bottomEdge)

fallbackDraw

private void fallbackDraw(java.awt.Graphics g,
                          java.awt.Image img,
                          int x,
                          int y,
                          int width,
                          int height,
                          boolean alphaChannel)

drawFadeRect

private void drawFadeRect(java.awt.Graphics g,
                          int x,
                          int y,
                          int width,
                          int height)

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

flushedResizedCachedInstance

public void flushedResizedCachedInstance()

getImage

public java.awt.image.BufferedImage getImage()

getState

public GeorefImage.State getState()

getXIndex

public int getXIndex()

getYIndex

public int getYIndex()

setLayer

public void setLayer(WMSLayer layer)


JOSM