FileDocCategorySizeDatePackage
SWTSkinPropertiesImpl.javaAPI DocAzureus 3.0.3.42481Sun Sep 09 19:16:06 BST 2007com.aelitis.azureus.ui.swt.skin

SWTSkinPropertiesImpl

public class SWTSkinPropertiesImpl extends com.aelitis.azureus.ui.skin.SkinPropertiesImpl implements SWTSkinProperties
author
TuxPaper
created
Jun 1, 2006

Fields Summary
private static Map
colorMap
private static Map
mapFallBack
Constructors Summary
public SWTSkinPropertiesImpl(ClassLoader classLoader, String skinPath, String mainSkinFile)

param
skinPath
param
mainSkinFile


	    	 
	       
		super(classLoader, skinPath, mainSkinFile);
	
public SWTSkinPropertiesImpl()

		super();
	
Methods Summary
public org.eclipse.swt.graphics.ColorgetColor(java.lang.String sID)

		Color color;
		if (colorMap.containsKey(sID)) {
			return (Color) colorMap.get(sID);
		}

		try {
			int[] rgb = getColorValue(sID);
			if (rgb[0] > -1) {
				color = ColorCache.getColor(Display.getCurrent(), rgb[0], rgb[1],
						rgb[2]);
			} else {
				color = null;
			}
		} catch (Exception e) {
			//				IMP.getLogger().log(LoggerChannel.LT_ERROR,
			//						"Failed loading color : color." + colorNames[i]);
			color = null;
		}

		if (color == null) {
			String sFallBackID = (String) mapFallBack.get(sID);
			if (sFallBackID != null) {
				color = getColor(sFallBackID);
			}
		}

		colorMap.put(sID, color);

		return color;