|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.rreport.RArea
Main component of a Report. A Rreport is made of Rareas. A RArea is a group of objects (RObject) that must be printed together. Typical examples of areas in a report are:
- Page header
- Page footer
- Report header
- Report footer
- Detail section
An area can be printed 1 or more times (repetitions). Each time the area is printed the objects in the area will contain a different value. These values can be assigned:
- automatically using a RSource object.
- or programatically using area.setObjectValue(...);
Areas can have linked/nested areas. After each repetition of an area, all linked areas are printed. This is used to create master/detail relationships (see also RJDBCSource).
Field Summary | |
int |
AreaPosition
not used |
static int |
FRAME_AREA
the area has a frame. |
static int |
FRAME_NONE
the area has no frame. |
static int |
FRAME_PAGE
just one frame for all repetitions of this area in the page. |
static int |
FRAME_PAGE_NO_TOP
|
double |
height
size at runtime. |
double |
horizontalTab
In centimeters. |
double |
HTMLResolution
resolution used when exporting to HTML. |
java.util.Vector |
items
vector that contains the Robjects in the area. |
double |
layoutHeight
defined size of the area. |
double |
marginBottom
In centimeters. |
double |
marginLeft
In centimeters. |
double |
marginRight
In centimeters. |
double |
marginTop
In centimeters. |
boolean |
newPage
print this area in a new page? |
boolean |
NewReference
not used |
RArea |
Reference
not used |
double |
verticalTab
In centimeters. |
double |
width
size at runtime. |
double |
x
positiom X at runtime. |
double |
y
positiom Y at runtime. |
Constructor Summary | |
RArea()
|
Method Summary | |
void |
add(RObject obj)
Adds an element to the area. |
void |
add(RObject obj,
boolean end)
Adds an element to the area. |
java.awt.Color |
getBackground()
background color |
RPicture |
getBackgroundImage()
background image |
RSource |
getDataSource()
gets the Rsource used to assign values to the elements in the area |
RLineStyle |
getFrameStyle()
gets the frame style. |
int |
getFrameType()
frame type: NONE,PAGE... |
double[] |
getGrid()
gets the positions of the columns (lines) of the grid. |
RLineStyle |
getGridStyle()
line style of the frame. |
RArea |
getHeaderArea()
gets or sets the header area for this a area. |
boolean |
getHorizontalGrid()
specifies that the grid must use horizontal separators also. |
java.lang.String |
getHTML()
gets the HTML version of the area. |
RObject |
getItemByName(java.lang.String name)
Returns the Robject whose name matches the parameter. |
RArea |
getLinkedArea()
gets or sets the superarea (where this area is nested). |
RAreaListener |
getListener()
get area listener |
java.lang.String |
getName()
gets/sets area name. |
void |
importLine(java.lang.String key,
java.lang.String val)
to be used by RReportImp.java |
void |
setBackground(java.awt.Color c)
background color |
void |
setBackgroundImage(RPicture i)
background image |
void |
setDataSource(RSource s)
Sets the Rsource used to assign values to the elements in the area |
void |
setFrame(boolean b)
set frame type for the area. |
void |
setFrameStyle(RLineStyle fStyle)
sets the frame style. |
void |
setFrameType(int fType)
sets the frame type. |
void |
setGrid(double[] colSeps)
Sets the positions of the columns (lines) of the grid. |
void |
setGridStyle(RLineStyle gStyle)
styled used by the grid. |
void |
setHeaderArea(RArea a)
gets or sets the header area for this a area. |
void |
setHorizontalGrid(boolean b)
specifies that the grid must use horizontal separators also. |
void |
setHTML(java.lang.String h)
sets the HTML version of the area. |
void |
setLinkedArea(RArea a)
gets or sets the superarea (where this area is nested). |
void |
setListener(RAreaListener l)
set area listener |
void |
setName(java.lang.String n)
gets/sets area name. |
boolean |
setObjectValue(java.lang.String name,
java.lang.Object Value)
Sets the runtime value of an element in the area. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FRAME_NONE
public static final int FRAME_PAGE
public static final int FRAME_AREA
public static final int FRAME_PAGE_NO_TOP
public double verticalTab
public double horizontalTab
public double marginLeft
public double marginRight
public double marginBottom
public double marginTop
public RArea Reference
public boolean NewReference
public int AreaPosition
public boolean newPage
public double HTMLResolution
public double x
public double y
public double width
public double height
public double layoutHeight
public java.util.Vector items
Constructor Detail |
public RArea()
Method Detail |
public void setListener(RAreaListener l)
public RAreaListener getListener()
public void setName(java.lang.String n)
public java.lang.String getName()
public void setLinkedArea(RArea a)
public RArea getLinkedArea()
public void setHeaderArea(RArea a)
public RArea getHeaderArea()
public void importLine(java.lang.String key, java.lang.String val)
public java.awt.Color getBackground()
public RPicture getBackgroundImage()
public void setBackground(java.awt.Color c)
public void setBackgroundImage(RPicture i)
public void setFrame(boolean b)
public void setDataSource(RSource s)
public RSource getDataSource()
public java.lang.String getHTML()
public void setHTML(java.lang.String h)
public boolean getHorizontalGrid()
public void setHorizontalGrid(boolean b)
public void setFrameType(int fType)
public void setFrameStyle(RLineStyle fStyle)
public void setGridStyle(RLineStyle gStyle)
public void setGrid(double[] colSeps)
public int getFrameType()
public RLineStyle getFrameStyle()
public RLineStyle getGridStyle()
public double[] getGrid()
public void add(RObject obj)
public void add(RObject obj, boolean end)
public RObject getItemByName(java.lang.String name)
public boolean setObjectValue(java.lang.String name, java.lang.Object Value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |