org.openstreetmap.josm.gui.mappaint
Class MapImage

java.lang.Object
  extended by org.openstreetmap.josm.gui.mappaint.MapImage

public class MapImage
extends java.lang.Object


Nested Class Summary
protected  class MapImage.MapImageBoxProvider
           
 
Field Summary
 int alpha
          The 5 following fields are only used to check for equality.
private  java.awt.Image disabledImg
           
 int height
           
private  java.awt.image.BufferedImage img
          ImageIcon can change while the image is loading.
 java.lang.String name
           
 StyleSource source
           
private  boolean temporary
           
 int width
           
 
Constructor Summary
MapImage(java.lang.String name, StyleSource source)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 float getAlphaFloat()
           
 BoxTextElemStyle.BoxProvider getBoxProvider()
           
 java.awt.Image getDisabled()
           
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 int getWidth()
           
 int hashCode()
           
 boolean isTemporary()
          Returns true, if image is not completely loaded and getImage() returns a temporary image.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

img

private java.awt.image.BufferedImage img
ImageIcon can change while the image is loading.


alpha

public int alpha
The 5 following fields are only used to check for equality.


name

public java.lang.String name

source

public StyleSource source

width

public int width

height

public int height

temporary

private boolean temporary

disabledImg

private java.awt.Image disabledImg
Constructor Detail

MapImage

public MapImage(java.lang.String name,
                StyleSource source)
Method Detail

getDisabled

public java.awt.Image getDisabled()

getImage

public java.awt.image.BufferedImage getImage()

getWidth

public int getWidth()

getHeight

public int getHeight()

getAlphaFloat

public float getAlphaFloat()

isTemporary

public boolean isTemporary()
Returns true, if image is not completely loaded and getImage() returns a temporary image.


getBoxProvider

public BoxTextElemStyle.BoxProvider getBoxProvider()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


JOSM