| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | getIconHeight(SynthContext context)
Implements javax. Returns the icon's height for the given synth context. |
| public int | getIconWidth(SynthContext context)
Implements javax. Returns the icon's width for the given synth context. |
| private static Painter | |
| public void | paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the icon at the specified location for the given synth context. |
| public void | paintIcon(Component c, Graphics g, int x, int y)
Overrides default javax. Implements the standard Icon interface's paintIcon method as the standard synth stub passes null for the context and this will cause us to not paint any thing, so we override here so that we can paint the enabled state if no synth context is available |
| private int | Returns: The scaled size or original if "JComponent.sizeVariant" is not setThe synthContext to get the component from context, int The size to scale size)Scale a size based on the "JComponent.sizeVariant" client property of the component that is using this icon |
| height | back to summary |
|---|---|
| private int height | |
| key | back to summary |
|---|---|
| private String key | |
| prefix | back to summary |
|---|---|
| private String prefix | |
| width | back to summary |
|---|---|
| private int width | |
| NimbusIcon | back to summary |
|---|---|
| pack-priv NimbusIcon(String prefix, String key, int w, int h) | |
| getIconHeight | back to summary |
|---|---|
| public int getIconHeight(SynthContext context) Implements javax. Doc from javax. Returns the icon's height for the given synth context.
| |
| getIconWidth | back to summary |
|---|---|
| public int getIconWidth(SynthContext context) Implements javax. Doc from javax. Returns the icon's width for the given synth context.
| |
| paintFilter | back to summary |
|---|---|
private static Painter
| |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the icon at the specified location for the given synth context.
| |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(Component c, Graphics g, int x, int y) Overrides default javax. Implements the standard Icon interface's paintIcon method as the standard synth stub passes null for the context and this will cause us to not paint any thing, so we override here so that we can paint the enabled state if no synth context is available
| |
| scale | back to summary |
|---|---|
| private int scale(SynthContext context, int size) Scale a size based on the "JComponent.sizeVariant" client property of the component that is using this icon
| |