com.android.ide.common.rendering.api
Class DrawableParams

java.lang.Object
  extended by com.android.ide.common.rendering.api.RenderParams
      extended by com.android.ide.common.rendering.api.DrawableParams

public class DrawableParams
extends RenderParams

Rendering parameters for Bridge.renderDrawable(DrawableParams)


Field Summary
 
Fields inherited from class com.android.ide.common.rendering.api.RenderParams
DEFAULT_TIMEOUT
 
Constructor Summary
DrawableParams(DrawableParams params)
           
DrawableParams(ResourceValue drawable, java.lang.Object projectKey, HardwareConfig hardwareConfig, RenderResources renderResources, IProjectCallback projectCallback, int minSdkVersion, int targetSdkVersion, LayoutLog log)
          Builds a param object with all the necessary parameters to render a drawable with Bridge.renderDrawable(DrawableParams)
 
Method Summary
 ResourceValue getDrawable()
           
 
Methods inherited from class com.android.ide.common.rendering.api.RenderParams
getActivityName, getAppIcon, getAppLabel, getConfigScreenSize, getDensity, getHardwareConfig, getImageFactory, getLocale, getLog, getMinSdkVersion, getOverrideBgColor, getProjectCallback, getProjectKey, getResources, getScreenHeight, getScreenWidth, getTargetSdkVersion, getTimeout, getXdpi, getYdpi, isBgColorOverridden, isForceNoDecor, isRtlSupported, setActivityName, setAppIcon, setAppLabel, setForceNoDecor, setImageFactory, setLocale, setOverrideBgColor, setRtlSupport, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableParams

public DrawableParams(ResourceValue drawable,
                      java.lang.Object projectKey,
                      HardwareConfig hardwareConfig,
                      RenderResources renderResources,
                      IProjectCallback projectCallback,
                      int minSdkVersion,
                      int targetSdkVersion,
                      LayoutLog log)
Builds a param object with all the necessary parameters to render a drawable with Bridge.renderDrawable(DrawableParams)

Parameters:
drawable - the ResourceValue identifying the drawable.
projectKey - An Object identifying the project. This is used for the cache mechanism.
hardwareConfig - the HardwareConfig.
renderResources - a RenderResources object providing access to the resources.
projectCallback - The IProjectCallback object to get information from the project.
minSdkVersion - the minSdkVersion of the project
targetSdkVersion - the targetSdkVersion of the project
log - the object responsible for displaying warning/errors to the user.

DrawableParams

public DrawableParams(DrawableParams params)
Method Detail

getDrawable

public ResourceValue getDrawable()