Class BladeTransitionAwareRadianceIcon
java.lang.Object
org.pushingpixels.radiance.component.internal.theming.common.BladeTransitionAwareRadianceIcon
- All Implemented Interfaces:
Icon
,RadianceIcon
Icon with transition-aware capabilities. Has a delegate that does the actual
painting based on the transition themes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The delegate needs to implement the method in this interface based on the provided theme.static interface
Nested classes/interfaces inherited from interface org.pushingpixels.radiance.common.api.icon.RadianceIcon
RadianceIcon.ColorFilter, RadianceIcon.Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComponent
The associated component.Delegate to compute the actual icons.protected int
The height of the rendered image.private BladeColorScheme
protected int
The width of the rendered image. -
Constructor Summary
ConstructorsConstructorDescriptionBladeTransitionAwareRadianceIcon
(JCommandButton button, BladeTransitionAwareRadianceIcon.StateTransitionTrackerDelegate stateTransitionTrackerDelegate, BladeTransitionAwareRadianceIcon.Delegate delegate, Dimension initialDim) Creates a new transition-aware 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
protected int widthThe width of the rendered image. -
height
protected int heightThe height of the rendered image. -
comp
The associated component. -
stateTransitionTrackerDelegate
private BladeTransitionAwareRadianceIcon.StateTransitionTrackerDelegate stateTransitionTrackerDelegate -
delegate
Delegate to compute the actual icons. -
mutableColorScheme
-
-
Constructor Details
-
BladeTransitionAwareRadianceIcon
public BladeTransitionAwareRadianceIcon(JCommandButton button, BladeTransitionAwareRadianceIcon.StateTransitionTrackerDelegate stateTransitionTrackerDelegate, BladeTransitionAwareRadianceIcon.Delegate delegate, Dimension initialDim) Creates a new transition-aware icon.- Parameters:
button
- Associated command button.stateTransitionTrackerDelegate
- State transition tracker delegatedelegate
- 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
-