00001 package ImageStuff.Properties;
00002 import java.awt.*;
00003
00004 public class FlyWeightColor {
00005
00006 public final static int ROOD = 1 ;
00007 public final static int BLAUW = 2 ;
00008 public final static int ZWART = 3 ;
00009 private static Color blauw = Color . blue ;
00010 private static Color rood = Color . red ;
00011 private static Color zwart = Color . black ;
00012
00013
00014 public static Color getColor(int KLEUR){
00015 switch(KLEUR){
00016 case ROOD: return rood;
00017 case ZWART: return zwart;
00018 case BLAUW: return blauw;
00019 default: Debug.print("Verkeerd gebruik van FlyWeightColor->getColor()"); return null;
00020 }
00021 }
00022
00023
00024 }