Package com.scriptel.proscript.input
Class AdjustedCoordinate
- java.lang.Object
-
- com.scriptel.proscript.input.AdjustedCoordinate
-
public class AdjustedCoordinate extends java.lang.ObjectThis class represents a coordinate that has been adjusted for range and aspect.
-
-
Constructor Summary
Constructors Constructor Description AdjustedCoordinate(Coordinate c, CoordinateRange range, Display display)Constructor, creates a new instance of this object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()doublegetY()booleanisAspectCorrected()booleanisPenDown()booleanisRangeCorrected()voidsetAspectCorrected(boolean aspectCorrected)voidsetPenDown(boolean penDown)voidsetRangeCorrected(boolean rangeCorrected)voidsetX(double x)voidsetY(double y)java.lang.StringtoString()
-
-
-
Constructor Detail
-
AdjustedCoordinate
public AdjustedCoordinate(Coordinate c, CoordinateRange range, Display display)
Constructor, creates a new instance of this object.- Parameters:
c- Coordinate to correct.range- Range to apply.display- Display to match aspect with.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getX
public double getX()
- Returns:
- the x
-
setX
public void setX(double x)
- Parameters:
x- the x to set
-
getY
public double getY()
- Returns:
- the y
-
setY
public void setY(double y)
- Parameters:
y- the y to set
-
isAspectCorrected
public boolean isAspectCorrected()
- Returns:
- the aspectCorrected
-
setAspectCorrected
public void setAspectCorrected(boolean aspectCorrected)
- Parameters:
aspectCorrected- the aspectCorrected to set
-
isRangeCorrected
public boolean isRangeCorrected()
- Returns:
- the rangeCorrected
-
setRangeCorrected
public void setRangeCorrected(boolean rangeCorrected)
- Parameters:
rangeCorrected- the rangeCorrected to set
-
isPenDown
public boolean isPenDown()
- Returns:
- the penDown
-
setPenDown
public void setPenDown(boolean penDown)
- Parameters:
penDown- the penDown to set
-
-