|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.JRPrintImageArea
public class JRPrintImageArea
An area on an image.
JRPrintImageAreaHyperlink,
Serialized Form| Field Summary | |
|---|---|
static byte |
SHAPE_CIRCLE
|
static byte |
SHAPE_DEFAULT
|
static java.lang.String |
SHAPE_HTML_CIRCLE
|
static java.lang.String |
SHAPE_HTML_DEFAULT
|
static java.lang.String |
SHAPE_HTML_POLYGON
|
static java.lang.String |
SHAPE_HTML_RECTANGLE
|
static byte |
SHAPE_POLYGON
|
static byte |
SHAPE_RECTANGLE
|
| Constructor Summary | |
|---|---|
JRPrintImageArea()
Creates a blank image area. |
|
| Method Summary | |
|---|---|
boolean |
containsPoint(int x,
int y)
Decides whether a specific point is inside this area. |
protected java.awt.Shape |
createAWTRectangle()
|
protected java.awt.Shape |
createAWTShape()
|
protected void |
ensureAWTShape()
|
int[] |
getCoordinates()
Returns the shape coordinates. |
static java.lang.String |
getHtmlShape(byte shape)
Returns the HTML shape type corresponding to a shape type. |
byte |
getShape()
Returns the shape type. |
static byte |
getShape(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 java.lang.String SHAPE_HTML_DEFAULT
public static final java.lang.String SHAPE_HTML_RECTANGLE
public static final java.lang.String SHAPE_HTML_CIRCLE
public static final java.lang.String SHAPE_HTML_POLYGON
| Constructor Detail |
|---|
public JRPrintImageArea()
| Method Detail |
|---|
public static byte getShape(java.lang.String htmlShape)
htmlShape - the HTML are shape type
public static java.lang.String getHtmlShape(byte shape)
shape - the shape type
public byte getShape()
public void setShape(byte shape)
shape - the shape type, one of
public int[] getCoordinates()
public void setCoordinates(int[] coordinates)
coordinates - the shape coordinates
public boolean containsPoint(int x,
int y)
x - the X coordinate of the pointy - the Y coordinate of the point
protected void ensureAWTShape()
protected boolean hasAWTShape()
protected java.awt.Shape createAWTShape()
protected java.awt.Shape createAWTRectangle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||