org.noos.xing.mydoggy.plaf.ui.cmp
Class MultipleAggregateIcon

java.lang.Object
  extended by org.noos.xing.mydoggy.plaf.ui.cmp.MultipleAggregateIcon
All Implemented Interfaces:
Icon, SwingConstants
Direct Known Subclasses:
TabbedContentPane.ExMultipleAggregateIcon

public class MultipleAggregateIcon
extends Object
implements Icon, SwingConstants

Author:
Angelo De Caro (angelo.decaro@gmail.com)

Field Summary
protected  Icon[] icons
           
protected  Rectangle[] lastPaintedRecs
           
protected  int orientation
           
protected  boolean[] visible
           
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
MultipleAggregateIcon(int numIcon, int orientation)
           
 
Method Summary
 Icon getIconAt(int index)
           
 int getIconHeight()
           
 int getIconWidth()
           
 Rectangle getLastPaintedRecAt(int index)
           
 int getSize()
           
 boolean isVisibleAt(int index)
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setIconAt(int index, Icon icon)
           
 void setVisibleAt(int index, boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orientation

protected int orientation

icons

protected Icon[] icons

visible

protected boolean[] visible

lastPaintedRecs

protected Rectangle[] lastPaintedRecs
Constructor Detail

MultipleAggregateIcon

public MultipleAggregateIcon(int numIcon,
                             int orientation)
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

getSize

public int getSize()

getIconAt

public Icon getIconAt(int index)

setIconAt

public void setIconAt(int index,
                      Icon icon)

isVisibleAt

public boolean isVisibleAt(int index)

setVisibleAt

public void setVisibleAt(int index,
                         boolean visible)

getLastPaintedRecAt

public Rectangle getLastPaintedRecAt(int index)


Copyright © 2012. All Rights Reserved.