|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.FixedContainer
public class FixedContainer
FixedContainer is an element container. It can be used to create fixed position and size elements in a non-flow page area. This class is also the base class for section band. It manages the positioning and size of elements in the container.
| Field Summary | |
|---|---|
protected WeakReference |
parent
|
| Constructor Summary | |
|---|---|
FixedContainer(ReportSheet parent)
Create a container. |
|
| Method Summary | |
|---|---|
String |
addBean(String name,
Rectangle bounds)
Add a bean to the report. |
String |
addBullet(Image icon,
Rectangle bounds)
Add a bullet with user specified image as bullet icon. |
String |
addBullet(Rectangle bounds)
Add a bullet to the document. |
String |
addChart(DataSet chart,
Rectangle bounds)
Add a chart to the report. |
String |
addComponent(Component comp,
Rectangle bounds)
Add an AWT component to the document. |
String |
addElement(ReportElement e,
Rectangle bounds)
Add an element to the document. |
String |
addElement(ReportElement e,
Rectangle bounds,
SectionBand.Separator vseparator)
Add an element to the document. |
String |
addForm(FormLens form,
Rectangle bounds)
Add a form to the document. |
String |
addImage(Image image,
Rectangle bounds)
Add an image to the document. |
String |
addPainter(Painter area,
Rectangle bounds)
Add a painter element to the document. |
String |
addSeparator(int style,
Rectangle bounds)
Add a separator. |
void |
addShape(PageLayout.Shape shape)
Add a shape to the report. |
String |
addTab(int fill,
Rectangle bounds)
Add a tab. |
String |
addTable(TableLens table,
Rectangle bounds)
Add a table to the document. |
String |
addText(String text,
Rectangle bounds)
Add a text element to the document. |
String |
addText(TextLens text,
Rectangle bounds)
Add a text element to the document. |
String |
addTextBox(String text,
int border,
int textalign,
Rectangle bounds)
Add a text box to the document. |
String |
addTextBox(TextLens text,
int border,
int textalign,
Rectangle bounds)
Add a text box to the document. |
String |
addTextBox(TextLens text,
Rectangle bounds)
Add a text box to the document. |
String |
addTOC(TOC toc,
Rectangle bounds)
Add a table of contents section to the report. |
Object |
clone()
|
Enumeration |
elements()
Get all elements in the container. |
Enumeration |
elements(boolean sort)
Get all elements in the container. |
Rectangle |
getBounds(int idx)
Get the bounds of the specified element. |
ReportElement |
getElement(int idx)
Get the specified element. |
ReportElement |
getElement(String id)
Find an element with the specified ID. |
int |
getElementCount()
Return the number of elements in the document. |
int |
getElementIndex(ReportElement e)
Get the index of the specified element. |
int |
getElementIndex(String id)
Find an element with the specified ID. |
Rectangle |
getPrintBounds(int idx)
Get the bounds of the specified element. |
ReportSheet |
getReport()
Get the report this container is associated with. |
PageLayout.Shape |
getShape(int idx)
Get the specified shape. |
int |
getShapeCount()
Get the number of shapes contained in this report. |
int |
getShapeIndex(PageLayout.Shape shape)
Find the index of the shape. |
SectionBand.Separator |
getVSeparator(int idx)
Get the vline setting of the specified element. |
SectionBand.Separator[] |
getVSeparators()
Get the vline setting of the specified element. |
void |
removeAllElements()
Remove all elements. |
void |
removeElement(int idx)
Remove the specified element. |
void |
removeShape(int idx)
Remove the specified shape. |
void |
reset()
Reset the internal state so it's ready for next printing. |
void |
setBounds(int idx,
Rectangle bounds)
Set the bounds of the specified element. |
void |
setElement(int idx,
ReportElement elem)
Replace an element at the specified position. |
void |
setPrintBounds(int idx,
Rectangle bounds)
Set the bounds of the specified element. |
void |
setReport(ReportSheet report)
Set the report this element is contained in. |
void |
setVSeparator(int idx,
SectionBand.Separator bounds)
Set the vline setting of the specified element. |
void |
setVSeparators(SectionBand.Separator[] arr)
Set the vline setting of the specified element. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient WeakReference parent
| Constructor Detail |
|---|
public FixedContainer(ReportSheet parent)
parent - ReportSheet the container is associated with.| Method Detail |
|---|
public ReportSheet getReport()
public void setReport(ReportSheet report)
public String addText(String text,
Rectangle bounds)
text - text string.bounds - position and size of the element in the container.
public String addText(TextLens text,
Rectangle bounds)
The inetsoft.report.lens package also contains a StreamTextLens, which allows retrieving text from a file, URL, or any input stream.
text - text content lens.bounds - position and size of the element in the container.
public String addTextBox(TextLens text,
Rectangle bounds)
text - text content.bounds - position and size of the element in the container.
public String addTextBox(TextLens text,
int border,
int textalign,
Rectangle bounds)
text - text content.border - border line style. One of the line styles defined in
the StyleConstants class.textalign - text alignment within the box.bounds - position and size of the element in the container.
public String addTextBox(String text,
int border,
int textalign,
Rectangle bounds)
text - text content.border - border line style. One of the line styles defined in
the StyleConstants class.textalign - text alignment within the box.bounds - position and size of the element in the container.
public String addPainter(Painter area,
Rectangle bounds)
area - the painter element.bounds - position and size of the element in the container.
public String addChart(DataSet chart,
Rectangle bounds)
chart - chart data model.bounds - position and size of the element in the container.
public String addComponent(Component comp,
Rectangle bounds)
comp - component.bounds - position and size of the element in the container.
public String addImage(Image image,
Rectangle bounds)
image - image object.bounds - position and size of the element in the container.
public String addBullet(Rectangle bounds)
bounds - position and size of the element in the container.
public String addBullet(Image icon,
Rectangle bounds)
icon - icon to used for bullet.bounds - position and size of the element in the container.
public String addSeparator(int style,
Rectangle bounds)
style - the line style (defined in StyleConstants).bounds - position and size of the element in the container.
public String addTab(int fill,
Rectangle bounds)
fill - a line style defined in StyleConstants.bounds - position and size of the element in the container.
public String addTable(TableLens table,
Rectangle bounds)
table - table lens.bounds - position and size of the element in the container.
public String addForm(FormLens form,
Rectangle bounds)
form - form lens.bounds - position and size of the element in the container.
public String addTOC(TOC toc,
Rectangle bounds)
toc - table of contents style.bounds - position and size of the element in the container.
public String addBean(String name,
Rectangle bounds)
name - name.bounds - position and size of the element in the container.
public String addElement(ReportElement e,
Rectangle bounds)
e - document element.bounds - position and size of the element in the container.
public String addElement(ReportElement e,
Rectangle bounds,
SectionBand.Separator vseparator)
e - document element.bounds - position and size of the element in the container.vseparator - position and vertical seperator line style of the
element in the container.
public int getElementCount()
public ReportElement getElement(int idx)
idx - element index.
public ReportElement getElement(String id)
public void removeElement(int idx)
idx - element index.public void removeAllElements()
public int getElementIndex(ReportElement e)
e - element.
public int getElementIndex(String id)
public Enumeration elements()
public Enumeration elements(boolean sort)
sort - true if should sort elements in print orderpublic Rectangle getBounds(int idx)
public void setBounds(int idx,
Rectangle bounds)
public void setElement(int idx,
ReportElement elem)
public Rectangle getPrintBounds(int idx)
public void setPrintBounds(int idx,
Rectangle bounds)
public SectionBand.Separator[] getVSeparators()
public void setVSeparators(SectionBand.Separator[] arr)
public SectionBand.Separator getVSeparator(int idx)
public void setVSeparator(int idx,
SectionBand.Separator bounds)
public void addShape(PageLayout.Shape shape)
shape - a shape (line, rectangle, or oval).public int getShapeCount()
public PageLayout.Shape getShape(int idx)
public void removeShape(int idx)
public int getShapeIndex(PageLayout.Shape shape)
public void reset()
public Object clone()
clone in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||