Compiere 3.1

org.compiere.apps.wf
Class WFIcon

java.lang.Object
  extended by org.compiere.apps.wf.WFIcon
All Implemented Interfaces:
Icon

public class WFIcon
extends Object
implements Icon

Work Flow Icon

Version:
$Id: WFIcon.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
WFIcon(int type)
          Constructor
WFIcon(String action)
          Constructor
 
Method Summary
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 void paintIcon(Component c, Graphics g, int x, int y)
          Draw the icon at the specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFIcon

public WFIcon(int type)
Constructor

Parameters:
type - see CTreeNode.TYPE_

WFIcon

public WFIcon(String action)
Constructor

Parameters:
action - image indicator
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

Specified by:
paintIcon in interface Icon
Parameters:
c - Component
g - Graphics
x - X
y - Y
See Also:
Icon.paintIcon(Component, Graphics, int, int)

getIconWidth

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

Specified by:
getIconWidth in interface Icon
Returns:
an int specifying the fixed width of the icon.
See Also:
Icon.getIconWidth()

getIconHeight

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

Specified by:
getIconHeight in interface Icon
Returns:
an int specifying the fixed height of the icon.
See Also:
Icon.getIconHeight()

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.