public interface Emulator
Emulator interface specifies emulators.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NN_EMULATORCONFIG
Node names
|
static java.lang.String |
PN_CANROTATE |
static java.lang.String |
PN_HEIGHT |
static java.lang.String |
PN_PIXELRATIO |
static java.lang.String |
PN_TOUCHSCROLLING |
static java.lang.String |
PN_WIDTH |
static java.lang.String |
RESOURCE_TYPE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRotate()
Indicates whether the device represented by this emulator supports device rotation (dual mode).
|
java.lang.String |
getContentCssPath()
Returns the path of the CSS to be used for displaying the page content in the emulator.
|
java.lang.String |
getDescription()
Returns the description of this emulator.
|
int |
getHeight()
Returns the height of this emulator.
|
java.lang.String |
getName()
Returns the name of this emulator.
|
java.lang.String |
getPath()
Returns the path of this emulator.
|
double |
getPixelRatio()
Returns the pixel ratio of this emulator.
|
java.lang.String |
getTitle()
Returns the title of this emulator.
|
int |
getWidth()
Returns the width of this emulator.
|
boolean |
hasTouchScrolling()
Indicates whether the devices represented by this emulator uses touch scrolling.
|
void |
setContentCssPath(java.lang.String cssPath)
Instructs the emulator to use the given
cssPath for displaying the page content. |
static final java.lang.String RESOURCE_TYPE
static final java.lang.String PN_CANROTATE
static final java.lang.String PN_TOUCHSCROLLING
static final java.lang.String PN_WIDTH
static final java.lang.String PN_HEIGHT
static final java.lang.String PN_PIXELRATIO
static final java.lang.String NN_EMULATORCONFIG
java.lang.String getContentCssPath()
setContentCssPath(String).String representing the content CSS path, or null if never set.void setContentCssPath(java.lang.String cssPath)
cssPath for displaying the page content. This is the same
CSS path as used for rendering the page e.g. on a publish instance.cssPath - <code>String</code> representing the css path.java.lang.String getDescription()
String representing the description, or null if not defined.java.lang.String getName()
String representing the name.java.lang.String getPath()
String representing the path.java.lang.String getTitle()
String representing the title or null if not defined.boolean canRotate()
true if rotation is supported.boolean hasTouchScrolling()
true if touch scrolling is supported.int getWidth()
int representing the width or -1 if not defined.int getHeight()
int representing the height or -1 if not defined.double getPixelRatio()
double representing the pixel ratio or 1 if not defined.Copyright © 2010 - 2023 Adobe. All Rights Reserved