Class GridView.Pos

  • Direct Known Subclasses:
    GridView.Cursor
    Enclosing class:
    GridView

    static class GridView.Pos
    extends java.lang.Object
    Represents position on a grid.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int x
      column index.
      protected int y
      row index.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pos​(int y, int x)
      Creates a position from two integers.
      Pos​(GridView.Pos other)
      Creates a position from other position instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getX()  
      int getY()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        protected int x
        column index.
      • y

        protected int y
        row index.
    • Constructor Detail

      • Pos

        public Pos​(int y,
                   int x)
        Creates a position from two integers.
        Parameters:
        y - row index.
        x - column index.
      • Pos

        public Pos​(GridView.Pos other)
        Creates a position from other position instance.
        Parameters:
        other - other position
    • Method Detail

      • getX

        public int getX()
      • getY

        public int getY()