Back to index

moin  1.9.0~rc2
PaletteIcon.java
Go to the documentation of this file.
00001 /*
00002  * @(#)PaletteIcon.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.util;
00007 
00008 import java.awt.*;
00009 
00016 public  class PaletteIcon extends Object {
00017 
00018     Image       fNormal;
00019     Image       fPressed;
00020     Image       fSelected;
00021     Dimension   fSize;
00022 
00023     public PaletteIcon(Dimension size, Image normal, Image pressed, Image selected) {
00024         fSize = size;
00025         fNormal = normal;
00026         fPressed = pressed;
00027         fSelected = selected;
00028     }
00029 
00030     public Image normal() { return fNormal; }
00031     public Image pressed() { return fPressed; }
00032     public Image selected() { return fSelected; }
00033 
00034     public int getWidth() { return fSize.width; }
00035     public int getHeight() { return fSize.height; }
00036 
00037 }