|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.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,
javax.swing.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(java.awt.Component c,
java.awt.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, javax.swing.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 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 icon
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |