Mp3dings 
20100427

de.mospace.swing.icon
Class PopupIcon

java.lang.Object
  extended by de.mospace.swing.icon.PopupIcon
All Implemented Interfaces:
Icon

public class PopupIcon
extends Object
implements Icon

A Java icon with a black triangle pointing downwards, similar to the combo box control for displaying the combo box selection.

Version:
$Revision: 12 $ ($Date: 2007-07-27 11:48:53 +0200 (Fr, 27 Jul 2007) $)
Author:
Moritz Ringler

Constructor Summary
PopupIcon()
          Constructs a new PopupIcon that has the default size.
PopupIcon(int size)
          Constructs a new PopupIcon with the specified size.
 
Method Summary
 int getIconHeight()
          Gets the height of this icon.
 int getIconWidth()
          Gets the width of this icon.
 void paintIcon(Component c, Graphics g, int xo, int yo)
          Paints this icon on the specified graphics object at the specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupIcon

public PopupIcon()
Constructs a new PopupIcon that has the default size.


PopupIcon

public PopupIcon(int size)
Constructs a new PopupIcon with the specified size.

Parameters:
size - the width and height of the new icon
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int xo,
                      int yo)
Paints this icon on the specified graphics object at the specified location.

Specified by:
paintIcon in interface Icon
Parameters:
c - ignored, may be null
g - the graphics object to paint on
xo - the x-offset for this icon
yo - the y-offset for this icon

getIconWidth

public int getIconWidth()
Gets the width of this icon.

Specified by:
getIconWidth in interface Icon
Returns:
the width of this icon

getIconHeight

public int getIconHeight()
Gets the height of this icon.

Specified by:
getIconHeight in interface Icon
Returns:
the height of this icon

Mp3dings 
20100427