Package zombie.ui

Class DraggableWindow

java.lang.Object
zombie.ui.UIElement
zombie.ui.DraggableWindow
Direct Known Subclasses:
StatsPage

public class DraggableWindow
extends UIElement
  • Field Details

    • alpha

      public float alpha
    • clickX

      public int clickX
    • clickY

      public int clickY
    • closing

      public boolean closing
    • moving

      public boolean moving
    • rwidth

      public int rwidth
  • Constructor Details

    • DraggableWindow

      public DraggableWindow​(int x, int y, java.lang.String title, java.lang.String background) throws java.io.FileNotFoundException
      Throws:
      java.io.FileNotFoundException
  • Method Details

    • onMouseDown

      public java.lang.Boolean onMouseDown​(double x, double y)
      Overrides:
      onMouseDown in class UIElement
    • onMouseMove

      public java.lang.Boolean onMouseMove​(double dx, double dy)
      Overrides:
      onMouseMove in class UIElement
    • onMouseUp

      public java.lang.Boolean onMouseUp​(double x, double y)
      Overrides:
      onMouseUp in class UIElement
    • render

      public void render()
      Overrides:
      render in class UIElement
    • update

      public void update()
      Overrides:
      update in class UIElement