SynthContext. Subclasses need only implement
the variants that take a SynthContext, but must be prepared for the
SynthContext to be null.
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: an int specifying the height of the icon.SynthContext requesting the Icon, may be null.Returns the icon's height for the given synth context. |
| public default int | |
| public int | Returns: an int specifying the width of the icon.SynthContext requesting the Icon, may be null.Returns the icon's width for the given synth context. |
| public default int | |
| public void | paintIcon(SynthContext
identifies hosting region, may be null. context, Graphics the graphics context g, int the x location to paint to x, int the y location to paint to y, int the width of the region to paint to, may be 0 width, int the height of the region to paint to, may be 0 height)Paints the icon at the specified location for the given synth context. |
| public default void | paintIcon(Component c, Graphics g, int x, int y)
Implements javax. Draw the icon at the specified location. |
| getIconHeight | back to summary |
|---|---|
| public int getIconHeight(SynthContext context) Returns the icon's height for the given synth context.
| |
| getIconHeight | back to summary |
|---|---|
| public default int getIconHeight() Implements javax. Doc from javax. Returns the icon's height.
| |
| getIconWidth | back to summary |
|---|---|
| public int getIconWidth(SynthContext context) Returns the icon's width for the given synth context.
| |
| getIconWidth | back to summary |
|---|---|
| public default int getIconWidth() Implements javax. Doc from javax. Returns the icon's width.
| |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(SynthContext context, Graphics g, int x, int y, int width, int height) Paints the icon at the specified location for the given synth context.
| |
| paintIcon | back to summary |
|---|---|
| public default void paintIcon(Component c, Graphics g, int x, int y) Implements javax. Doc from javax. Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.
| |