Class GridLines

java.lang.Object
qupath.lib.gui.viewer.GridLines

public class GridLines extends Object
Simple class used for storing information related to GridLines that may be painted over an image.

This implementation simply wraps around the properties in PathPrefs.

Author:
Pete Bankhead
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Horizontal spacing between lines for any counting grid.
    double
    Vertical spacing between lines for any counting grid.
    double
    Starting x coordinate for any counting grid (usually 0).
    double
    Starting y coordinate for any counting grid (usually 0).
    void
    setSpaceX(double spaceX)
    Set the horizontal spacing between lines for any counting grid.
    void
    setSpaceY(double spaceY)
    Set the vertical spacing between lines for any counting grid.
    void
    setUseMicrons(boolean useMicrons)
    Specify whether to use calibrated units when calculating coordinates for any counting grid.
    boolean
    Query whether to use calibrated units when calculating coordinates for any counting grid.

    Methods inherited from class java.lang.Object

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

    • GridLines

      public GridLines()
  • Method Details

    • getStartX

      public double getStartX()
      Starting x coordinate for any counting grid (usually 0).
      Returns:
      See Also:
    • getStartY

      public double getStartY()
      Starting y coordinate for any counting grid (usually 0).
      Returns:
      See Also:
    • getSpaceX

      public double getSpaceX()
      Horizontal spacing between lines for any counting grid.
      Returns:
      See Also:
    • getSpaceY

      public double getSpaceY()
      Vertical spacing between lines for any counting grid.
      Returns:
      See Also:
    • setSpaceX

      public void setSpaceX(double spaceX)
      Set the horizontal spacing between lines for any counting grid.
      Parameters:
      spaceX -
      See Also:
    • setSpaceY

      public void setSpaceY(double spaceY)
      Set the vertical spacing between lines for any counting grid.
      Parameters:
      spaceY -
      See Also:
    • useMicrons

      public boolean useMicrons()
      Query whether to use calibrated units when calculating coordinates for any counting grid.
      Returns:
      See Also:
    • setUseMicrons

      public void setUseMicrons(boolean useMicrons)
      Specify whether to use calibrated units when calculating coordinates for any counting grid.
      Parameters:
      useMicrons -
      See Also: