Class ColorRadianceIcon
java.lang.Object
org.pushingpixels.radiance.component.api.common.icon.ColorRadianceIcon
- All Implemented Interfaces:
Icon, RadianceIcon
Implementation of
RadianceIcon that fills the icon with a solid
color.-
Nested Class Summary
Nested classes/interfaces inherited from interface RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionColorRadianceIcon(int initialDim, Color color) Creates a new empty color icon of the specified size and color.ColorRadianceIcon(Dimension initialDim, Color color) Creates a new empty color icon of the specified size and color. -
Method Summary
Modifier and TypeMethodDescriptionstatic RadianceIcon.FactoryintintvoidvoidsetColorFilter(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. -
color
Fill color
-
-
Constructor Details
-
ColorRadianceIcon
-
ColorRadianceIcon
Creates a new empty color icon of the specified size and color.- Parameters:
initialDim- Initial dimension of the icon.color- fill color.
-
-
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
-