yu.ac.bg.etf.javaqx.qswing
Interface Icon

All Known Implementing Classes:
AbstractIcon, ImageIcon

public interface Icon

Icon Interface.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 void paintIcon(JQComponent component, Graphics g, int x, int y)
          Draws the icon at the specified location.
 

Method Detail

paintIcon

public void paintIcon(JQComponent component,
                      Graphics g,
                      int x,
                      int y)
Draws the icon at the specified location.

Parameters:
component - the component
g - the graphics
x - the icon's x coordinate
y - the icon's y coordinate

getIconWidth

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

Returns:
the icon's width

getIconHeight

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

Returns:
the icon's height


Copyright © 2007 ETF and contributors. All Rights Reserved.