Class UIQuad

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class UIQuad extends Mesh
Defines a four sided quad with its origin at the lower left corner. By default, this mesh only contains vertices (in the two dimensional space) and texture coordinates.
  • Field Details Link icon

    • _width Link icon

      protected double _width
      The width of this ui quad
    • _height Link icon

      protected double _height
      The height of this ui quad
  • Constructor Details Link icon

    • UIQuad Link icon

      public UIQuad()
      Construct a new 1x1 UI quad.
    • UIQuad Link icon

      public UIQuad(String name)
      Construct a new 1x1 UI quad with the given name.
      Parameters:
      name - the name
    • UIQuad Link icon

      public UIQuad(String name, double width, double height)
      Construct a new UI quad with the given name and dimensions.
      Parameters:
      name - the name
      width - the width
      height - the height
  • Method Details Link icon

    • resize Link icon

      public void resize(double width, double height)
      Alter the vertices of this Ui quad so that it of the given size.
      Parameters:
      width - the width
      height - the height
    • getWidth Link icon

      public double getWidth()
    • getHeight Link icon

      public double getHeight()