edu.rice.cs.util.swing
Class LayeredIcon

java.lang.Object
  extended by edu.rice.cs.util.swing.LayeredIcon
All Implemented Interfaces:
Icon

public class LayeredIcon
extends Object
implements Icon


Field Summary
private  int _h
           
private  Icon[] _layers
           
private  int _w
           
private  int[] _xoffs
           
private  int[] _yoffs
           
 
Constructor Summary
LayeredIcon(Icon[] layers, int[] x, int[] y)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 Icon[] getLayers()
           
 int[] getXOffsets()
           
 int[] getYOffsets()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_layers

private Icon[] _layers

_xoffs

private int[] _xoffs

_yoffs

private int[] _yoffs

_w

private int _w

_h

private int _h
Constructor Detail

LayeredIcon

public LayeredIcon(Icon[] layers,
                   int[] x,
                   int[] y)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getLayers

public Icon[] getLayers()

getXOffsets

public int[] getXOffsets()

getYOffsets

public int[] getYOffsets()