org.fife.ui
Class SizeGripIcon

java.lang.Object
  extended by org.fife.ui.SizeGripIcon
All Implemented Interfaces:
javax.swing.Icon

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

An icon that looks like a Windows 98/XP-style size grip.

Version:
1.0
Author:
Robert Futrell

Constructor Summary
SizeGripIcon()
          Constructor.
SizeGripIcon(int style)
          Constructor.
 
Method Summary
 int getIconHeight()
          Returns the height of this icon.
 int getIconWidth()
          Returns the width of this icon.
 int getStyle()
          Returns the current style of this icon.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paints this icon.
 void setStyle(int style)
          Sets the style of this icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeGripIcon

public SizeGripIcon()
Constructor.


SizeGripIcon

public SizeGripIcon(int style)
Constructor.

Parameters:
style - The style of the size grip.
Method Detail

getIconHeight

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

Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
This icon's height.

getIconWidth

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

Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
This icon's width.

getStyle

public int getStyle()
Returns the current style of this icon.

Returns:
The icon's style.
See Also:
setStyle(int)

paintIcon

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

Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - The component to paint on.
g - The graphics context.
x - The x-coordinate at which to paint.
y - The y-coordinate at which to paint.

setStyle

public void setStyle(int style)
Sets the style of this icon.

Parameters:
style - This icon's style.
See Also:
getStyle()