com.dlsc.flexgantt.swing.util
Class WindowsCornerIcon

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

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

An icon implementation that simulates the corner resize icon found on Windows.

Since:
1.0
Author:
Dirk Lemmermann

Nested Class Summary
static class WindowsCornerIcon.Corner
          An enumerator, which specifies where the icon will draw its boxes.
 
Constructor Summary
WindowsCornerIcon()
          Constructs a new icon.
WindowsCornerIcon(WindowsCornerIcon.Corner corner)
          Constructs a new 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

WindowsCornerIcon

public WindowsCornerIcon(WindowsCornerIcon.Corner corner)
Constructs a new icon.

Parameters:
corner - specifies where the boxes will be drawn
Since:
1.0

WindowsCornerIcon

public WindowsCornerIcon()
Constructs a new icon. The icon's boxes will be drawn in the lower right corner.

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