public class PictureAreaIcon
extends java.lang.Object
implements javax.swing.Icon
Modifier and Type | Field and Description |
---|---|
(package private) int |
mWidth |
Constructor and Description |
---|
PictureAreaIcon()
Constructor for programs with no picture or if pictures for
a program should not be shown.
|
PictureAreaIcon(Program p,
java.awt.Font f,
int width,
boolean showDescription,
boolean grayFilter,
boolean zoom)
Constructor for programs with picture.
|
PictureAreaIcon(Program p,
java.awt.Font f,
int width,
boolean showDescription,
boolean grayFilter,
boolean zoom,
boolean showPictureBorder)
Constructor for programs with picture.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public PictureAreaIcon()
public PictureAreaIcon(Program p, java.awt.Font f, int width, boolean showDescription, boolean grayFilter, boolean zoom)
p
- The program with the picture.f
- The font for the description.width
- The width of this area.showDescription
- If description should be shown.grayFilter
- If the image should be filtered to gray if the program is expired.zoom
- If the picture should be zoomed to width.public PictureAreaIcon(Program p, java.awt.Font f, int width, boolean showDescription, boolean grayFilter, boolean zoom, boolean showPictureBorder)
p
- The program with the picture.f
- The font for the description.width
- The width of this area.showDescription
- If description should be shown.grayFilter
- If the image should be filtered to gray if the program is expired.zoom
- If the picture should be zoomed to width.showPictureBorder
- public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
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
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)