Enum Resolutions

java.lang.Object
java.lang.Enum<Resolutions>
org.graphstream.stream.file.images.Resolutions
All Implemented Interfaces:
Serializable, Comparable<Resolutions>, java.lang.constant.Constable, Resolution

public enum Resolutions
extends Enum<Resolutions>
implements Resolution
Common resolutions.
See Also:
Graphics display resolution page on Wikipedia
  • Enum Constant Details

  • Method Details

    • values

      public static Resolutions[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Resolutions valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getWidth

      public int getWidth()
      Description copied from interface: Resolution
      Get the width of outputted images.
      Specified by:
      getWidth in interface Resolution
      Returns:
      width
    • getHeight

      public int getHeight()
      Description copied from interface: Resolution
      Get the height of outputted images.
      Specified by:
      getHeight in interface Resolution
      Returns:
      height
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Resolutions>