com.dlsc.flexgantt.icons
Class BlankIcon

java.lang.Object
  extended by com.dlsc.flexgantt.icons.BlankIcon
All Implemented Interfaces:
javax.swing.Icon

public class BlankIcon
extends java.lang.Object
implements javax.swing.Icon

An empty (blank) icon often used for aligning menu items.

Since:
1.0
Author:
Dirk Lemmermann

Constructor Summary
BlankIcon(int width, int height)
          Constructs a new blank icon.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlankIcon

public BlankIcon(int width,
                 int height)
Constructs a new blank icon.

Parameters:
width - the width of the icon
height - the height of the icon
Since:
1.0
Method Detail

getIconHeight

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

getIconWidth

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

paintIcon

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