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
-
Field Summary
FieldsFields inherited from class com.biglybt.ui.skin.SkinPropertiesImpl
PATH_SKIN_DEFS
-
Constructor Summary
ConstructorsConstructorDescriptionSWTSkinPropertiesImpl
(ClassLoader classLoader, String skinPath, String mainSkinFile) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
org.eclipse.swt.graphics.Color
Retrieve a color property in as a SWT Colororg.eclipse.swt.graphics.Color
getColorWithAlpha
(String sID) int
getPxValue
(String name, int def) Get value in px, adjusted for dpiprivate void
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 Details
-
colorMap
-
-
Constructor Details
-
SWTSkinPropertiesImpl
- Parameters:
skinPath
-mainSkinFile
-
-
SWTSkinPropertiesImpl
public SWTSkinPropertiesImpl()
-
-
Method Details
-
setEmHeight
private void setEmHeight() -
getColor
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
- Specified by:
getColorWithAlpha
in interfaceSWTSkinProperties
- Parameters:
sID
-- Returns:
-
clearCache
public void clearCache()- Specified by:
clearCache
in interfaceSkinProperties
- Overrides:
clearCache
in classSkinPropertiesImpl
-
getColor
- Specified by:
getColor
in interfaceSWTSkinProperties
-
getPxValue
Description copied from interface:SWTSkinProperties
Get value in px, adjusted for dpi- Specified by:
getPxValue
in interfaceSWTSkinProperties
-
destroyStatics
public static void destroyStatics()
-