Package jme3utilities

Class DsUtils

java.lang.Object
jme3utilities.DsUtils

public final class DsUtils extends Object
Utility methods that relate to display settings.
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Method Details

    • describeDimensions

      public static String describeDimensions(int width, int height)
      Describe the specified display dimensions.
      Parameters:
      width - width in pixels (>0)
      height - height in pixels (>0)
      Returns:
      a textual description (not null, not empty)
    • describeMsaaFactor

      public static String describeMsaaFactor(int factor)
      Describe an MSAA sampling factor.
      Parameters:
      factor - samples per pixel
      Returns:
      a textual description (not null, not empty)
    • displayMode

      public static DisplayMode displayMode()
      Return the default monitor's current display mode.
      Returns:
      a new instance (not null)
    • hasLwjglVersion3

      public static boolean hasLwjglVersion3()
      Test whether jme3-lwjgl3 is in the classpath.
      Returns:
      true if present, otherwise false
    • listDisplayModes

      public static List<DisplayMode> listDisplayModes()
      Enumerate the default monitor's available display modes.
      Returns:
      a new list of modes (not null)
    • parseDimensions

      public static int[] parseDimensions(String description)
      Parse the specified text to obtain display dimensions.
      Parameters:
      description - the text to parse (not null, not empty)
      Returns:
      a new array containing the width and height, or null for a syntax error