Class Displays

java.lang.Object
com.jme3.system.Displays

public class Displays extends Object
This class holds all information about all displays that where return from the glfwGetMonitors() call. It stores them into an ArrayList
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    addNewMonitor(long displaysID)
     
    get(int pos)
    Call to get display information on a certain display.
    void
    setInfo(int displayPos, String name, int width, int height, int rate)
    Set information about this display stored in displayPos display in the array list.
    void
    setPrimaryDisplay(int displayPos)
    This function will mark a certain display as the primary display.
    int
    This function returns the size of the display ArrayList

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Displays

      public Displays()
  • Method Details

    • addNewMonitor

      public int addNewMonitor(long displaysID)
    • size

      public int size()
      This function returns the size of the display ArrayList
      Returns:
      the
    • get

      public DisplayInfo get(int pos)
      Call to get display information on a certain display.
      Parameters:
      pos - the position in the ArrayList of the display information that you want to get.
      Returns:
      returns the DisplayInfo data for the display called for.
    • setInfo

      public void setInfo(int displayPos, String name, int width, int height, int rate)
      Set information about this display stored in displayPos display in the array list.
      Parameters:
      displayPos - ArrayList position of display to update
      name - name of the display
      width - the current width the display is displaying
      height - the current height the display is displaying
      rate - the current refresh rate the display is set to
    • setPrimaryDisplay

      public void setPrimaryDisplay(int displayPos)
      This function will mark a certain display as the primary display.
      Parameters:
      displayPos - the position in the ArrayList of which display is the primary display