Class SquareGridNumbering

  • Constructor Details Link icon

    • SquareGridNumbering Link icon

      public SquareGridNumbering()
  • Method Details Link icon

    • addTo Link icon

      public void addTo(Buildable parent)
      Description copied from interface: Buildable
      Adds this component to its parent. In order to make Buildable objects extensible, the child is responsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.
      Parameters:
      parent - parent Buildable to add this component to as a subcomponent.
    • getGridVisualizer Link icon

      protected JComponent getGridVisualizer()
      Description copied from class: RegularGridNumbering
      Return a component that shows how the grid will draw itself
      Specified by:
      getGridVisualizer in class RegularGridNumbering
    • draw Link icon

      public void draw(Graphics g, Rectangle bounds, Rectangle visibleRect, double scale, boolean reversed)
      Draw the numbering, if visible
    • forceDraw Link icon

      public void forceDraw(Graphics g, Rectangle bounds, Rectangle visibleRect, double scale, boolean reversed)
      Draw the numbering, even if not visible
    • getColumn Link icon

      public int getColumn(Point p)
      Specified by:
      getColumn in class RegularGridNumbering
    • getRow Link icon

      public int getRow(Point p)
      Specified by:
      getRow in class RegularGridNumbering
    • getCenterPoint Link icon

      public Point getCenterPoint(int col, int row)
      Specified by:
      getCenterPoint in class RegularGridNumbering
    • removeFrom Link icon

      public void removeFrom(Buildable parent)
      Description copied from interface: Configurable
      Remove this component from its parent
    • getMaxRows Link icon

      protected int getMaxRows()
    • getMaxColumns Link icon

      protected int getMaxColumns()