JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
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 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 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
paintIcon
default void paintIcon(Component c,
Graphics g,
int x,
int y)
Description copied from interface: Icon
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.
Specified by:
paintIcon
in interface Icon
Parameters:
c
- a Component
to get properties useful for painting
g
- the graphics context
x
- the X coordinate of the icon's top-left corner
y
- the Y coordinate of the icon's top-left corner
JavaScript is disabled on your browser.
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.