-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetIconHeight()Returns the icon's height.intgetIconHeight(SynthContext context)Returns the icon's height for the given synth context.default intgetIconWidth()Returns the icon's width.intgetIconWidth(SynthContext context)Returns the icon's width for the given synth context.default voidpaintIcon(Component c, Graphics g, int x, int y)Draw the icon at the specified location.voidpaintIcon(SynthContext context, Graphics g, int x, int y, int width, int height)Paints the icon at the specified location for the given synth context.
-
-
-
Method Detail
-
paintIcon
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.- Parameters:
context- identifies hosting region, may be null.g- the graphics contextx- the x location to paint toy- the y location to paint towidth- the width of the region to paint to, may be 0height- the height of the region to paint to, may be 0
-
getIconWidth
int getIconWidth(SynthContext context)
Returns the icon's width for the given synth context.- Parameters:
context-SynthContextrequesting the Icon, may be null.- Returns:
- an int specifying the width of the icon.
-
getIconHeight
int getIconHeight(SynthContext context)
Returns the icon's height for the given synth context.- Parameters:
context-SynthContextrequesting the Icon, may be null.- Returns:
- an int specifying the height of the icon.
-
paintIcon
default void paintIcon(Component c, Graphics g, int x, int y)
Description copied from interface:IconDraw 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.
-
getIconWidth
default int getIconWidth()
Description copied from interface:IconReturns the icon's width.- Specified by:
getIconWidthin interfaceIcon- Returns:
- an int specifying the fixed width of the icon.
-
getIconHeight
default int getIconHeight()
Description copied from interface:IconReturns the icon's height.- Specified by:
getIconHeightin interfaceIcon- Returns:
- an int specifying the fixed height of the icon.
-
-