it.andynaz.irex.dr1000.scribble
Class Stroke.Point
java.lang.Object
it.andynaz.irex.dr1000.scribble.Stroke.Point
- Enclosing class:
- Stroke
private class Stroke.Point
- extends Object
A point.
A point is made of two int coordinates, 'x' and 'y'.
Field Summary |
(package private) int |
x
|
(package private) int |
y
|
Constructor Summary |
Stroke.Point(int x,
int y)
Creates a new point. |
Method Summary |
(package private) float |
getXScaledValue()
Return the scaled value of the 'y' coordinate of this point. |
(package private) float |
getYScaledValue()
Return the scaled value of the 'y' coordinate of this point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
int x
y
int y
Stroke.Point
Stroke.Point(int x,
int y)
- Creates a new point.
- Parameters:
x
- 'x' coordinate of the pointy
- 'y' coordinate of the point
getXScaledValue
float getXScaledValue()
- Return the scaled value of the 'y' coordinate of this point.
The value is calculated considering the zoom level of the stroke.
- Returns:
- the scaled 'y' value of this point
getYScaledValue
float getYScaledValue()
- Return the scaled value of the 'y' coordinate of this point.
The value is calculated considering the zoom level of the stroke.
- Returns:
- the scaled 'y' value of this point
(c) 2013 andynaz - http://andynaz.altervista.org