Class SgroupBracket

java.lang.Object
org.openscience.cdk.sgroup.SgroupBracket

public class SgroupBracket extends Object
Representation of an Sgroup bracket.
  • Constructor Details

    • SgroupBracket

      public SgroupBracket(double x1, double y1, double x2, double y2)
      Create an Sgroup bracket.
      Parameters:
      x1 - first x coord
      y1 - first y coord
      x2 - second x coord
      y2 - second y coord
    • SgroupBracket

      public SgroupBracket(SgroupBracket org)
      Copy constructor.
      Parameters:
      org - original sgroup bracket
  • Method Details

    • getFirstPoint

      public javax.vecmath.Point2d getFirstPoint()
      First point of the bracket (x1,y1).
      Returns:
      first point
    • getSecondPoint

      public javax.vecmath.Point2d getSecondPoint()
      Second point of the bracket (x2,y2).
      Returns:
      second point
    • toString

      public String toString()
      Overrides:
      toString in class Object