Class JWTImageAnnotation

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

    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:
    Serialized Form
    • Field Detail

      • imageID

        protected String imageID
    • Constructor Detail

      • JWTImageAnnotation

        public JWTImageAnnotation()
    • Method Detail

      • getImageID

        public String getImageID()
        Obtains the identifier of the image, such that an AnnotationImageProvider can find it.
        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.
        setSize in class RectangleAnnotation