|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface ElementContainer
The interface describes the methods to add some complex elements such as multi-section lines, charts, subreports and crosstabs to the element container. There are the methods for copy, move and paste elements too.
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from interface com.inet.report.SimpleElementContainer |
|---|
addBox, addDatabasePicture, addFieldElement, addHorizontalLine, addJavaBean, addPicture, addPicture, addPicture, addPicture, addPicture, addText, addVerticalLine, getElements, getElementsV, getReportElement, getReportElementsCount, remove |
| Method Detail |
|---|
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 ends
Chart2 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 negative
Subreport 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 subreport
Subreport 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 subreport
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)
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||