Class EmptyRadianceIcon
java.lang.Object
org.pushingpixels.radiance.component.api.common.icon.EmptyRadianceIcon
- All Implemented Interfaces:
Icon, RadianceIcon
Implementation of
RadianceIcon that paints nothing.-
Nested Class Summary
Nested classes/interfaces inherited from interface RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmptyRadianceIcon(int initialDim) Creates a new empty resizable icon of the specified size.EmptyRadianceIcon(Dimension initialDim) Creates a new empty resizable icon of the specified size. -
Method Summary
Modifier and TypeMethodDescriptionstatic RadianceIcon.Factoryfactory()intintvoidvoidsetColorFilter(RadianceIcon.ColorFilter colorFilter) voidsetDimension(Dimension newDimension) Changes the dimension ofthisicon.booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RadianceIcon
toImage
-
Field Details
-
width
protected int widthThe current icon width. -
height
protected int heightThe current icon height.
-
-
Constructor Details
-
EmptyRadianceIcon
Creates a new empty resizable icon of the specified size.- Parameters:
initialDim- Initial dimension of the icon.
-
EmptyRadianceIcon
public EmptyRadianceIcon(int initialDim) Creates a new empty resizable icon of the specified size.- Parameters:
initialDim- Initial dimension of the icon.
-
-
Method Details
-
setDimension
Description copied from interface:RadianceIconChanges the dimension ofthisicon.- Specified by:
setDimensionin interfaceRadianceIcon- Parameters:
newDimension- New dimension forthisicon.
-
supportsColorFilter
public boolean supportsColorFilter()- Specified by:
supportsColorFilterin interfaceRadianceIcon
-
setColorFilter
- Specified by:
setColorFilterin interfaceRadianceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
paintIcon
-
factory
-