Class JRPrintImageArea

    • Constructor Detail

      • JRPrintImageArea

        public JRPrintImageArea()
        Creates a blank image area.
    • Method Detail

      • getShape

        public static byte getShape​(String htmlShape)
        Returns the shape constant corresponding the HTML are shape type.
        Parameters:
        htmlShape - the HTML are shape type
        Returns:
        the corresponding shape constant
      • getHtmlShape

        public static String getHtmlShape​(byte shape)
        Returns the HTML shape type corresponding to a shape type.
        Parameters:
        shape - the shape type
        Returns:
        the HTML shape type
      • getShape

        public byte getShape()
        Returns the shape type.
        Returns:
        the shape type
      • getCoordinates

        public int[] getCoordinates()
        Returns the shape coordinates.
        Returns:
        the shape coordinates
      • setCoordinates

        public void setCoordinates​(int[] coordinates)
        Sets the shape coordinates.
        Parameters:
        coordinates - the shape coordinates
      • containsPoint

        public boolean containsPoint​(int x,
                                     int y)
        Decides whether a specific point is inside this area.
        Parameters:
        x - the X coordinate of the point
        y - the Y coordinate of the point
        Returns:
        whether the point is inside this area
      • ensureAWTShape

        protected void ensureAWTShape()
      • hasAWTShape

        protected boolean hasAWTShape()
      • createAWTShape

        protected Shape createAWTShape()
      • createAWTRectangle

        protected Shape createAWTRectangle()