20 package net.sf.gridarta.gui.dialog.plugin;
22 import java.awt.Component;
23 import java.awt.Graphics;
24 import javax.swing.Icon;
25 import org.jetbrains.annotations.NotNull;
46 height = icon.getIconHeight();
47 width = icon.getIconWidth();
65 public void paintIcon(@NotNull
final Component c, @NotNull
final Graphics g,
final int x,
final int y) {
68 icon.paintIcon(c, g, x, y + 1);
83 public boolean contains(
final int xEvent,
final int yEvent) {
84 return x <= xEvent && xEvent <= x + width && y <= yEvent && yEvent <= y +
height;
ClosingIcon(@NotNull final Icon icon)
the idea for this class stems from limewire's CancelSearchIconProxy class, thanks for going open sour...
boolean contains(final int xEvent, final int yEvent)
Returns whether.
void paintIcon(@NotNull final Component c, @NotNull final Graphics g, final int x, final int y)
Overwrites paintIcon to get hold of the coordinates of the icon, this is a rather rude approach just ...