01: /* Image.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Thu Oct 7 22:01:19 2004, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2004 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.image;
20:
21: import javax.swing.ImageIcon;
22:
23: import org.zkoss.util.media.Media;
24:
25: /**
26: * Represents an image.
27: *
28: * @author tomyeh
29: */
30: public interface Image extends Media {
31: /** Returns the width.
32: */
33: public int getWidth();
34:
35: /** Returns the height.
36: */
37: public int getHeight();
38:
39: /** Converts to an image icon.
40: */
41: public ImageIcon toImageIcon();
42: }
|