iRex DR1000 Manager v0.6

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', and both can be retrived in their absolute or scaled values.


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()
          Returns the 'x' coordinate of this point.
 int getY()
          Returns the 'y' coordinate of this point.
 
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()
Returns the 'x' coordinate of this point.

Returns:
the 'x' coordinate of this point

getY

public int getY()
Returns the 'y' coordinate of this point.

Returns:
the 'y' coordinate of this point

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' coordinate 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' coordinate of this point

iRex DR1000 Manager v0.6

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