| java.lang.Object | |
| ↳ | com.htc.painting.engine.ViewPort |
This class defines the functions that HtcPaintingView will need to
draw the Strokes. To use HtcPaintingView, the programmer must
implement the AbsHtcPaintingViewPort and provide an implementation of
AbsHtcPaintingViewPort instance to each StrokeGroup.
HtcPaintingView then uses the values provided by the PaintingViewPort
to draw Strokes of that StrokeGroup.
TODO: change API visibility from protected to public
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| mMatrix | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
return the x-axis offset of the ViewPort’s origin with respect to the
canvas’s origin Ex.
| |||||||||||
return the y-axis offset of the ViewPort’s origin with respect to the
canvas’s origin Ex.
| |||||||||||
Returns the x-axis scaling factor
| |||||||||||
Returns the x-coordinate of the scaling origin with respect to the
drawing canvas (Ex.
| |||||||||||
Returns the y-coordinate of the scaling origin with respect to the
drawing canvas (Ex.
| |||||||||||
Returns the x-axis scaling factor
| |||||||||||
Returns the y-axis scaling factor
| |||||||||||
Returns the x-coordinate of the scaling origin with respect to the
drawing canvas (Ex.
| |||||||||||
Returns the y-coordinate of the scaling origin with respect to the
drawing canvas (Ex.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
return the x-axis offset of the ViewPort’s origin with respect to the canvas’s origin Ex. result = (viewPort x-coordinate on original document) - (scrolling offset in x-axis)
return the y-axis offset of the ViewPort’s origin with respect to the canvas’s origin Ex. result = (viewPort y-coordinate on original document) - (scrolling offset in y-axis)
Returns the x-axis scaling factor
Returns the x-coordinate of the scaling origin with respect to the drawing canvas (Ex. the screen).
Returns the y-coordinate of the scaling origin with respect to the drawing canvas (Ex. the screen).
Returns the x-axis scaling factor
Returns the y-axis scaling factor
Returns the x-coordinate of the scaling origin with respect to the drawing canvas (Ex. the screen).
Returns the y-coordinate of the scaling origin with respect to the drawing canvas (Ex. the screen).