public class LaserCutter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
device
Represent which lasercutter is selected
|
| Constructor and Description |
|---|
LaserCutter()
Creates a new enum emulator and sets the selected lasercutter to none selected
|
LaserCutter(java.lang.String device)
Creates a new enum emulator and sets the selected lasercutter to match
the parameter of this method.
|
| Modifier and Type | Method and Description |
|---|---|
int |
returnBedHeight()
This method returns the height of the bed of the selected laser cutter in mm.
|
int |
returnBedWidth()
This method returns the width of the bed of the selected laser cutter in mm.
|
java.lang.String |
returnDevice()
Returns the name of the selected lasercutter.
|
int |
returnDeviceNumber()
Return the number associated with the selected lasercutter.
|
double[] |
returnDPI()
This method returns the possible dpi settings of the selected laser cutter.
|
void |
setDevice(int device)
Sets the selected lasercutter to the lasercutter associated with the int value of the parameter.
|
void |
setDevice(java.lang.String device)
Sets the selected lasercutter to the value of the parameter.
|
public LaserCutter(java.lang.String device)
device - The selected lasercutter is set to this valuepublic LaserCutter()
public java.lang.String returnDevice()
public int returnDeviceNumber()
public void setDevice(java.lang.String device)
device - the lasercutter to be selectedpublic void setDevice(int device)
device - the number associated with the lasercutter to be selectedpublic int returnBedWidth()
public int returnBedHeight()
public final double[] returnDPI()