| Constructor and description |
|---|
DynamicSVGIcon(String path, int size, Closure<Color> colorMapper)Creates a dynamic icon wrapper for the given SVG resource. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
getIconHeight()Returns the current icon height in pixels. |
|
int |
getIconWidth()Returns the current icon width in pixels. |
|
void |
paintIcon(Component c, Graphics g, int x, int y)Paints the enabled or disabled delegate icon for the target component. |
|
void |
refreshColors()Rebuilds this icon so it adopts current theme colours. |
|
void |
setSize(int newSize)Rebuilds this icon at a new square size. |
Returns the current icon height in pixels.
Returns the current icon width in pixels.
Paints the enabled or disabled delegate icon for the target component.
Rebuilds this icon so it adopts current theme colours.
Rebuilds this icon at a new square size.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.