net.sf.jasperreports.engine.design
Class JRDesignBreak

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElement
      extended by net.sf.jasperreports.engine.design.JRDesignElement
          extended by net.sf.jasperreports.engine.design.JRDesignBreak
All Implemented Interfaces:
java.io.Serializable, JRBreak, JRChild, JRElement, JRStyleContainer

public class JRDesignBreak
extends JRDesignElement
implements JRBreak

The actual implementation of a break element, used at design time.

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

Field Summary
protected  byte type
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, parentStyle, positionType, printWhenExpression, printWhenGroupChanges, stretchType, width, x, y
 
Fields inherited from interface net.sf.jasperreports.engine.JRBreak
TYPE_COLUMN, TYPE_PAGE
 
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
JRDesignBreak()
           
JRDesignBreak(JRDefaultStyleProvider defaultStyleProvider)
           
 
Method Summary
 void collectExpressions(JRExpressionCollector collector)
           
 JRChild getCopy(JRAbstractObjectFactory factory)
           
 int getHeight()
           
 byte getType()
          Gets the break type.
 int getX()
          Gets the the section relative horizontal offset of the element top left corner.
 void setType(byte type)
          Sets the break type.
 void writeXml(JRXmlWriter xmlWriter)
           
 
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElement
setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setY
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getForecolor, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getStyle, getWidth, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, 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
getBackcolor, getElementGroup, getForecolor, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, 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.JRStyleContainer
getDefaultStyleProvider, getStyle
 

Field Detail

type

protected byte type
Constructor Detail

JRDesignBreak

public JRDesignBreak()

JRDesignBreak

public JRDesignBreak(JRDefaultStyleProvider defaultStyleProvider)
Method Detail

getX

public int getX()
Description copied from interface: JRElement
Gets the the section relative horizontal offset of the element top left corner.

Specified by:
getX in interface JRElement
Overrides:
getX in class JRBaseElement

getHeight

public int getHeight()
Specified by:
getHeight in interface JRElement
Overrides:
getHeight in class JRBaseElement

getType

public byte getType()
Description copied from interface: JRBreak
Gets the break type.

Specified by:
getType in interface JRBreak
Returns:
one of the type constants

setType

public void setType(byte type)
Description copied from interface: JRBreak
Sets the break type.

Specified by:
setType in interface JRBreak
Parameters:
type - one of the type constants

getCopy

public JRChild getCopy(JRAbstractObjectFactory factory)
Specified by:
getCopy in interface JRChild

collectExpressions

public void collectExpressions(JRExpressionCollector collector)
Specified by:
collectExpressions in interface JRElement

writeXml

public void writeXml(JRXmlWriter xmlWriter)
              throws java.io.IOException
Specified by:
writeXml in interface JRChild
Throws:
java.io.IOException


© 2001-2006 JasperSoft Corporation www.jaspersoft.com