com.borland.primetime.ui
Class CompositeIcon

java.lang.Object
  |
  +--com.borland.primetime.ui.CompositeIcon
All Implemented Interfaces:
javax.swing.Icon

public class CompositeIcon
extends java.lang.Object
implements javax.swing.Icon

This class provides an Icon that is a composite of a number of other icons. It paints them one at a time, in order, from first to last.


Constructor Summary
CompositeIcon(javax.swing.Icon[] icons)
          Construct a new composite icon from an array of icons.
 
Method Summary
 int getIconHeight()
          Return the height of the composite icon.
 int getIconWidth()
          Return the width of the composite icon.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Override to paint the composite icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeIcon

public CompositeIcon(javax.swing.Icon[] icons)
Construct a new composite icon from an array of icons.
Parameters:
icons - An array of Icon objects.
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Override to paint the composite icon.
Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - Component to paint.
g - Graphics object to paint with.
x - Left coordinate.
y - Top coordinate.

getIconWidth

public int getIconWidth()
Return the width of the composite icon.
Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
Width of the icon.

getIconHeight

public int getIconHeight()
Return the height of the composite icon.
Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
Height of the icon.