public class MapImage extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
MapImage.MapImageBoxProvider |
Modifier and Type | Field and Description |
---|---|
int |
alpha
The 5 following fields are only used to check for equality.
|
private java.awt.Image |
disabledImgCache |
int |
height |
private java.awt.image.BufferedImage |
img
ImageIcon can change while the image is loading.
|
private static int |
MAX_SIZE |
java.lang.String |
name |
StyleSource |
source |
private boolean |
temporary |
int |
width |
Constructor and Description |
---|
MapImage(java.lang.String name,
StyleSource source) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
float |
getAlphaFloat() |
BoxTextElemStyle.BoxProvider |
getBoxProvider() |
java.awt.Image |
getDisabled() |
java.awt.Image |
getDisplayedNodeIcon(boolean disabled)
Returns the really displayed node icon for this
MapImage . |
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.
|
private boolean |
mustRescale(java.awt.Image image) |
java.lang.String |
toString() |
private static final int MAX_SIZE
private java.awt.image.BufferedImage img
public int alpha
public java.lang.String name
public StyleSource source
public int width
public int height
private boolean temporary
private java.awt.Image disabledImgCache
public MapImage(java.lang.String name, StyleSource source)
public java.awt.Image getDisabled()
public java.awt.image.BufferedImage getImage()
public int getWidth()
public int getHeight()
public float getAlphaFloat()
public boolean isTemporary()
public BoxTextElemStyle.BoxProvider getBoxProvider()
public java.awt.Image getDisplayedNodeIcon(boolean disabled)
MapImage
.disabled
- true to request disabled version, false
for the standard versionprivate boolean mustRescale(java.awt.Image image)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object