yu.ac.bg.etf.javaqx.qswing
Class AbstractIcon

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.AbstractIcon
All Implemented Interfaces:
Icon

public abstract class AbstractIcon
extends java.lang.Object
implements Icon

Abstract Icon Interface.

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

Field Summary
protected  int height
           
protected  int width
           
 
Constructor Summary
protected AbstractIcon(int width, int height)
          Constructs new AbstractIcon object.
 
Method Summary
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface yu.ac.bg.etf.javaqx.qswing.Icon
paintIcon
 

Field Detail

width

protected int width

height

protected int height
Constructor Detail

AbstractIcon

protected AbstractIcon(int width,
                       int height)
Constructs new AbstractIcon object.

Parameters:
width - the icon's width
height - the icon's height
Method Detail

getIconWidth

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

Specified by:
getIconWidth in interface Icon
Returns:
the icon's width

getIconHeight

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

Specified by:
getIconHeight in interface Icon
Returns:
the icon's height


Copyright © 2007 ETF and contributors. All Rights Reserved.