Class JRPrintImageArea

java.lang.Object
net.sf.jasperreports.engine.JRPrintImageArea
All Implemented Interfaces:
Serializable

public class JRPrintImageArea extends Object implements Serializable
An area on an image.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  • Field Details

  • Constructor Details

    • JRPrintImageArea

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

    • 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
    • setShape

      public void setShape(byte shape)
      Sets the area shape type.
      Parameters:
      shape - the shape type, one of
    • 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()