it.andynaz.irex.dr1000.scribble
Class Stroke.Point
java.lang.Object
it.andynaz.irex.dr1000.scribble.Stroke.Point
- Enclosing class:
- Stroke
public class Stroke.Point
- extends Object
A point.
A point is made of two int coordinates, 'x' and 'y'.
Field Summary |
private int |
x
|
private int |
y
|
Constructor Summary |
Stroke.Point(int x,
int y)
Creates a new point. |
Method Summary |
float |
getScaledX()
Return the scaled value of the 'y' coordinate of this point. |
float |
getScaledY()
Return the scaled value of the 'y' coordinate of this point. |
int |
getX()
|
int |
getY()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
private int x
y
private 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
getX
public int getX()
getY
public int getY()
getScaledX
public float getScaledX()
- 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
getScaledY
public float getScaledY()
- 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
© 2013 andynaz - http://andynaz.altervista.org