Class kochModel.factory.AffineData


class AffineData
extends Object
A "wrapper" class that is used to transport more than one object into an IAlgo algorithm. This class carries an AffineXForm object and the previous point that was accessed.


Variable Index

 o affineXForm
The Affine transform object that will be used to transform the prototype coordinates (in Double) into screen coordinates
 o x
The previous point that was processed

Constructor Index

 o AffineData (Point, Point)
Constructs a new AffineData instance based on the supplied endpoints

Method Index

 o doXForm (Double)
Takes the supplied Point2d
 o getX ()
Accessor method for X
 o setX (Double)
Accessor method for the previous element prcessed

Variables

 o affineXForm
private AffineXForm affineXForm
The Affine transform object that will be used to transform the prototype coordinates (in Double) into screen coordinates.

 o x
private Double x = new Point2D.Double()
The previous point that was processed.

Constructors

 o AffineData
public  AffineData(Point a, Point b)
Constructs a new AffineData instance based on the supplied endpoints.

Parameters:
a - The first endpoint
b - The last endpoint.

Methods

 o setX
public void setX(Double x)
Accessor method for the previous element prcessed.

Parameters:
x - The value to set the property school.
 o getX
public Double getX()
Accessor method for X.

Returns:
The value of the property x.
 o doXForm
Point doXForm(Double x)
Takes the supplied Point2d.Double point and returns a regular Point object that is the Affine transform of that point.

Parameters:
x - The point to be transformed.
Returns:
The Affine transform of x