Class Display

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class Display extends JFrame
All information and methods concerning the display, resolution and canvas.
See Also:
  • Field Details

    • RESOLUTION_720p

      public static final Dimension RESOLUTION_720p
    • RESOLUTION_1080p

      public static final Dimension RESOLUTION_1080p
    • BACKGROUND_COLOR

      public static final Color BACKGROUND_COLOR
  • Constructor Details

    • Display

      public Display(String title, Dimension size, boolean borderless)
  • Method Details

    • RESOLUTION_CUSTOM

      public static Dimension RESOLUTION_CUSTOM(int w, int h)
    • validate

      public void validate()
      Overrides:
      validate in class Container
    • resize

      public void resize()
    • exit

      public void exit()
    • setResizeEvent

      public void setResizeEvent(Runnable resizeEvent)
    • setCloseEvent

      public void setCloseEvent(Runnable closeEvent)
    • getCanvas

      public Canvas getCanvas()
    • getWidth

      public int getWidth()
      Overrides:
      getWidth in class Component
    • getHeight

      public int getHeight()
      Overrides:
      getHeight in class Component
    • isBorderless

      public boolean isBorderless()
    • setBorderless

      public void setBorderless(boolean borderless)
    • getCenter

      public Vector2f getCenter()