public class MachinePositionLayer extends java.lang.Object implements VirtualBookComponentLayer
Constructor and Description |
---|
MachinePositionLayer() |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
JVirtualBookComponent jbookcomponentreference)
ask for a draw in the component
|
double |
getX() |
double |
getY() |
boolean |
isVisible()
ask if the layer is visible
|
void |
setMachinePosition(double x,
double y)
Define the machine position BEWARE, the X and Y are those of the MACHINE
AXIS, they are difference from the screen coordinates
|
void |
setStatus(java.lang.String status) |
void |
setVisible(boolean visible)
define if the layer is visible or not
|
public void setVisible(boolean visible)
VirtualBookComponentLayer
setVisible
in interface VirtualBookComponentLayer
public boolean isVisible()
VirtualBookComponentLayer
isVisible
in interface VirtualBookComponentLayer
public void setMachinePosition(double x, double y)
x
- y
- public void setStatus(java.lang.String status)
public void draw(java.awt.Graphics g, JVirtualBookComponent jbookcomponentreference)
VirtualBookComponentLayer
draw
in interface VirtualBookComponentLayer
g
- the graphic reference for drawing with Java2Djbookcomponentreference
- the VirtualBookComponent referencepublic double getY()
public double getX()