Package shaperCompiler.util
Class Square
java.lang.Object
shaperCompiler.util.Shape
shaperCompiler.util.Square
public class Square extends Shape
The Class Square.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
orientation
The orientation.(package private) java.lang.String
xp1
The xp 1.(package private) java.lang.String
xp2
The xp 2.(package private) java.lang.String
yp1
The yp 1.(package private) java.lang.String
yp2
The yp 2. -
Constructor Summary
Constructors Constructor Description Square(org.antlr.runtime.Token xp1, org.antlr.runtime.Token yp1, org.antlr.runtime.Token xp2, org.antlr.runtime.Token yp2, org.antlr.runtime.Token orientation)
Instantiates a new square. -
Method Summary
Modifier and Type Method Description java.lang.String
getOrientation()
Gets the orientation.java.lang.String
getXp1()
Gets the xp 1.java.lang.String
getXp2()
Gets the xp 2.java.lang.String
getYp1()
Gets the yp 1.java.lang.String
getYp2()
Gets the yp 2.void
setOrientation(java.lang.String orientation)
Sets the orientation.void
setXp1(java.lang.String xp1)
Sets the xp 1.void
setXp2(java.lang.String xp2)
Sets the xp 2.void
setYp1(java.lang.String yp1)
Sets the yp 1.void
setYp2(java.lang.String yp2)
Sets the yp 2.java.lang.String
toString()
To string.Methods inherited from class shaperCompiler.util.Shape
getJobSpeed, getLube, getMoveSpeed, getType, setJobSpeed, setLube, setMoveSpeed, setType
-
Field Details
-
xp1
java.lang.String xp1The xp 1. -
yp1
java.lang.String yp1The yp 1. -
xp2
java.lang.String xp2The xp 2. -
yp2
java.lang.String yp2The yp 2. -
orientation
java.lang.String orientationThe orientation.
-
-
Constructor Details
-
Square
public Square(org.antlr.runtime.Token xp1, org.antlr.runtime.Token yp1, org.antlr.runtime.Token xp2, org.antlr.runtime.Token yp2, org.antlr.runtime.Token orientation)Instantiates a new square.- Parameters:
xp1
- the xp 1yp1
- the yp 1xp2
- the xp 2yp2
- the yp 2orientation
- the orientation
-
-
Method Details
-
toString
public java.lang.String toString()To string. -
getXp1
public java.lang.String getXp1()Gets the xp 1.- Returns:
- the xp 1
-
setXp1
public void setXp1(java.lang.String xp1)Sets the xp 1.- Parameters:
xp1
- the new xp 1
-
getYp1
public java.lang.String getYp1()Gets the yp 1.- Returns:
- the yp 1
-
setYp1
public void setYp1(java.lang.String yp1)Sets the yp 1.- Parameters:
yp1
- the new yp 1
-
getXp2
public java.lang.String getXp2()Gets the xp 2.- Returns:
- the xp 2
-
setXp2
public void setXp2(java.lang.String xp2)Sets the xp 2.- Parameters:
xp2
- the new xp 2
-
getYp2
public java.lang.String getYp2()Gets the yp 2.- Returns:
- the yp 2
-
setYp2
public void setYp2(java.lang.String yp2)Sets the yp 2.- Parameters:
yp2
- the new yp 2
-
getOrientation
public java.lang.String getOrientation()Gets the orientation.- Returns:
- the orientation
-
setOrientation
public void setOrientation(java.lang.String orientation)Sets the orientation.- Parameters:
orientation
- the new orientation
-