|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.ui.FixedSizeIcon
public class FixedSizeIcon
An icon having a fixed size. This icon wrappes a nested icon. If the nested Icon is smaller than the defined size, it will be shown in the center of this icon (The nested icon will get a transparent border).
Plugin.getButtonAction()| Constructor Summary | |
|---|---|
FixedSizeIcon(int width,
int height,
Icon nestedIcon)
Creates a new instance of FixedSizeIcon. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Gets the icon's height. |
int |
getIconWidth()
Gets the icon's width. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedSizeIcon(int width,
int height,
Icon nestedIcon)
width - The width the icon should have.height - The height the icon should have.nestedIcon - The nested icon to show.| Method Detail |
|---|
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Icon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconc - May be used to get properties useful for painting, e.g. the
foreground or background color.g - The graphics context to paint to.x - The x position where to paint the icony - The y position where to paint the icon
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||