org.progeeks.util.swing
Class BeveledBoxIcon

java.lang.Object
  extended by org.progeeks.util.swing.BeveledBoxIcon
All Implemented Interfaces:
javax.swing.Icon

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

A rectangular icon with a beveled border.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Constructor Summary
BeveledBoxIcon(int width, int height)
           
BeveledBoxIcon(int width, int height, boolean doubleBorder)
           
 
Method Summary
 java.awt.Color getBackgroundColor()
           
 java.awt.Color getHighlightColor()
           
 int getIconHeight()
           
 int getIconWidth()
           
 java.awt.Color getShadowColor()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setBackgroundColor(java.awt.Color background)
           
 void setHighlightColor(java.awt.Color highlight)
           
 void setIconHeight(int height)
           
 void setIconWidth(int width)
           
 void setShadowColor(java.awt.Color shadow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeveledBoxIcon

public BeveledBoxIcon(int width,
                      int height)

BeveledBoxIcon

public BeveledBoxIcon(int width,
                      int height,
                      boolean doubleBorder)
Method Detail

setHighlightColor

public void setHighlightColor(java.awt.Color highlight)

getHighlightColor

public java.awt.Color getHighlightColor()

setShadowColor

public void setShadowColor(java.awt.Color shadow)

getShadowColor

public java.awt.Color getShadowColor()

setBackgroundColor

public void setBackgroundColor(java.awt.Color background)

getBackgroundColor

public java.awt.Color getBackgroundColor()

setIconWidth

public void setIconWidth(int width)

getIconWidth

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

setIconHeight

public void setIconHeight(int height)

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight 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


Copyright © 2002-2003 Paul Speed. All Rights Reserved.