Class Resolution.Ratio

java.lang.Object
de.gurkenlabs.litiengine.gui.screens.Resolution.Ratio
Direct Known Subclasses:
Resolution.Ratio16x10, Resolution.Ratio16x9, Resolution.Ratio4x3, Resolution.Ratio5x4
Enclosing class:
Resolution

public static class Resolution.Ratio
extends java.lang.Object
  • Constructor Summary

    Constructors 
    ModifierConstructorDescription
    protected Ratio​(int x, int y) 
    protected Ratio​(int x, int y, java.lang.String name) 
  • Method Summary

    Modifier and TypeMethodDescription
    protected static java.util.List<Resolution>getAll​(java.lang.Class<?> clz) 
    java.lang.StringgetName()
    Gets the name of this aspect ratio
    intgetX()
    Gets the x-value of this aspect ratio.
    intgetY()
    Gets the y-value of this aspect ratio.
    java.lang.StringtoString() 

    Methods inherited from class java.lang.Object

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

    • Ratio

      protected Ratio​(int x, int y)
    • Ratio

      protected Ratio​(int x, int y, java.lang.String name)
  • Method Details

    • getAll

      protected static java.util.List<Resolution> getAll​(java.lang.Class<?> clz)
    • getName

      public java.lang.String getName()
      Gets the name of this aspect ratio
      Returns:
      The name of this aspect ratio.
    • getX

      public int getX()
      Gets the x-value of this aspect ratio.
      Returns:
      The x-value of this aspect ratio.
    • getY

      public int getY()
      Gets the y-value of this aspect ratio.
      Returns:
      The y-value of this aspect ratio.
    • toString

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