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.
- affineXForm
- The Affine transform object that will be used to transform the prototype coordinates (in Double) into screen coordinates
- x
- The previous point that was processed
- AffineData
(Point, Point)
- Constructs a new AffineData instance based on the supplied endpoints
- doXForm
(Double)
- Takes the supplied Point2d
- getX
()
- Accessor method for X
- setX
(Double)
- Accessor method for the previous element prcessed
affineXForm
private AffineXForm affineXForm
- The Affine transform object that will be used to transform the prototype coordinates (in Double) into screen coordinates.
x
private Double x = new Point2D.Double()
- The previous point that was processed.
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.
setX
public void setX(Double x)
- Accessor method for the previous element prcessed.
- Parameters:
- x - The value to set the property school.
getX
public Double getX()
- Accessor method for X.
- Returns:
- The value of the property x.
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