public class FixedSizeIcon
extends java.lang.Object
implements javax.swing.Icon
Plugin.getButtonAction()
Constructor and Description |
---|
FixedSizeIcon(int width,
int height,
javax.swing.Icon nestedIcon)
Creates a new instance of FixedSizeIcon.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Gets the icon's height.
|
int |
getIconWidth()
Gets the icon's width.
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paints the icon.
|
public FixedSizeIcon(int width, int height, javax.swing.Icon nestedIcon)
width
- The width the icon should have.height
- The height the icon should have.nestedIcon
- The nested icon to show.public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- 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 iconTV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)