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 org.pushingpixels.radiance.common.api.icon.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.Factory
factory()
int
int
void
void
setColorFilter
(RadianceIcon.ColorFilter colorFilter) void
setDimension
(Dimension newDimension) Changes the dimension ofthis
icon.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pushingpixels.radiance.common.api.icon.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:RadianceIcon
Changes the dimension ofthis
icon.- Specified by:
setDimension
in interfaceRadianceIcon
- Parameters:
newDimension
- New dimension forthis
icon.
-
supportsColorFilter
public boolean supportsColorFilter()- Specified by:
supportsColorFilter
in interfaceRadianceIcon
-
setColorFilter
- Specified by:
setColorFilter
in interfaceRadianceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
paintIcon
-
factory
-