| Constructor and Description |
|---|
HighscoreScene() |
HighscoreScene(Highscore higscore) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
exit() |
Color |
getBackgroundColor() |
EventListener[] |
getEventListeners()
Should return all
EventListeners that this scene want to register. |
ExitListener<Void> |
getExitListener() |
Color |
getForegroundColor() |
Highscore |
getHighscore() |
int |
getVisibleHighscores() |
void |
paintScene(Graphics2D g,
int width,
int height,
long elapsedTime)
Draw actual scene state
|
protected void |
scroll(int delta) |
void |
setBackgroundColor(Color backgroundColor) |
void |
setExitListener(ExitListener<Void> exitListener) |
void |
setForegroundColor(Color foregroundColor) |
void |
setHighscore(Highscore highscore) |
void |
setVisibleHighscores(int visibleHighscores) |
public HighscoreScene(Highscore higscore)
public HighscoreScene()
public void paintScene(Graphics2D g, int width, int height, long elapsedTime)
ScenepaintScene in interface Sceneg - Graphics2D object to draw onwidth - Width of painting areaheight - Height of painting areaelapsedTime - Time since the last paintingprotected void scroll(int delta)
protected void exit()
public EventListener[] getEventListeners()
SceneEventListeners that this scene want to register.JPanel for additional information.getEventListeners in interface Scenepublic Highscore getHighscore()
public void setHighscore(Highscore highscore)
public int getVisibleHighscores()
public void setVisibleHighscores(int visibleHighscores)
public ExitListener<Void> getExitListener()
public void setExitListener(ExitListener<Void> exitListener)
public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
public Color getForegroundColor()
public void setForegroundColor(Color foregroundColor)
Copyright © 2017. All rights reserved.