Package ij.gui

Class Line

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Point>
Direct Known Subclasses:
Arrow

public class Line
extends Roi
This class represents a straight line selection.
See Also:
Serialized Form
  • Field Details

    • x1

      public int x1
    • y1

      public int y1
    • x2

      public int x2
    • y2

      public int y2
    • x1d

      public double x1d
    • y1d

      public double y1d
    • x2d

      public double x2d
    • y2d

      public double y2d
    • x1R

      protected double x1R
    • y1R

      protected double y1R
    • x2R

      protected double x2R
    • y2R

      protected double y2R
    • startxd

      protected double startxd
    • startyd

      protected double startyd
  • Constructor Details

    • Line

      public Line​(int ox1, int oy1, int ox2, int oy2)
      Creates a new straight line selection using the specified starting and ending offscreen integer coordinates.
    • Line

      public Line​(double ox1, double oy1, double ox2, double oy2)
      Creates a new straight line selection using the specified starting and ending offscreen double coordinates.
    • Line

      public Line​(int sx, int sy, ImagePlus imp)
      Starts the process of creating a new user-generated straight line selection. 'sx' and 'sy' are screen coordinates that specify the start of the line. The user will determine the end of the line interactively using rubber banding.
    • Line

      public Line​(int ox1, int oy1, int ox2, int oy2, ImagePlus imp)
      Deprecated.
      replaced by Line(int, int, int, int)
  • Method Details