public interface ElementContainer extends SimpleElementContainer
Modifier and Type | Method and Description |
---|---|
Box |
addBox(int xpos,
int ypos,
int objwidth,
int objheight,
int y2,
Section endSection)
Adds a new box to container and returns it.
|
Chart2 |
addChart2(ChartStyle style,
int xpos,
int ypos,
int objwidth,
int objheight)
Adds a new chart element to the container and returns it.
|
CrossTab |
addCrossTab(int xpos,
int ypos,
SummaryField field)
Adds the simplest possible cross table (at least on field for summarization) into this container and returns it.
|
com.inet.report.FormFieldElement |
addFormField(int xpos,
int ypos,
int objwidth,
int objheight)
Adds a new form field element to the container.
|
com.inet.report.InteractiveSorting |
addInteractiveSorting(Field field,
int xpos,
int ypos,
int objwidth,
int objheight)
Adds a new InteractiveSorting element to the container.
|
SignatureForm |
addSignatureForm(int xpos,
int ypos,
int objwidth,
int objheight)
Adds a new signature form element to the container and returns it.
|
Subreport |
addSubreport(int xpos,
int ypos,
int objwidth,
int objheight)
Adds a new subreport element to the container and returns it.
|
Subreport |
addSubreport(int xpos,
int ypos,
int objwidth,
int objheight,
java.lang.String filename)
Adds a new subreport element with definition from file to the container and returns it.
|
Line |
addVerticalLine(int xpos,
int ypos,
int y2,
Section endSection)
Adds a new vertical line to the container and returns it.
|
void |
copyContent(SimpleElementContainer source)
Copies content and properties of the source container into this container.
|
void |
moveElement(Element elem,
SimpleElementContainer dest)
Moves the element
elem from this container to the destination container dest . |
Element |
pasteElement(java.lang.Object copy)
Paste a copy of an Element in this container.
|
addBox, addDatabasePicture, addFieldElement, addHorizontalLine, addJavaBean, addPicture, addPicture, addPicture, addPicture, addPicture, addText, addVerticalLine, getElements, getElementsV, getReportElement, getReportElementsCount, remove
Box addBox(int xpos, int ypos, int objwidth, int objheight, int y2, Section endSection)
xpos
- The horizontal offset in twips.ypos
- The vertical offset in twips.objwidth
- The width of the box in twips.objheight
- The minimal height of the box in start section in twips.y2
- The vertical offset of the end point in end sectionendSection
- The section where the box endsChart2 addChart2(ChartStyle style, int xpos, int ypos, int objwidth, int objheight) throws java.lang.IllegalArgumentException
BarStyle.BAR2D
for a simple bar chart 2D.
To see which chart types are allowed see the subclasses of ChartStyle
.
Initializes all properties with default values.style
- the style of chart.xpos
- the x offset of the upper left corner in twips.ypos
- the y offset of the upper left corner in twips.objwidth
- the total width of the chart element in twips.objheight
- the total height of the chart element in twips.java.lang.IllegalArgumentException
- if the parameters width, height or chartType are negative.Chart2
,
ChartStyle
,
BarStyle
,
LineStyle
,
AreaStyle
,
Chart3DStyle
,
PieStyle
,
XYStyle
,
StockStyle
,
ContinuousStyle
,
GanttStyle
,
SimpleElementContainer.remove(Element)
,
SimpleElementContainer.getElements()
CrossTab addCrossTab(int xpos, int ypos, SummaryField field) throws java.lang.IllegalArgumentException
com.inet.report.CrossTab
.xpos
- The x position of the upper left corner of the whole cross table in twips..ypos
- The y position of the upper left corner of the whole cross table in twips..field
- The field to summarize in cross table.java.lang.IllegalArgumentException
- if the parameters x or y are negativeCrossTab
SignatureForm addSignatureForm(int xpos, int ypos, int objwidth, int objheight) throws java.lang.IllegalArgumentException
xpos
- the x position of the signature form element.ypos
- the y position of the signature form element.objwidth
- the width of the signature form element.objheight
- the height of the signature form element.java.lang.IllegalArgumentException
- if the parameters x, y, width or height are negativeSubreport addSubreport(int xpos, int ypos, int objwidth, int objheight) throws java.lang.IllegalArgumentException
xpos
- The x offset of the left upper corner of subreport frame.ypos
- The y offset of the left upper corner of subreport frame.objwidth
- The width of the subreport frame.objheight
- The height of the subreport frame.java.lang.IllegalArgumentException
- if the parameters x, y, width or height are negative.java.lang.IllegalStateException
- if the subreport is attempted to be added to a subreportSubreport addSubreport(int xpos, int ypos, int objwidth, int objheight, java.lang.String filename) throws ReportException, java.net.MalformedURLException, java.io.FileNotFoundException
xpos
- The x offset of the left upper corner of subreport frame.ypos
- The y offset of the left upper corner of subreport frame.objwidth
- The width of the subreport frame.objheight
- The height of the subreport frame.filename
- The file name of the subreport to insert.java.net.MalformedURLException
- Thrown to indicate that a malformed URL has occurred.ReportException
- if Engine is not initialized or finished.java.io.FileNotFoundException
- If no file for the subreport were found.java.lang.IllegalStateException
- if the subreport is attempted to be added to a subreportcom.inet.report.FormFieldElement addFormField(int xpos, int ypos, int objwidth, int objheight)
xpos
- The x offset of the left upper corner of the form field.ypos
- The y offset of the left upper corner of the form field.objwidth
- The width of the form field.objheight
- The height of the form field.com.inet.report.InteractiveSorting addInteractiveSorting(Field field, int xpos, int ypos, int objwidth, int objheight)
field
- the a group field or a sorting field which sorting should be interactive.xpos
- The x offset of the left upper corner of the form field.ypos
- The y offset of the left upper corner of the form field.objwidth
- The width of the form field.objheight
- The height of the form field.Line addVerticalLine(int xpos, int ypos, int y2, Section endSection)
xpos
- The horizontal offset of the start point in twips.ypos
- The vertical offset of the start point in twips.y2
- The vertical offset of the end point in end section in twips.endSection
- The section where the line should end.Element pasteElement(java.lang.Object copy) throws ReportException
copy
- An Object created with the method Element.copy().ReportException
- If the Element cannot be created because of missing References.Element.copy()
void copyContent(SimpleElementContainer source)
source
- The container thats content and properties should copied.void moveElement(Element elem, SimpleElementContainer dest) throws ReportException
elem
from this container to the destination container dest
.elem
- The element, which should move to another container.dest
- The destination container of movement.ReportException
- will thrown if dest
or elem
is
null
.Element.setIndex(int)
Copyright © 1999-2020 by i-net software GmbH