Package com.biglybt.ui.swt.skin
Class SWTSkinPropertiesImpl
- java.lang.Object
-
- com.biglybt.ui.skin.SkinPropertiesImpl
-
- com.biglybt.ui.swt.skin.SWTSkinPropertiesImpl
-
- All Implemented Interfaces:
SkinProperties
,SWTSkinProperties
public class SWTSkinPropertiesImpl extends SkinPropertiesImpl implements SWTSkinProperties
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,SWTColorWithAlpha>
colorMap
-
Fields inherited from class com.biglybt.ui.skin.SkinPropertiesImpl
PATH_SKIN_DEFS
-
-
Constructor Summary
Constructors Constructor Description SWTSkinPropertiesImpl()
SWTSkinPropertiesImpl(java.lang.ClassLoader classLoader, java.lang.String skinPath, java.lang.String mainSkinFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
static void
destroyStatics()
org.eclipse.swt.graphics.Color
getColor(java.lang.String sID)
Retrieve a color property in as a SWT Colororg.eclipse.swt.graphics.Color
getColor(java.lang.String name, org.eclipse.swt.graphics.Color def)
SWTColorWithAlpha
getColorWithAlpha(java.lang.String sID)
int
getPxValue(java.lang.String name, int def)
Get value in px, adjusted for dpiprivate void
setEmHeight()
-
Methods inherited from class com.biglybt.ui.skin.SkinPropertiesImpl
addProperty, addResourceBundle, addResourceBundle, getBooleanValue, getClassLoader, getColorValue, getEmHeightPX, getIntValue, getReferenceID, getSkinID, getStringArray, getStringArray, getStringValue, getStringValue, getStringValue, getStringValue, getValue, hasKey, setEmHeightPX
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.ui.skin.SkinProperties
addProperty, addResourceBundle, addResourceBundle, getBooleanValue, getClassLoader, getColorValue, getEmHeightPX, getIntValue, getReferenceID, getStringArray, getStringArray, getStringValue, getStringValue, getStringValue, getStringValue, hasKey
-
Methods inherited from interface com.biglybt.ui.swt.skin.SWTSkinProperties
getSkinID
-
-
-
-
Field Detail
-
colorMap
private static java.util.Map<java.lang.String,SWTColorWithAlpha> colorMap
-
-
Method Detail
-
setEmHeight
private void setEmHeight()
-
getColor
public org.eclipse.swt.graphics.Color getColor(java.lang.String sID)
Description copied from interface:SWTSkinProperties
Retrieve a color property in as a SWT Color- Specified by:
getColor
in interfaceSWTSkinProperties
- Parameters:
sID
- Property Name- Returns:
- a Color, or null
-
getColorWithAlpha
public SWTColorWithAlpha getColorWithAlpha(java.lang.String sID)
- Specified by:
getColorWithAlpha
in interfaceSWTSkinProperties
- Returns:
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceSkinProperties
- Overrides:
clearCache
in classSkinPropertiesImpl
-
getColor
public org.eclipse.swt.graphics.Color getColor(java.lang.String name, org.eclipse.swt.graphics.Color def)
- Specified by:
getColor
in interfaceSWTSkinProperties
-
getPxValue
public int getPxValue(java.lang.String name, int def)
Description copied from interface:SWTSkinProperties
Get value in px, adjusted for dpi- Specified by:
getPxValue
in interfaceSWTSkinProperties
-
destroyStatics
public static void destroyStatics()
-
-