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 org.pushingpixels.radiance.common.api.icon.RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private BufferedImage
private final double
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
private int
private 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
-
scale
private final double scale -
imageSource
-
width
private int width -
height
private int height
-
-
Constructor Details
-
ScaleAwareImageWrapperIcon
-
-
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
-
paintIcon
-
getInternalWidth
private int getInternalWidth() -
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getInternalHeight
private int getInternalHeight() -
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-