gr.zeus.ui.table.sort
Class BlankIcon

java.lang.Object
  extended by gr.zeus.ui.table.sort.BlankIcon
All Implemented Interfaces:
javax.swing.Icon

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

Empty icon for table header for TableSorter. Original code from: http://www.senun.com/Left/Programming/Java_old/Examples_swing/SwingExamples.html

Since:
1.02
Author:
Gregory Kotsaftis

Constructor Summary
BlankIcon()
          Constructor.
BlankIcon(java.awt.Color color, int size)
          Constructor.
 
Method Summary
 int getIconHeight()
          Gets the icon's height.
 int getIconWidth()
          Gets the icon's width.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paints the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlankIcon

public BlankIcon()
Constructor.


BlankIcon

public BlankIcon(java.awt.Color color,
                 int size)
Constructor.

Parameters:
color - The fill Color.
size - The size.
Method Detail

paintIcon

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

Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - The Component.
g - The Graphics to use.
x - The x location.
y - The y location.

getIconWidth

public int getIconWidth()
Gets the icon's width.

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

getIconHeight

public int getIconHeight()
Gets the icon's height.

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