Class SquareGridNumbering

All Implemented Interfaces:
AutoConfigurable, Buildable, Configurable, GridNumbering, PropertyNameSource, ValidityChecker, Translatable, ImageSearchTarget, SearchTarget

public class SquareGridNumbering extends RegularGridNumbering
  • Constructor Details

    • SquareGridNumbering

      public SquareGridNumbering()
  • Method Details

    • addTo

      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

      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

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

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

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

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

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

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

      protected int getMaxRows()
    • getMaxColumns

      protected int getMaxColumns()