Package shaperCompiler.util
Class Triangle
java.lang.Object
shaperCompiler.util.Shape
shaperCompiler.util.Triangle
public class Triangle extends Shape
The Class Triangle.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Stringxp1The xp 1.(package private) java.lang.Stringxp2The xp 2.(package private) java.lang.Stringxp3The xp 3.(package private) java.lang.Stringyp1The yp 1.(package private) java.lang.Stringyp2The yp 2.(package private) java.lang.Stringyp3The yp 3. -
Constructor Summary
Constructors Constructor Description Triangle(org.antlr.runtime.Token xp1, org.antlr.runtime.Token yp1, org.antlr.runtime.Token xp2, org.antlr.runtime.Token yp2, org.antlr.runtime.Token xp3, org.antlr.runtime.Token yp3)Instantiates a new triangle. -
Method Summary
Modifier and Type Method Description java.lang.StringgetXp1()Gets the xp 1.java.lang.StringgetXp2()Gets the xp 2.java.lang.StringgetXp3()Gets the xp 3.java.lang.StringgetYp1()Gets the yp 1.java.lang.StringgetYp2()Gets the yp 2.java.lang.StringgetYp3()Gets the yp 3.voidsetXp1(java.lang.String xp1)Sets the xp 1.voidsetXp2(java.lang.String xp2)Sets the xp 2.voidsetXp3(java.lang.String xp3)Sets the xp 3.voidsetYp1(java.lang.String yp1)Sets the yp 1.voidsetYp2(java.lang.String yp2)Sets the yp 2.voidsetYp3(java.lang.String yp3)Sets the yp 3.java.lang.StringtoString()To string.Methods inherited from class shaperCompiler.util.Shape
getJobSpeed, getLube, getMoveSpeed, getType, setJobSpeed, setLube, setMoveSpeed, setType
-
Field Details
-
Constructor Details
-
Triangle
public Triangle(org.antlr.runtime.Token xp1, org.antlr.runtime.Token yp1, org.antlr.runtime.Token xp2, org.antlr.runtime.Token yp2, org.antlr.runtime.Token xp3, org.antlr.runtime.Token yp3)Instantiates a new triangle.- Parameters:
xp1- the xp 1yp1- the yp 1xp2- the xp 2yp2- the yp 2xp3- the xp 3yp3- the yp 3
-
-
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
-
getXp3
public java.lang.String getXp3()Gets the xp 3.- Returns:
- the xp 3
-
setXp3
public void setXp3(java.lang.String xp3)Sets the xp 3.- Parameters:
xp3- the new xp 3
-
getYp3
public java.lang.String getYp3()Gets the yp 3.- Returns:
- the yp 3
-
setYp3
public void setYp3(java.lang.String yp3)Sets the yp 3.- Parameters:
yp3- the new yp 3
-