iRex DR1000 Manager v0.5.2

it.andynaz.irex.dr1000.scribble
Class Stroke.Point

java.lang.Object
  extended by 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
 

Field Detail

x

private int x

y

private int y
Constructor Detail

Stroke.Point

Stroke.Point(int x,
             int y)
Creates a new point.

Parameters:
x - 'x' coordinate of the point
y - 'y' coordinate of the point
Method Detail

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

iRex DR1000 Manager v0.5.2

© 2013 andynaz - http://andynaz.altervista.org