Class ScaleAwareImageWrapperIcon
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.ScaleAwareImageWrapperIcon
- All Implemented Interfaces:
Icon, UIResource, RadianceIcon
A
UIResource variant of the resizable high-DPI aware implementation of the core
Icon interface that maintains crisp pixel-perfect appearance of icons across the entire
app.-
Nested Class Summary
Nested classes/interfaces inherited from interface RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate BufferedImageprivate final doubleprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintprivate intprivate intvoidvoidsetColorFilter(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
-
scale
private final double scale -
imageSource
-
width
private int width -
height
private int height
-
-
Constructor Details
-
ScaleAwareImageWrapperIcon
-
-
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
-
paintIcon
-
getInternalWidth
private int getInternalWidth() -
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getInternalHeight
private int getInternalHeight() -
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-