Class CommandButtonFollowColorSchemeIcon
- java.lang.Object
-
- org.pushingpixels.radiance.component.api.common.icon.CommandButtonFollowColorSchemeIcon
-
- All Implemented Interfaces:
javax.swing.Icon,org.pushingpixels.radiance.common.api.icon.RadianceIcon
public class CommandButtonFollowColorSchemeIcon extends java.lang.Object implements org.pushingpixels.radiance.common.api.icon.RadianceIconImplementation ofRadianceIconfor 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 Classes Modifier and Type Class Description static interfaceCommandButtonFollowColorSchemeIcon.DelegateThe delegate needs to implement the method in this interface based on the provided color scheme.
-
Constructor Summary
Constructors Constructor Description CommandButtonFollowColorSchemeIcon(CommandButtonFollowColorSchemeIcon.Delegate delegate, java.awt.Dimension initialDim)CommandButtonFollowColorSchemeIcon(org.pushingpixels.radiance.theming.api.RadianceThemingSlices.ColorSchemeAssociationKind colorSchemeAssociationKind, CommandButtonFollowColorSchemeIcon.Delegate delegate, java.awt.Dimension initialDim)Creates a new icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)voidsetColorFilter(org.pushingpixels.radiance.common.api.icon.RadianceIcon.ColorFilter colorFilter)voidsetDimension(java.awt.Dimension newDimension)booleansupportsColorFilter()
-
-
-
Constructor Detail
-
CommandButtonFollowColorSchemeIcon
public CommandButtonFollowColorSchemeIcon(CommandButtonFollowColorSchemeIcon.Delegate delegate, java.awt.Dimension initialDim)
-
CommandButtonFollowColorSchemeIcon
public CommandButtonFollowColorSchemeIcon(org.pushingpixels.radiance.theming.api.RadianceThemingSlices.ColorSchemeAssociationKind colorSchemeAssociationKind, CommandButtonFollowColorSchemeIcon.Delegate delegate, java.awt.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 Detail
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)- Specified by:
paintIconin interfacejavax.swing.Icon
-
setDimension
public void setDimension(java.awt.Dimension newDimension)
- Specified by:
setDimensionin interfaceorg.pushingpixels.radiance.common.api.icon.RadianceIcon
-
supportsColorFilter
public boolean supportsColorFilter()
- Specified by:
supportsColorFilterin interfaceorg.pushingpixels.radiance.common.api.icon.RadianceIcon
-
setColorFilter
public void setColorFilter(org.pushingpixels.radiance.common.api.icon.RadianceIcon.ColorFilter colorFilter)
- Specified by:
setColorFilterin interfaceorg.pushingpixels.radiance.common.api.icon.RadianceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
-