com.imagero.swing.icons
Class CollectIcon

java.lang.Object
  extended bycom.imagero.swing.icons.CollectIcon
All Implemented Interfaces:
javax.swing.Icon

public abstract class CollectIcon
extends java.lang.Object
implements javax.swing.Icon

CollectIcon. CollectIcon contains some SaveBoundsIcon and computes sum of their dimensions in vertical or horizontal direction.


Field Summary
protected  boolean vertical
           
 
Constructor Summary
CollectIcon()
           
 
Method Summary
protected abstract  SaveBoundsIcon getIcon(int index)
           
 SaveBoundsIcon getIcon(int x, int y)
           
protected abstract  int getIconCount()
           
 int getIconHeight()
           
 int getIconWidth()
           
 boolean isVertical()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setVertical(boolean vertical)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertical

protected boolean vertical
Constructor Detail

CollectIcon

public CollectIcon()
Method Detail

getIcon

protected abstract SaveBoundsIcon getIcon(int index)

getIconCount

protected abstract int getIconCount()

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

isVertical

public boolean isVertical()

setVertical

public void setVertical(boolean vertical)

getIcon

public SaveBoundsIcon getIcon(int x,
                              int y)