1package de.ur.mi.oop.app;
3import de.ur.mi.oop.colors.Color;
4import de.ur.mi.oop.colors.Colors;
12 private static final int DEFAULT_WIDTH = 1280;
13 private static final int DEFAULT_HEIGHT = 720;
14 private static final int DEFAULT_FRAME_RATE = 60;
17 private static final boolean DEFAULT_FRAME_RATE_VISIBILITY =
false;
18 private static final String DEFAULT_TITLE =
"GraphicsApp";
19 private static final boolean DEFAULT_CURSOR_VISIBILITY =
true;
21 private static final float DEFAULT_STROKE_WIDTH = 2f;
23 private int width = DEFAULT_WIDTH;
24 private int height = DEFAULT_HEIGHT;
25 private int frameRate = DEFAULT_FRAME_RATE;
26 private boolean showFrameRate = DEFAULT_FRAME_RATE_VISIBILITY;
27 private Color backgroundColor = DEFAULT_BACKGROUND_COLOR;
28 private float strokeWidth = DEFAULT_STROKE_WIDTH;
29 private String title = DEFAULT_TITLE;
30 private boolean cursorVisibility = DEFAULT_CURSOR_VISIBILITY;
36 this.listener = listener;
53 this.strokeWidth = strokeWidth;
70 this.frameRate = frameRate;
79 return backgroundColor;
83 this.backgroundColor = backgroundColor;
95 return cursorVisibility;
99 this.cursorVisibility = isVisible;
104 return this.showFrameRate;
108 this.showFrameRate = frameRateIsVisible;
void setFrameRate(int frameRate)
boolean getCursorVisibility()
void setFrameRateVisibility(boolean frameRateIsVisible)
void setBackgroundColor(Color backgroundColor)
void setTitle(String title)
Color getBackgroundColor()
void setHeight(int height)
void setStrokeWidth(float strokeWidth)
void setListener(ConfigChangeListener listener)
boolean shouldShowFrameRate()
void setCursorVisibility(boolean isVisible)
void onCursorVisibilityChanged(boolean cursorVisibility)
void onSizeChanged(int newWidth, int newHeight)
void onFrameRateChanged(int newFramerate)