Class Graphics.DisplayMode

  • Enclosing interface:
    Graphics

    public static class Graphics.DisplayMode
    extends java.lang.Object
    Describe a fullscreen display mode
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int bitsPerPixel
      the number of bits per pixel, may exclude alpha
      int height
      the height in physical pixels
      int refreshRate
      the refresh rate in Hertz
      int width
      the width in physical pixels
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DisplayMode​(int width, int height, int refreshRate, int bitsPerPixel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • width

        public final int width
        the width in physical pixels
      • height

        public final int height
        the height in physical pixels
      • refreshRate

        public final int refreshRate
        the refresh rate in Hertz
      • bitsPerPixel

        public final int bitsPerPixel
        the number of bits per pixel, may exclude alpha
    • Constructor Detail

      • DisplayMode

        protected DisplayMode​(int width,
                              int height,
                              int refreshRate,
                              int bitsPerPixel)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object