All values for colors (border-, fore- and backcolor) use the ABGR color model which represents the colors with 32bit integer numbers. That means that the first 8bits are used for the alpha component, the second 8bits for the blue component, the third 8bits for the green component and last 8bits for the red component read from right to left (i.e. soft red 0x007F7FFF, red 0x000000FF or RDC.COLOR_RED or 255). In class “RDC” constants are defined for the common 16 colors, see API doc.
A section or an area supports background color only. Background color is the color the whole area or section is filled with. You can set the background color with the methods “setBackColor” or “setBackColorFormula” in class “com.inet.report.Area” or “com.inet.report.Section” if you want to set the color depending on runtime-values. The use of a formula to set the background color can result in different background colors for each Area or Section.
A field element supports two kinds of colors, one for the border and one for the background.
Note: The color of the embedded static or dynamic labels can only be set using methods in “com.inet.report.TextPart” and “com.inet.report.FieldPart”, see next item.
A Text is a container for paragraphs, which is why it only supports border color and background color. You can set these with methods “setForeColor” and “setBackColor” or “setForeColorFormula” and “setBackColorFormula”.
A paragraph supports no color, it is a container for text parts and field parts.
The TextPart and the FieldPart elements represents the text of the labels, so you have to change the font color of labels here. Use methods “setFontColor” and “setFontColorFormula” in “com.inet.report.TextPart” and “com.inet.report.FieldPart”.
Lines support only one color - the border color. To set the border color use the methods “setForeColor” and “setForeColorFormula” inherited from “com.inet.report.Element”.
Boxes supports two kinds of color - the border color (see Line) and the background color. You can set the background color with methods “setBackColor” and “setBackColorFormula”.
Sub reports support three kinds of color properties. We have to distinguish sub reports with on demand and sub reports without.
A database picture supports the background color property and the border color property. You can set the properties with methods “setBackColor” and “setBackColorFormula” and with “setForeColor” and “setForeColorFormula”.
The color of a chart is determined by the chart style property which you can set with the method “setStyle” in class “com.inet.report.Chart”.
You can set the color properties of each single field and text element of the cross table. Setting a style for the whole table is not supported by RDC, but you can set the background color for each column and row with method “setBackColor” inherited from “com.inet.report.Element” and the colors of the FieldElements in cross table with methods of class “FieldElement”.
i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to clearreports@inetsoftware.de.