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

java.lang.Object
  extended by org.noos.xing.mydoggy.plaf.ui.cmp.AggregateIcon
All Implemented Interfaces:
Icon, SwingConstants

public class AggregateIcon
extends Object
implements Icon, SwingConstants

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

Field Summary
 
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
AggregateIcon(Icon leftIcon, Icon rightIcon, int orientation)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 Rectangle getLastPaintedLeftRec()
           
 Rectangle getLastPaintedRightRec()
           
 Icon getLeftIcon()
           
 Icon getRightIcon()
           
 boolean isLeftVisible()
           
 boolean isRightVisible()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setLeftIcon(Icon leftIcon)
           
 void setLeftVisible(boolean leftVisible)
           
 void setRightIcon(Icon rightIcon)
           
 void setRightVisible(boolean rightVisible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateIcon

public AggregateIcon(Icon leftIcon,
                     Icon rightIcon,
                     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

getLastPaintedLeftRec

public Rectangle getLastPaintedLeftRec()

getLastPaintedRightRec

public Rectangle getLastPaintedRightRec()

getLeftIcon

public Icon getLeftIcon()

setLeftIcon

public void setLeftIcon(Icon leftIcon)

getRightIcon

public Icon getRightIcon()

setRightIcon

public void setRightIcon(Icon rightIcon)

isLeftVisible

public boolean isLeftVisible()

setLeftVisible

public void setLeftVisible(boolean leftVisible)

isRightVisible

public boolean isRightVisible()

setRightVisible

public void setRightVisible(boolean rightVisible)


Copyright © 2012. All Rights Reserved.