com.android.ide.common.rendering
Class StaticRenderSession

java.lang.Object
  extended by com.android.ide.common.rendering.api.RenderSession
      extended by com.android.ide.common.rendering.StaticRenderSession

public class StaticRenderSession
extends com.android.ide.common.rendering.api.RenderSession

Static RenderSession returning a given Result, ViewInfo and BufferedImage.

All other methods are untouched from the base implementation provided by the API.

This is meant to be used as a wrapper around the static results. No further operations are possible.


Constructor Summary
StaticRenderSession(com.android.ide.common.rendering.api.Result result, com.android.ide.common.rendering.api.ViewInfo rootViewInfo, java.awt.image.BufferedImage image)
           
 
Method Summary
 java.awt.image.BufferedImage getImage()
           
 com.android.ide.common.rendering.api.Result getResult()
           
 java.util.List<com.android.ide.common.rendering.api.ViewInfo> getRootViews()
           
 
Methods inherited from class com.android.ide.common.rendering.api.RenderSession
animate, dispose, getDefaultProperties, getProperty, getSystemRootViews, insertChild, isAlphaChannelImage, moveChild, removeChild, render, render, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticRenderSession

public StaticRenderSession(com.android.ide.common.rendering.api.Result result,
                           com.android.ide.common.rendering.api.ViewInfo rootViewInfo,
                           java.awt.image.BufferedImage image)
Method Detail

getResult

public com.android.ide.common.rendering.api.Result getResult()
Overrides:
getResult in class com.android.ide.common.rendering.api.RenderSession

getRootViews

public java.util.List<com.android.ide.common.rendering.api.ViewInfo> getRootViews()
Overrides:
getRootViews in class com.android.ide.common.rendering.api.RenderSession

getImage

public java.awt.image.BufferedImage getImage()
Overrides:
getImage in class com.android.ide.common.rendering.api.RenderSession