TV-Browser 2.7.5 API

tvraterplugin
Class CompositeIcon

java.lang.Object
  extended by tvraterplugin.CompositeIcon
All Implemented Interfaces:
Icon

public class CompositeIcon
extends Object
implements Icon

This class is a Wrapper for two Icons.

Author:
bodo

Constructor Summary
CompositeIcon(Icon icon1, Icon icon2)
          Creates the CompositeIcon
 
Method Summary
 int getIconHeight()
          Gets the Height
 int getIconWidth()
          Gets the 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

CompositeIcon

public CompositeIcon(Icon icon1,
                     Icon icon2)
Creates the CompositeIcon

Parameters:
icon1 - Icon 1
icon2 - Icon 2
Method Detail

getIconHeight

public int getIconHeight()
Gets the Height

Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Gets the Width

Specified by:
getIconWidth in interface Icon
Returns:
Width

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Paints the Icon

Specified by:
paintIcon in interface Icon
Parameters:
c - Component to paint on
g - Graphics-Object to use
x - X-Value
y - Y-Value

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)