public class DefaultBackgroundRenderer extends Object implements GUIScreenBackgroundRenderer
Constructor and Description |
---|
DefaultBackgroundRenderer()
Solid-color background with no title
|
DefaultBackgroundRenderer(String title)
Solid-color background with user-specified title
|
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(TextGraphics textGraphics) |
String |
getTitle() |
boolean |
isShowingMemoryUsage() |
void |
setShowMemoryUsage(boolean showMemoryUsage)
If true, will display the current memory usage in the bottom right
corner, updated on every screen refresh
|
void |
setTitle(String title) |
public DefaultBackgroundRenderer()
public DefaultBackgroundRenderer(String title)
title
- Title to display in the top-left corner of the windowpublic void drawBackground(TextGraphics textGraphics)
drawBackground
in interface GUIScreenBackgroundRenderer
public void setTitle(String title)
title
- Title to be displayed in the top-left corner of the
GUIScreenpublic String getTitle()
public void setShowMemoryUsage(boolean showMemoryUsage)
public boolean isShowingMemoryUsage()
Copyright © 2015. All Rights Reserved.