Class Annotation

All Implemented Interfaces:
AnnotationTypeGeometry, Geometry, PolygonTypeGeometry, Surface, Serializable, Cloneable

public class Annotation extends OrientedRectangle implements AnnotationTypeGeometry
See Also:
  • Field Details

    • width

      protected double width
    • height

      protected double height
  • Constructor Details

    • Annotation

      public Annotation(String text, Point lowerLeft, Point upperLeft, Point upperRight, Point lowerRight)
      Constructs a new Annotation instance defined by the 4 specified coordinates. The coordinates represent the rectangular region of the annotation. The coordinate point0 is the lower left corner (when not oriented) and the others are ordered clockwise. No verification is made to ensure that the 4 points represent a rectangle. The rectangle region can be oriented.
      Parameters:
      lowerLeft - lower left corner
      upperLeft - upper left corner
      upperRight - upper right corner
      lowerRight - lower right corner
  • Method Details