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 Image |
disabledImg |
int |
height |
private BufferedImage |
img
ImageIcon can change while the image is loading.
|
private static int |
MAX_SIZE |
String |
name |
StyleSource |
source |
private boolean |
temporary |
int |
width |
Constructor and Description |
---|
MapImage(String name,
StyleSource source) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
float |
getAlphaFloat() |
BoxTextElemStyle.BoxProvider |
getBoxProvider() |
Image |
getDisabled() |
Image |
getDisplayedNodeIcon(boolean disabled)
Returns the really displayed node icon for this
MapImage . |
int |
getHeight() |
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(Image image) |
String |
toString() |
private static final int MAX_SIZE
private BufferedImage img
public int alpha
public StyleSource source
public int width
public int height
private boolean temporary
private Image disabledImg
public MapImage(String name, StyleSource source)
public Image getDisabled()
public BufferedImage getImage()
public int getWidth()
public int getHeight()
public float getAlphaFloat()
public boolean isTemporary()
public BoxTextElemStyle.BoxProvider getBoxProvider()
public Image getDisplayedNodeIcon(boolean disabled)
MapImage
.disabled
- true to request disabled version, false
for the standard versionprivate boolean mustRescale(Image image)