com.opera.core.systems.model
Class Canvas
java.lang.Object
com.opera.core.systems.model.Canvas
public class Canvas
- extends 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)
|
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(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.