public class JRPrintImageArea extends Object implements Serializable
JRPrintImageAreaHyperlink
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_CIRCLE_COORDINATES_ERROR |
static String |
EXCEPTION_MESSAGE_KEY_POLYGON_COORDINATES_ERROR |
static String |
EXCEPTION_MESSAGE_KEY_RECTANGLE_COORDINATES_ERROR |
static String |
EXCEPTION_MESSAGE_KEY_UNKNOWN_HTML_SHAPE |
static String |
EXCEPTION_MESSAGE_KEY_UNKNOWN_SHAPE |
static byte |
SHAPE_CIRCLE |
static byte |
SHAPE_DEFAULT |
static String |
SHAPE_HTML_CIRCLE |
static String |
SHAPE_HTML_DEFAULT |
static String |
SHAPE_HTML_POLYGON |
static String |
SHAPE_HTML_RECTANGLE |
static byte |
SHAPE_POLYGON |
static byte |
SHAPE_RECTANGLE |
Constructor and Description |
---|
JRPrintImageArea()
Creates a blank image area.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsPoint(int x,
int y)
Decides whether a specific point is inside this area.
|
protected Shape |
createAWTRectangle() |
protected Shape |
createAWTShape() |
protected void |
ensureAWTShape() |
int[] |
getCoordinates()
Returns the shape coordinates.
|
static String |
getHtmlShape(byte shape)
Returns the HTML shape type corresponding to a shape type.
|
byte |
getShape()
Returns the shape type.
|
static byte |
getShape(String htmlShape)
Returns the shape constant corresponding the HTML are shape type.
|
protected boolean |
hasAWTShape() |
void |
setCoordinates(int[] coordinates)
Sets the shape coordinates.
|
void |
setShape(byte shape)
Sets the area shape type.
|
public static final String EXCEPTION_MESSAGE_KEY_CIRCLE_COORDINATES_ERROR
public static final String EXCEPTION_MESSAGE_KEY_POLYGON_COORDINATES_ERROR
public static final String EXCEPTION_MESSAGE_KEY_RECTANGLE_COORDINATES_ERROR
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_HTML_SHAPE
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_SHAPE
public static final byte SHAPE_DEFAULT
public static final byte SHAPE_RECTANGLE
public static final byte SHAPE_CIRCLE
public static final byte SHAPE_POLYGON
public static final String SHAPE_HTML_DEFAULT
public static final String SHAPE_HTML_RECTANGLE
public static final String SHAPE_HTML_CIRCLE
public static final String SHAPE_HTML_POLYGON
public static byte getShape(String htmlShape)
htmlShape
- the HTML are shape typepublic static String getHtmlShape(byte shape)
shape
- the shape typepublic byte getShape()
public void setShape(byte shape)
shape
- the shape type, one of
public int[] getCoordinates()
public void setCoordinates(int[] coordinates)
coordinates
- the shape coordinatespublic boolean containsPoint(int x, int y)
x
- the X coordinate of the pointy
- the Y coordinate of the pointprotected void ensureAWTShape()
protected boolean hasAWTShape()
protected Shape createAWTShape()
protected Shape createAWTRectangle()
Copyright © 2016. All rights reserved.