Package org.collebol.gui
Class MainWindow
java.lang.Object
org.collebol.gui.MainWindow
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGives the current panel of the window.intintintintintgetScale()intgetTitle()intgetWidth()voidregisterPanel(Panel panel) Add a panel to the window where you can switch between.voidrun()voidsetHeight(int height) voidsetMaxTileHeight(int maxTileHeight) voidsetMaxTileWidth(int maxTileWidth) voidsetPanel(int i) Display the given panel.voidsetRefreshInterval(int refreshInterval) voidsetScale(int scale) voidsetTileSize(int tileSize) voidvoidsetWidth(int width) voidThere will be development tools rendered on the panel.
-
Constructor Details
-
MainWindow
-
-
Method Details
-
run
public void run() -
showDevelopmentTools
public void showDevelopmentTools()There will be development tools rendered on the panel. Grid lines, Coordinates, Origin-point, Screen details -
registerPanel
Add a panel to the window where you can switch between.- Parameters:
panel- A panel in the main window
-
setPanel
public void setPanel(int i) Display the given panel.- Parameters:
i- Panel index.
-
getCurrentPanel
Gives the current panel of the window.- Returns:
- The panel that is displaying!
-
getTitle
-
setTitle
-
getRefreshInterval
public int getRefreshInterval() -
setRefreshInterval
public void setRefreshInterval(int refreshInterval) -
getTileSize
public int getTileSize() -
setTileSize
public void setTileSize(int tileSize) -
getScale
public int getScale() -
setScale
public void setScale(int scale) -
getMaxTileWidth
public int getMaxTileWidth() -
setMaxTileWidth
public void setMaxTileWidth(int maxTileWidth) -
getMaxTileHeight
public int getMaxTileHeight() -
setMaxTileHeight
public void setMaxTileHeight(int maxTileHeight) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getMouseHandler
-