lejos.remote.ev3.RMIRemoteLCD Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.
The newest version!
package lejos.remote.ev3;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import lejos.hardware.lcd.LCD;
public class RMIRemoteLCD extends UnicastRemoteObject implements RMILCD {
private static final long serialVersionUID = 2378483122054140698L;
protected RMIRemoteLCD() throws RemoteException {
super(0);
}
@Override
public void drawChar(char c, int x, int y) throws RemoteException {
LCD.drawChar(c, x, y);
}
@Override
public void clearDisplay() throws RemoteException {
LCD.clearDisplay();
}
@Override
public void drawString(String str, int x, int y, boolean inverted) {
LCD.drawString(str, x, y, inverted);
}
@Override
public void drawString(String str, int x, int y) throws RemoteException {
LCD.drawString(str, x, y);
}
@Override
public void drawInt(int i, int x, int y) throws RemoteException {
LCD.drawInt(i, x, y);
}
@Override
public void drawInt(int i, int places, int x, int y) throws RemoteException {
LCD.drawInt(i, places, x, y);
}
}