예제 #1
0
 public void touch(ArduinoSensor whichSensor) {
   if (interfacePiece.isPad) {
     interfacePiece.touch(((ArduinoPad) arduinoPiece).locationOnPad(whichSensor));
   } else if (interfacePiece.isSlider) {
     interfacePiece.touch(((ArduinoSlider) arduinoPiece).whichInSlider(whichSensor));
   } else {
     interfacePiece.touch();
   }
   repainter.repaint();
 }
예제 #2
0
 public boolean contains(ArduinoSensorButton button) {
   return interfacePiece.contains(button);
 }
예제 #3
0
 public void paint(Graphics2D g) {
   interfacePiece.paint(g);
 }
예제 #4
0
 public void setIsObstacle(boolean isObstacle) {
   this.isObstacle = isObstacle;
   interfacePiece.setIsObstacle(isObstacle);
 }
예제 #5
0
 public void release(ArduinoSensor whichSensor) {
   interfacePiece.release();
   repainter.repaint();
 }