net.sf.jasperreports.engine.design
public class JRDesignFrame extends JRDesignElement implements JRFrame
JRFrame
to be used at design time.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_CHILDREN |
PROPERTY_ELEMENT_GROUP, PROPERTY_HEIGHT, PROPERTY_KEY, PROPERTY_PARENT_STYLE, PROPERTY_PARENT_STYLE_NAME_REFERENCE, PROPERTY_PRINT_WHEN_EXPRESSION, PROPERTY_PRINT_WHEN_GROUP_CHANGES, PROPERTY_PROPERTY_EXPRESSIONS, PROPERTY_Y
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, width, x, y
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 and Description |
---|
JRDesignFrame()
Creates a new frame object.
|
JRDesignFrame(JRDefaultStyleProvider defaultStyleProvider)
Creates a new frame object.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(int index,
JRElement element)
Inserts a sub element at specified position into the frame.
|
void |
addElement(JRElement element)
Adds a sub element to the frame.
|
void |
addElementGroup(int index,
JRElementGroup group)
Inserts an element group at specified position into the frame.
|
void |
addElementGroup(JRElementGroup group)
Adds an element group to the frame.
|
java.lang.Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
void |
copyBox(JRLineBox lineBox) |
byte |
getBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getBorderColor()
Deprecated.
Replaced by
getBox() |
byte |
getBottomBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getBottomBorderColor()
Deprecated.
Replaced by
getBox() |
int |
getBottomPadding()
Deprecated.
Replaced by
getBox() |
JRBox |
getBox()
Deprecated.
Replaced by
getLineBox() |
java.util.List |
getChildren()
Gets a list of all direct children elements or elements groups.
|
java.awt.Color |
getDefaultLineColor() |
JRElement |
getElementByKey(java.lang.String elementKey)
Gets an element from this group, based on its element key.
|
JRElement[] |
getElements()
Gets an array containing all the elements and element groups in the hierarchy.
|
byte |
getLeftBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getLeftBorderColor()
Deprecated.
Replaced by
getBox() |
int |
getLeftPadding()
Deprecated.
Replaced by
getBox() |
JRLineBox |
getLineBox() |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
java.lang.Byte |
getOwnBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getOwnBorderColor()
Deprecated.
Replaced by
getBox() |
java.lang.Byte |
getOwnBottomBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getOwnBottomBorderColor()
Deprecated.
Replaced by
getBox() |
java.lang.Integer |
getOwnBottomPadding()
Deprecated.
Replaced by
getBox() |
java.lang.Byte |
getOwnLeftBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getOwnLeftBorderColor()
Deprecated.
Replaced by
getBox() |
java.lang.Integer |
getOwnLeftPadding()
Deprecated.
Replaced by
getBox() |
java.lang.Integer |
getOwnPadding()
Deprecated.
Replaced by
getBox() |
java.lang.Byte |
getOwnRightBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getOwnRightBorderColor()
Deprecated.
Replaced by
getBox() |
java.lang.Integer |
getOwnRightPadding()
Deprecated.
Replaced by
getBox() |
java.lang.Byte |
getOwnTopBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getOwnTopBorderColor()
Deprecated.
Replaced by
getBox() |
java.lang.Integer |
getOwnTopPadding()
Deprecated.
Replaced by
getBox() |
int |
getPadding()
Deprecated.
Replaced by
getBox() |
byte |
getRightBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getRightBorderColor()
Deprecated.
Replaced by
getBox() |
int |
getRightPadding()
Deprecated.
Replaced by
getBox() |
byte |
getTopBorder()
Deprecated.
Replaced by
getBox() |
java.awt.Color |
getTopBorderColor()
Deprecated.
Replaced by
getBox() |
int |
getTopPadding()
Deprecated.
Replaced by
getBox() |
boolean |
removeElement(JRElement element)
Removes a sub element from the frame.
|
boolean |
removeElementGroup(JRElementGroup group)
Removes a group element from the frame.
|
void |
setBorder(byte border)
Deprecated.
Replaced by
getBox() |
void |
setBorder(java.lang.Byte border)
Deprecated.
Replaced by
getBox() |
void |
setBorderColor(java.awt.Color borderColor)
Deprecated.
Replaced by
getBox() |
void |
setBottomBorder(byte bottomBorder)
Deprecated.
Replaced by
getBox() |
void |
setBottomBorder(java.lang.Byte bottomBorder)
Deprecated.
Replaced by
getBox() |
void |
setBottomBorderColor(java.awt.Color bottomBorderColor)
Deprecated.
Replaced by
getBox() |
void |
setBottomPadding(int bottomPadding)
Deprecated.
Replaced by
getBox() |
void |
setBottomPadding(java.lang.Integer bottomPadding)
Deprecated.
Replaced by
getBox() |
void |
setBox(JRBox box)
Deprecated.
Replaced by
copyBox(JRLineBox) |
void |
setLeftBorder(byte leftBorder)
Deprecated.
Replaced by
getBox() |
void |
setLeftBorder(java.lang.Byte leftBorder)
Deprecated.
Replaced by
getBox() |
void |
setLeftBorderColor(java.awt.Color leftBorderColor)
Deprecated.
Replaced by
getBox() |
void |
setLeftPadding(int leftPadding)
Deprecated.
Replaced by
getBox() |
void |
setLeftPadding(java.lang.Integer leftPadding)
Deprecated.
Replaced by
getBox() |
void |
setPadding(int padding)
Deprecated.
Replaced by
getBox() |
void |
setPadding(java.lang.Integer padding)
Deprecated.
Replaced by
getBox() |
void |
setRightBorder(byte rightBorder)
Deprecated.
Replaced by
getBox() |
void |
setRightBorder(java.lang.Byte rightBorder)
Deprecated.
Replaced by
getBox() |
void |
setRightBorderColor(java.awt.Color rightBorderColor)
Deprecated.
Replaced by
getBox() |
void |
setRightPadding(int rightPadding)
Deprecated.
Replaced by
getBox() |
void |
setRightPadding(java.lang.Integer rightPadding)
Deprecated.
Replaced by
getBox() |
void |
setTopBorder(byte topBorder)
Deprecated.
Replaced by
getBox() |
void |
setTopBorder(java.lang.Byte topBorder)
Deprecated.
Replaced by
getBox() |
void |
setTopBorderColor(java.awt.Color topBorderColor)
Deprecated.
Replaced by
getBox() |
void |
setTopPadding(int topPadding)
Deprecated.
Replaced by
getBox() |
void |
setTopPadding(java.lang.Integer topPadding)
Deprecated.
Replaced by
getBox() |
void |
visit(JRVisitor visitor) |
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setY
clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getParentProperties, getPositionType, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchType, getStretchTypeValue, getStyle, getStyleNameReference, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setMode, setPositionType, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setStretchType, setWidth, setX
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementGroup, getKey, getPositionType, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setStretchType, setWidth, setX
getBackcolor, getForecolor, getHeight, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode, setMode, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getElementGroup
public static final java.lang.String PROPERTY_CHILDREN
public JRDesignFrame(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider
- default style provider instancepublic JRDesignFrame()
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public JRElement[] getElements()
JRElementGroup
getElements
in interface JRElementGroup
public void addElement(JRElement element)
element
- the element to addpublic void addElement(int index, JRElement element)
index
- the element positionelement
- the element to addpublic boolean removeElement(JRElement element)
element
- the element to removepublic void addElementGroup(JRElementGroup group)
group
- the element group to addpublic void addElementGroup(int index, JRElementGroup group)
index
- the element group positiongroup
- the element group to addpublic boolean removeElementGroup(JRElementGroup group)
group
- the group to removepublic java.util.List getChildren()
JRElementGroup
getChildren
in interface JRElementGroup
public JRElement getElementByKey(java.lang.String elementKey)
JRElementGroup
getElementByKey
in interface JRElementGroup
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
public JRBox getBox()
getLineBox()
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public void setBox(JRBox box)
copyBox(JRLineBox)
public void copyBox(JRLineBox lineBox)
public byte getBorder()
getBox()
public java.lang.Byte getOwnBorder()
getBox()
getOwnBorder
in interface JRBox
public void setBorder(byte border)
getBox()
public void setBorder(java.lang.Byte border)
getBox()
public java.awt.Color getBorderColor()
getBox()
getBorderColor
in interface JRBox
public java.awt.Color getOwnBorderColor()
getBox()
getOwnBorderColor
in interface JRBox
public void setBorderColor(java.awt.Color borderColor)
getBox()
setBorderColor
in interface JRBox
public int getPadding()
getBox()
getPadding
in interface JRBox
public java.lang.Integer getOwnPadding()
getBox()
getOwnPadding
in interface JRBox
public void setPadding(int padding)
getBox()
setPadding
in interface JRBox
public void setPadding(java.lang.Integer padding)
getBox()
setPadding
in interface JRBox
public byte getTopBorder()
getBox()
getTopBorder
in interface JRBox
public java.lang.Byte getOwnTopBorder()
getBox()
getOwnTopBorder
in interface JRBox
public void setTopBorder(byte topBorder)
getBox()
setTopBorder
in interface JRBox
public void setTopBorder(java.lang.Byte topBorder)
getBox()
setTopBorder
in interface JRBox
public java.awt.Color getTopBorderColor()
getBox()
getTopBorderColor
in interface JRBox
public java.awt.Color getOwnTopBorderColor()
getBox()
getOwnTopBorderColor
in interface JRBox
public void setTopBorderColor(java.awt.Color topBorderColor)
getBox()
setTopBorderColor
in interface JRBox
public int getTopPadding()
getBox()
getTopPadding
in interface JRBox
public java.lang.Integer getOwnTopPadding()
getBox()
getOwnTopPadding
in interface JRBox
public void setTopPadding(int topPadding)
getBox()
setTopPadding
in interface JRBox
public void setTopPadding(java.lang.Integer topPadding)
getBox()
setTopPadding
in interface JRBox
public byte getLeftBorder()
getBox()
getLeftBorder
in interface JRBox
public java.lang.Byte getOwnLeftBorder()
getBox()
getOwnLeftBorder
in interface JRBox
public void setLeftBorder(byte leftBorder)
getBox()
setLeftBorder
in interface JRBox
public void setLeftBorder(java.lang.Byte leftBorder)
getBox()
setLeftBorder
in interface JRBox
public java.awt.Color getLeftBorderColor()
getBox()
getLeftBorderColor
in interface JRBox
public java.awt.Color getOwnLeftBorderColor()
getBox()
getOwnLeftBorderColor
in interface JRBox
public void setLeftBorderColor(java.awt.Color leftBorderColor)
getBox()
setLeftBorderColor
in interface JRBox
public int getLeftPadding()
getBox()
getLeftPadding
in interface JRBox
public java.lang.Integer getOwnLeftPadding()
getBox()
getOwnLeftPadding
in interface JRBox
public void setLeftPadding(int leftPadding)
getBox()
setLeftPadding
in interface JRBox
public void setLeftPadding(java.lang.Integer leftPadding)
getBox()
setLeftPadding
in interface JRBox
public byte getBottomBorder()
getBox()
getBottomBorder
in interface JRBox
public java.lang.Byte getOwnBottomBorder()
getBox()
getOwnBottomBorder
in interface JRBox
public void setBottomBorder(byte bottomBorder)
getBox()
setBottomBorder
in interface JRBox
public void setBottomBorder(java.lang.Byte bottomBorder)
getBox()
setBottomBorder
in interface JRBox
public java.awt.Color getBottomBorderColor()
getBox()
getBottomBorderColor
in interface JRBox
public java.awt.Color getOwnBottomBorderColor()
getBox()
getOwnBottomBorderColor
in interface JRBox
public void setBottomBorderColor(java.awt.Color bottomBorderColor)
getBox()
setBottomBorderColor
in interface JRBox
public int getBottomPadding()
getBox()
getBottomPadding
in interface JRBox
public java.lang.Integer getOwnBottomPadding()
getBox()
getOwnBottomPadding
in interface JRBox
public void setBottomPadding(int bottomPadding)
getBox()
setBottomPadding
in interface JRBox
public void setBottomPadding(java.lang.Integer bottomPadding)
getBox()
setBottomPadding
in interface JRBox
public byte getRightBorder()
getBox()
getRightBorder
in interface JRBox
public java.lang.Byte getOwnRightBorder()
getBox()
getOwnRightBorder
in interface JRBox
public void setRightBorder(byte rightBorder)
getBox()
setRightBorder
in interface JRBox
public void setRightBorder(java.lang.Byte rightBorder)
getBox()
setRightBorder
in interface JRBox
public java.awt.Color getRightBorderColor()
getBox()
getRightBorderColor
in interface JRBox
public java.awt.Color getOwnRightBorderColor()
getBox()
getOwnRightBorderColor
in interface JRBox
public void setRightBorderColor(java.awt.Color rightBorderColor)
getBox()
setRightBorderColor
in interface JRBox
public int getRightPadding()
getBox()
getRightPadding
in interface JRBox
public java.lang.Integer getOwnRightPadding()
getBox()
getOwnRightPadding
in interface JRBox
public void setRightPadding(int rightPadding)
getBox()
setRightPadding
in interface JRBox
public void setRightPadding(java.lang.Integer rightPadding)
getBox()
setRightPadding
in interface JRBox
public java.awt.Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class JRBaseElement
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com