com.opera.core.systems.model
Class Canvas
java.lang.Object
com.opera.core.systems.model.Canvas
public class Canvas
- extends java.lang.Object
A canvas object to use in taking screenshots of Opera's viewport. The screenshot can be relative
to viewport or to the window
- Author:
- Deniz Turkoglu
|
Constructor Summary |
Canvas()
|
Canvas(int x,
int y,
int width,
int height)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
x
protected int x
y
protected int y
width
protected int width
height
protected int height
viewPortRelative
protected boolean viewPortRelative
Canvas
public Canvas(int x,
int y,
int width,
int height)
Canvas
public Canvas()
isViewPortRelative
public boolean isViewPortRelative()
setViewPortRelative
public void setViewPortRelative(boolean viewPortRelative)
- Sets the screenshots to be relative to screen or to window, default is window.
- Parameters:
viewPortRelative - true if relative to window
getX
public int getX()
setX
public void setX(int x)
getY
public int getY()
setY
public void setY(int y)
getWidth
public int getWidth()
setWidth
public void setWidth(int width)
getHeight
public int getHeight()
setHeight
public void setHeight(int height)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011. All Rights Reserved.