Class JWTImageAnnotation

All Implemented Interfaces:
PermissionsProvider<Annotation>, PropertiesProvider, com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation, Serializable, org.jadice.util.base.MementoOriginator

public class JWTImageAnnotation extends RectangleAnnotation
A sub type of a RectangleAnnotation whose content is an image.

The JWTImageAnnotation holds an imageID instead of an image. As the renderer renders the annotation it requests the image from the server by its ID and matching profile.

See Also:
  • Field Details

    • imageID

      protected String imageID
  • Constructor Details

    • JWTImageAnnotation

      public JWTImageAnnotation()
  • Method Details

    • getImageID

      public String getImageID()
      Obtains the identifier of the image, such that an AnnotationImageProvider can find it.
      Returns:
      The image id.
    • setImageID

      public void setImageID(String imageID)
      The identifier of the image, such that an AnnotationImageProvider can find it.
    • setSize

      public void setSize(double width, double height)
      Description copied from class: Annotation
      Set the size of the annotation to the given size. Depending on the type of annotation, this may not be possible. E.g. stamp annotations handle the sizing on their own, so they will refuse to resize themselves. An IllegalArgumentExceptionis thrown in this case. Caveat: it is currently necessary, to force a repaint on the viewer in order to make the results of the modification visible. Moreover there are no modification events fired on the page and document. This will change in the future.
      Overrides:
      setSize in class RectangleAnnotation
      Parameters:
      width -
      height -
    • copy

      public JWTImageAnnotation copy()
      Specified by:
      copy in interface com.levigo.jadice.web.shared.model.annotation.internal.JwtAnnotation
      Overrides:
      copy in class RectangleAnnotation
    • clone

      public JWTImageAnnotation clone()
      Overrides:
      clone in class Annotation
    • copyAttributesTo

      protected void copyAttributesTo(Annotation annotation)
      Overrides:
      copyAttributesTo in class RectangleAnnotation