net.sf.jasperreports.engine
Interface JRGraphicElement

All Superinterfaces:
JRChild, JRElement, JRStyleContainer
All Known Subinterfaces:
JREllipse, JRImage, JRLine, JRRectangle
All Known Implementing Classes:
JRBaseEllipse, JRBaseGraphicElement, JRBaseImage, JRBaseLine, JRBaseRectangle, JRDesignEllipse, JRDesignGraphicElement, JRDesignImage, JRDesignLine, JRDesignRectangle, JRFillEllipse, JRFillGraphicElement, JRFillImage, JRFillLine, JRFillRectangle

public interface JRGraphicElement
extends JRElement

An abstract representation of a report graphic element. It provides basic functionality for images, lines, rectangles and ellipses.

Version:
$Id: JRGraphicElement.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
static byte FILL_SOLID
          Constant useful for specifying that the inside of an element should be drawn using the background color.
static byte PEN_1_POINT
          Contant useful for specifying that an element border of 1 pixel.
static byte PEN_2_POINT
          Contant useful for specifying that an element border of 2 pixels.
static byte PEN_4_POINT
          Contant useful for specifying that an element border of 4 pixels.
static byte PEN_DOTTED
          Contant useful for specifying that an element has a dashed border.
static byte PEN_NONE
          Contant useful for specifying that the element border will not be drawn.
static byte PEN_THIN
          Contant useful for specifying that an element has a thin border (0.5 pixels)
 
Fields inherited from interface net.sf.jasperreports.engine.JRElement
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT
 
Method Summary
 byte getFill()
          Indicates the fill type used for this element.
 java.lang.Byte getOwnFill()
           
 java.lang.Byte getOwnPen()
           
 byte getPen()
          Indicates the pen type used for this element.
 void setFill(byte fill)
          Sets the fill type used for this element.
 void setFill(java.lang.Byte fill)
           
 void setPen(byte pen)
          Sets the pen type that will used for this element.
 void setPen(java.lang.Byte pen)
           
 
Methods inherited from interface net.sf.jasperreports.engine.JRElement
collectExpressions, getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
getCopy, writeXml
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 

Field Detail

PEN_NONE

static final byte PEN_NONE
Contant useful for specifying that the element border will not be drawn.

See Also:
Constant Field Values

PEN_1_POINT

static final byte PEN_1_POINT
Contant useful for specifying that an element border of 1 pixel.

See Also:
Constant Field Values

PEN_2_POINT

static final byte PEN_2_POINT
Contant useful for specifying that an element border of 2 pixels.

See Also:
Constant Field Values

PEN_4_POINT

static final byte PEN_4_POINT
Contant useful for specifying that an element border of 4 pixels.

See Also:
Constant Field Values

PEN_DOTTED

static final byte PEN_DOTTED
Contant useful for specifying that an element has a dashed border.

See Also:
Constant Field Values

PEN_THIN

static final byte PEN_THIN
Contant useful for specifying that an element has a thin border (0.5 pixels)

See Also:
Constant Field Values

FILL_SOLID

static final byte FILL_SOLID
Constant useful for specifying that the inside of an element should be drawn using the background color. It is ignored if the element draw mode is transparent.

See Also:
Constant Field Values
Method Detail

getPen

byte getPen()
Indicates the pen type used for this element.

Returns:
one of the pen constants in this class

getOwnPen

java.lang.Byte getOwnPen()

setPen

void setPen(byte pen)
Sets the pen type that will used for this element.

Parameters:
pen - one of the pen constants in this class

setPen

void setPen(java.lang.Byte pen)

getFill

byte getFill()
Indicates the fill type used for this element.

Returns:
one of the pen constants in this class

getOwnFill

java.lang.Byte getOwnFill()

setFill

void setFill(byte fill)
Sets the fill type used for this element.

Parameters:
fill - one of the pen constants in this class

setFill

void setFill(java.lang.Byte fill)


© 2001-2006 JasperSoft Corporation www.jaspersoft.com