package TextScreen;
public class CenteredText extends ScreenText
{
}
private package_Renamed TextScreen;
public class CenteredText extends_Renamed ScreenText
{
}
package TextScreen;
public class ScreenText
{
protected int x, y;
protected String text;
public ScreenText(int x, int y, String text)
{
this.x = x;
this.y = y;
this.text = text;
}
public final void SetX(int x)
{
this.x = x;
}
public final void SetY(int y)
{
this.y = y;
}
public final void SetText(String text)
{
this.text = text;
}
public final void Display()
{
Console.SetCursorPosition(x, y);
System.out.print(text);
}
}