edu.washington.biostr.sig.brainj3d.icons
Class CompositeIcon

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.icons.CompositeIcon
All Implemented Interfaces:
Serializable, Icon

public class CompositeIcon
extends Object
implements Icon, Serializable

A composite icon represents a set of multiple icons that can be painted together on a component.

Author:
eider
See Also:
Serialized Form

Constructor Summary
CompositeIcon()
           
 
Method Summary
 void addIcon(Icon icon, int x, int y)
          Add an icon to this composite.
 void addIcon(Icon icon, int x, int y, int index)
          Add a composite icon at the specified index, later indices are painted on top of earlier indices.
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void redoSize()
           
 Point removeIcon(Icon icon)
          Remove an icon from this composite, but do not change the size or refresh any components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeIcon

public CompositeIcon()
Method Detail

paintIcon

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

getIconWidth

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

getIconHeight

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

addIcon

public void addIcon(Icon icon,
                    int x,
                    int y)
Add an icon to this composite.

Parameters:
icon -
x -
y -

addIcon

public void addIcon(Icon icon,
                    int x,
                    int y,
                    int index)
Add a composite icon at the specified index, later indices are painted on top of earlier indices.

Parameters:
icon -
x -
y -
index -

removeIcon

public Point removeIcon(Icon icon)
Remove an icon from this composite, but do not change the size or refresh any components.

Parameters:
icon -

redoSize

public void redoSize()


Copyright © 2006 University of Washington. All Rights Reserved.