org.openbp.swing.plaf.sky
Class SkyMenuItemUI.CheckIcon

java.lang.Object
  extended by org.openbp.swing.plaf.sky.SkyMenuItemUI.CheckIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
SkyMenuItemUI

public static class SkyMenuItemUI.CheckIcon
extends java.lang.Object
implements javax.swing.Icon

Inner class which paints a simple check arrow.


Constructor Summary
SkyMenuItemUI.CheckIcon()
           
 
Method Summary
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paint the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyMenuItemUI.CheckIcon

public SkyMenuItemUI.CheckIcon()
Method Detail

getIconHeight

public int getIconHeight()
Returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
int - The fixed height of 8

getIconWidth

public int getIconWidth()
Returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
int - The fixed width of 8

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Paint the icon.

Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - - The Component where the icon is painted
g - - The graphics object which is used to paint the icon
x - - The x position for the left top corner
y - - The y position for the left top corner


Copyright © 2011. All Rights Reserved.