Constructor and Description |
---|
HighscoreScene() |
HighscoreScene(Highscore higscore) |
Modifier and Type | Method and Description |
---|---|
protected void |
exit() |
Color |
getBackgroundColor() |
EventListener[] |
getEventListeners()
Should return all
EventListener s 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)
Scene
paintScene
in interface Scene
g
- 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()
Scene
EventListener
s that this scene want to register.JPanel
for additional information.getEventListeners
in interface Scene
public 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.