-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIconHeight(SynthContext context)
Returns the icon's height for the given synth context.int
getIconWidth(SynthContext context)
Returns the icon's width for the given synth context.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.-
Methods declared in interface javax.swing.Icon
getIconHeight, getIconWidth, paintIcon
-
-
-
-
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
-SynthContext
requesting 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
-SynthContext
requesting the Icon, may be null.- Returns:
- an int specifying the height of the icon.
-
-