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
ViewPort instance to each StrokeGroup.
HtcPaintingView
then uses the values provided by the PaintingViewPort
to draw Strokes of that StrokeGroup.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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).