Package be.gaudry.model.drawing
Class MissingIcon
java.lang.Object
be.gaudry.model.drawing.MissingIcon
- All Implemented Interfaces:
Icon
The "missing icon" is a white box with a black border and a red x. It's used
to display something when there are errors on loading an icon from an external
location.
Provided by the broldev.core.model project.
- Since:
- 1.0 Feb 27, 2009, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 Feb 27, 2009
- Author:
- Steph GAUDRY
-
Constructor Summary
ConstructorDescriptionCreates a new white box with a black border and a red x with a default size of 32x32.MissingIcon(int width, int height)
Creates a new white box with a black border and a red x.MissingIcon(IBrolImage brolImage)
Creates a new white box with a black border and a red x. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
-
Constructor Details
-
MissingIcon
public MissingIcon()Creates a new white box with a black border and a red x with a default size of 32x32. -
MissingIcon
public MissingIcon(int width, int height)Creates a new white box with a black border and a red x. If one parameter is less than 0, it will be set to 0.- Parameters:
width
- width of the placeholderheight
- height of the placeholder
-
MissingIcon
Creates a new white box with a black border and a red x. The icon's dimensions are given by theIBrolImage
parameter. If one parameter is less than 0, it will be set to 0. See thelogging information
to know how the logging is implemented.w the logging is implemented.- Parameters:
brolImage
- for wich the associated resource is not available
-
-
Method Details
-
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-