Modifier and Type | Method and Description |
---|---|
default int |
getIconHeight()
Returns the icon's height.
|
int |
getIconHeight(SynthContext context)
Returns the icon's height for the given synth context.
|
default int |
getIconWidth()
Returns the icon's width.
|
int |
getIconWidth(SynthContext context)
Returns the icon's width for the given synth context.
|
default void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location.
|
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.
|
void paintIcon(SynthContext context, Graphics g, int x, int y, int width, int height)
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 0int getIconWidth(SynthContext context)
context
- SynthContext
requesting the Icon, may be null.int getIconHeight(SynthContext context)
context
- SynthContext
requesting the Icon, may be null.default void paintIcon(Component c, Graphics g, int x, int y)
Icon
default int getIconWidth()
Icon
getIconWidth
in interface Icon
default int getIconHeight()
Icon
getIconHeight
in interface Icon
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait