public class UserInterfaceFactory
extends java.lang.Object
Constructor and Description |
---|
UserInterfaceFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
enableLowResolution(boolean on)
When this method is called with the argument true,
all subsequently created user interfaces will have
a lower resolution.
|
static BarChartUserInterface |
getBarChartUI(int numberOfBars)
Returns a new BarChartUserInterface.
|
static CheckerboardUserInterface |
getCheckerboardUI() |
static DrawUserInterface |
getDrawUI(int width,
int height)
Returns a new DrawUserInterface.
|
static DrosteUserInterface |
getDrosteUI(int width,
int height)
Returns a new DrosteUserInterface.
|
static LabyrinthUserInterface |
getLabyrinthUI(int width,
int height)
Returns a new LabyrinthUserInterface.
|
static LifeUserInterface |
getLifeUI(int width,
int height)
Returns a new LifeUserInterface.
|
static OthelloReplayUserInterface |
getOthelloReplayUI()
Returns a new OthelloReplayUserInterface.
|
static OthelloUserInterface |
getOthelloUI()
Returns a new OthelloUserInterface.
|
static SnakeUserInterface |
getSnakeUI(int width,
int height)
Returns a new SnakeUserInterface.
|
static void |
setLowResolutionScale(double scale) |
public static void enableLowResolution(boolean on)
public static void setLowResolutionScale(double scale)
public static OthelloUserInterface getOthelloUI()
public static OthelloReplayUserInterface getOthelloReplayUI()
public static LabyrinthUserInterface getLabyrinthUI(int width, int height)
width
- The width of the user interfaceheight
- The height of the user interfacepublic static LifeUserInterface getLifeUI(int width, int height)
width
- The width of the user interfaceheight
- The height of the user interfacepublic static CheckerboardUserInterface getCheckerboardUI()
public static BarChartUserInterface getBarChartUI(int numberOfBars)
numberOfBars
- The number of bars to be contained in the user interface.public static SnakeUserInterface getSnakeUI(int width, int height)
width
- The width of the user interfaceheight
- The height of the user interfacepublic static DrosteUserInterface getDrosteUI(int width, int height)
width
- The width of the user interfaceheight
- The height of the user interfacepublic static DrawUserInterface getDrawUI(int width, int height)
width
- The width of the user interfaceheight
- The height of the user interface