com.aelitis.azureus.ui.swt.skin
Class SWTSkinPropertiesImpl

java.lang.Object
  extended by com.aelitis.azureus.ui.skin.SkinPropertiesImpl
      extended by com.aelitis.azureus.ui.swt.skin.SWTSkinPropertiesImpl
All Implemented Interfaces:
SkinProperties, SWTSkinProperties

public class SWTSkinPropertiesImpl
extends SkinPropertiesImpl
implements SWTSkinProperties

Author:
TuxPaper

Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.skin.SkinPropertiesImpl
PATH_SKIN_DEFS
 
Constructor Summary
SWTSkinPropertiesImpl()
           
SWTSkinPropertiesImpl(java.lang.ClassLoader classLoader, java.lang.String skinPath, java.lang.String mainSkinFile)
           
 
Method Summary
 void clearCache()
           
 org.eclipse.swt.graphics.Color getColor(java.lang.String sID)
          Retrieve a color property in as a SWT Color
 org.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 dpi
 
Methods inherited from class com.aelitis.azureus.ui.skin.SkinPropertiesImpl
addProperty, addResourceBundle, addResourceBundle, getBooleanValue, getClassLoader, getColorValue, getEmHeightPX, getIntValue, getReferenceID, 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.aelitis.azureus.ui.skin.SkinProperties
addProperty, addResourceBundle, addResourceBundle, getBooleanValue, getClassLoader, getColorValue, getEmHeightPX, getIntValue, getReferenceID, getStringArray, getStringArray, getStringValue, getStringValue, getStringValue, getStringValue, hasKey
 

Constructor Detail

SWTSkinPropertiesImpl

public SWTSkinPropertiesImpl(java.lang.ClassLoader classLoader,
                             java.lang.String skinPath,
                             java.lang.String mainSkinFile)
Parameters:
skinPath -
mainSkinFile -

SWTSkinPropertiesImpl

public SWTSkinPropertiesImpl()
Method Detail

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 interface SWTSkinProperties
Parameters:
sID - Property Name
Returns:
a Color, or null

getColorWithAlpha

public SWTColorWithAlpha getColorWithAlpha(java.lang.String sID)
Specified by:
getColorWithAlpha in interface SWTSkinProperties
Returns:

clearCache

public void clearCache()
Specified by:
clearCache in interface SkinProperties
Overrides:
clearCache in class SkinPropertiesImpl

getColor

public org.eclipse.swt.graphics.Color getColor(java.lang.String name,
                                               org.eclipse.swt.graphics.Color def)
Specified by:
getColor in interface SWTSkinProperties

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 interface SWTSkinProperties