Skip to content

UIManager.java

Raphael Lutz edited this page Jul 12, 2018 · 2 revisions

Manager for all UIObjects.

Fields

  • ArrayList<UIObject> objects : ArrayList containing all objects

Methods

  • UIManager() : constructor of the class
  • void tick() : tick method being called at all frames, calls the tick method of each UIObject
  • void render(Graphics g) : render method being called at all frames, calls the render method of each UIObject
  • void onMouseMove(MouseEvent e) : method being called when mouse moves, calls the same method of each UIObject
  • void onMouseRelease(MouseEvent e) : method being called when mouse button is released, calls the same method of each UIObject
  • void addObject(UIObject o) : method to add an UIObject
  • void removeObject(UIObject o) : method to remove an UIObject
  • ArrayList<UIObject> getObjects() : getter for objects
  • void setObjects(ArrayList<UIObject> objects) : setter for objects
Clone this wiki locally