public class Image extends JavascriptObject implements Serializable
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
Image()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Number |
getRotation()
Returns the rotation of the image.
|
Number |
getScale()
Returns the scale of the image.
|
protected String |
renderAttributesJs() |
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
Image |
rotation(Number number)
Sets the rotation of the image.
|
Image |
scale(Number scale)
Sets the scale of the image.
|
void |
setRotation(Number rotation)
Sets the rotation of the image.
|
void |
setScale(Number scale)
Sets the scale of the image.
|
escapeQuoteJs, getJsId, getJsIdWithSuffix
public Number getRotation()
public void setRotation(Number rotation)
rotation
- New valuepublic Image rotation(Number number)
number
- New valuepublic Number getScale()
public void setScale(Number scale)
scale
- New valuepublic Image scale(Number scale)
scale
- New valuepublic String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
protected String renderAttributesJs()
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.