net.sf.jasperreports.engine.design
Class JRDesignElement

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseElement
      extended bynet.sf.jasperreports.engine.design.JRDesignElement
All Implemented Interfaces:
JRChild, JRElement, java.io.Serializable
Direct Known Subclasses:
JRDesignChart, JRDesignGraphicElement, JRDesignSubreport, JRDesignTextElement

public abstract class JRDesignElement
extends JRBaseElement

This class provides a skeleton implementation for a design time report element. The difference between design elements and compiled elements is that at design time they are more customizable. This class contains setters for properties that can be only modified at design time.

Version:
$Id: JRDesignElement.java,v 1.25 2005/09/07 13:58:25 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, positionType, printWhenExpression, printWhenGroupChanges, stretchType, width, x, y
 
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
 
Constructor Summary
JRDesignElement()
           
 
Method Summary
 void setElementGroup(JRElementGroup elementGroup)
          Specifies the logical group that the element belongs to.
 void setHeight(int height)
           
 void setKey(java.lang.String key)
          Sets the unique identifier for the element.
 void setPrintWhenExpression(JRExpression expression)
          Sets the print when expression.
 void setPrintWhenGroupChanges(JRGroup group)
          Specifies the group for which an element with a printRepeatedValues attribute set to true will be redisplayed even if the value has not changed.
 void setY(int y)
          Sets the vertical section relative offset for the element.
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRElement
collectExpressions
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
getCopy, writeXml
 

Constructor Detail

JRDesignElement

public JRDesignElement()
Method Detail

setKey

public void setKey(java.lang.String key)
Sets the unique identifier for the element.


setY

public void setY(int y)
Sets the vertical section relative offset for the element.


setHeight

public void setHeight(int height)

setPrintWhenExpression

public void setPrintWhenExpression(JRExpression expression)
Sets the print when expression. This expression must always return an instance of Boolean and its value will decide if the element will be displayed.


setPrintWhenGroupChanges

public void setPrintWhenGroupChanges(JRGroup group)
Specifies the group for which an element with a printRepeatedValues attribute set to true will be redisplayed even if the value has not changed.


setElementGroup

public void setElementGroup(JRElementGroup elementGroup)
Specifies the logical group that the element belongs to. More elements can be grouped in order to get the height of the tallest one.

See Also:
JRElement.STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT


© 2001-2005 JasperSoft Corporation www.jaspersoft.com