Class CommandButtonFollowColorSchemeIcon
java.lang.Object
org.pushingpixels.radiance.component.api.common.icon.CommandButtonFollowColorSchemeIcon
- All Implemented Interfaces:
Icon
,RadianceIcon
Implementation of
RadianceIcon
for command buttons that wish to have their icon
be dynamically rendered at runtime based on the color scheme that matches the current
transition-aware state.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The delegate needs to implement the method in this interface based on the provided color scheme.Nested classes/interfaces inherited from interface org.pushingpixels.radiance.common.api.icon.RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The height of the rendered image.private BladeColorScheme
private int
The width of the rendered image. -
Constructor Summary
ConstructorsConstructorDescriptionCommandButtonFollowColorSchemeIcon
(CommandButtonFollowColorSchemeIcon.Delegate delegate, Dimension initialDim) CommandButtonFollowColorSchemeIcon
(RadianceThemingSlices.ColorSchemeAssociationKind colorSchemeAssociationKind, CommandButtonFollowColorSchemeIcon.Delegate delegate, Dimension initialDim) Creates a new icon. -
Method Summary
Modifier and TypeMethodDescriptionint
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
private int widthThe width of the rendered image. -
height
private int heightThe height of the rendered image. -
colorSchemeAssociationKind
-
delegate
-
mutableColorScheme
-
-
Constructor Details
-
CommandButtonFollowColorSchemeIcon
public CommandButtonFollowColorSchemeIcon(CommandButtonFollowColorSchemeIcon.Delegate delegate, Dimension initialDim) -
CommandButtonFollowColorSchemeIcon
public CommandButtonFollowColorSchemeIcon(RadianceThemingSlices.ColorSchemeAssociationKind colorSchemeAssociationKind, CommandButtonFollowColorSchemeIcon.Delegate delegate, Dimension initialDim) Creates a new icon.- Parameters:
colorSchemeAssociationKind
- Color scheme association kind to use for determining the color scheme for this icon.delegate
- Delegate to compute the actual icons.initialDim
- Initial icon dimension.
-
-
Method Details
-
paintIcon
-
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
-