- All Superinterfaces:
- Icon
public interface SynthIcon extends Icon
An icon that is passed a 
SynthContext. Subclasses need only implement
 the variants that take a SynthContext, but must be prepared for the
 SynthContext to be null.- 
Method SummaryModifier and Type Method Description intgetIconHeight(SynthContext context)Returns the icon's height for the given synth context.intgetIconWidth(SynthContext context)Returns the icon's width for the given synth context.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 Details- 
paintIconPaints the icon at the specified location for the given synth context.- Parameters:
- context- identifies hosting region, may be null.
- g- the graphics context
- x- the x location to paint to
- y- the y location to paint to
- width- the width of the region to paint to, may be 0
- height- the height of the region to paint to, may be 0
 
- 
getIconWidthReturns 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.
 
- 
getIconHeightReturns 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.
 
 
-