Methods Summary |
---|
public com.android.ide.common.rendering.api.Result | animate(java.lang.Object targetObject, java.lang.String animationName, boolean isFrameworkAnimation, com.android.ide.common.rendering.api.IAnimationListener listener)
try {
Bridge.prepareThread();
mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
if (mLastResult.isSuccess()) {
mLastResult = mSession.animate(targetObject, animationName, isFrameworkAnimation,
listener);
}
} finally {
mSession.release();
Bridge.cleanupThread();
}
return mLastResult;
|
public void | dispose()
|
public java.util.Map | getDefaultProperties(java.lang.Object viewObject)
return mSession.getDefaultProperties(viewObject);
|
public java.awt.image.BufferedImage | getImage()
return mSession.getImage();
|
public com.android.ide.common.rendering.api.Result | getProperty(java.lang.Object objectView, java.lang.String propertyName)
// pass
return super.getProperty(objectView, propertyName);
|
public com.android.ide.common.rendering.api.Result | getResult()
return mLastResult;
|
public java.util.List | getRootViews()
return mSession.getViewInfos();
|
public java.util.List | getSystemRootViews()
return mSession.getSystemViewInfos();
|
public com.android.ide.common.rendering.api.Result | insertChild(java.lang.Object parentView, com.android.ide.common.rendering.api.ILayoutPullParser childXml, int index, com.android.ide.common.rendering.api.IAnimationListener listener)
if (parentView instanceof ViewGroup == false) {
throw new IllegalArgumentException("parentView is not a ViewGroup");
}
try {
Bridge.prepareThread();
mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
if (mLastResult.isSuccess()) {
mLastResult = mSession.insertChild((ViewGroup) parentView, childXml, index,
listener);
}
} finally {
mSession.release();
Bridge.cleanupThread();
}
return mLastResult;
|
public boolean | isAlphaChannelImage()
return mSession.isAlphaChannelImage();
|
public com.android.ide.common.rendering.api.Result | moveChild(java.lang.Object parentView, java.lang.Object childView, int index, java.util.Map layoutParams, com.android.ide.common.rendering.api.IAnimationListener listener)
if (parentView instanceof ViewGroup == false) {
throw new IllegalArgumentException("parentView is not a ViewGroup");
}
if (childView instanceof View == false) {
throw new IllegalArgumentException("childView is not a View");
}
try {
Bridge.prepareThread();
mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
if (mLastResult.isSuccess()) {
mLastResult = mSession.moveChild((ViewGroup) parentView, (View) childView, index,
layoutParams, listener);
}
} finally {
mSession.release();
Bridge.cleanupThread();
}
return mLastResult;
|
public com.android.ide.common.rendering.api.Result | removeChild(java.lang.Object childView, com.android.ide.common.rendering.api.IAnimationListener listener)
if (childView instanceof View == false) {
throw new IllegalArgumentException("childView is not a View");
}
try {
Bridge.prepareThread();
mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
if (mLastResult.isSuccess()) {
mLastResult = mSession.removeChild((View) childView, listener);
}
} finally {
mSession.release();
Bridge.cleanupThread();
}
return mLastResult;
|
public com.android.ide.common.rendering.api.Result | render(long timeout)
try {
Bridge.prepareThread();
mLastResult = mSession.acquire(timeout);
if (mLastResult.isSuccess()) {
mLastResult = mSession.render(false /*freshRender*/);
}
} finally {
mSession.release();
Bridge.cleanupThread();
}
return mLastResult;
|
public com.android.ide.common.rendering.api.Result | setProperty(java.lang.Object objectView, java.lang.String propertyName, java.lang.String propertyValue)
// pass
return super.setProperty(objectView, propertyName, propertyValue);
|