iReport Ultimate Guide - Nimsoft Library
iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library
iReport Ultimate Guidepen is used to draw a shape (or just the borders of the element in case of images). This property is edited with the Pen dialog(see Figure 5-13).Figure 5-13Pen DefinitionIt is possible to set a particular line width (a zero line width means that no lines will be painted) and choose between 4 differentstyles: normal, dashed, dotted and double.By default, the color used to paint the lines is the element foreground color, but it is possible to override that value byspecifying a different value. To reset the color the default value you need to reset the whole pen right clicking the Pen item inthe property sheet and selecting Restore Default Value.The default values for the pen (like for many other common element properties) depend on the specific element. Lines,rectangles and ellipses have a default width of 1 pixel, while for images the default line width is zero.The Fill property has a single possible value: Solid.5.1.5.1 LineIn UR, a line is defined by a rectangle for which the line represents the diagonal (see Figure 5-14).Figure 5-14Line element of type top-downThe line is drawn using the pen settings. If they are not set, the foreground color is used as the default color and a normal 1-pixel-width line is used as the line style.The only specific property of a line is the Line direction, used to indicate which of the two rectangle diagonals representsthe line; the possible values are Top Down and Bottom Up.74
Report Elements5.1.5.2 RectangleThe rectangle element is usually used to draw frames around other elements (even if it is preferable to use a frame element forthis specific purpose in order to avoid overlapping elements). Similarly to the line element, the rectangle border is drawn usingthe pen settings. If they are not set, the Foreground setting is used as color (which is black by default) and a normal 1-pixelwidthline is used as line style. The background is filled with the color specified with the Background setting if the element hasnot been defined as transparent.Figure 5-15 Rectangle element with radius set to 20In iReport, it is possible to have a rectangle with rounded corners (see Figure 5-15). The rounded corners are defined bymeans of the Radius attribute, which represents the curvature radius of the corners, expressed in pixels.5.1.5.3 EllipseFigure 5-16Ellipse element and its rectangular boundaryThe ellipse is the only element that has no attributes specific to it. The ellipse is drawn in a rectangle that defines the maximumheight and width (see Figure 5-16). The border is drawn using the pen settings. If they are not set, the Foreground is used ascolor (which is black by default) and a normal 1-pixel-width line is used as line style. The background is filled with theBackground color setting if the element has not been defined as transparent.75
- Page 24 and 25: iReport Ultimate GuideFigure 2-11Or
- Page 26 and 27: iReport Ultimate GuideFigure 2-14Re
- Page 28 and 29: iReport Ultimate GuideFigure 2-17Re
- Page 30 and 31: iReport Ultimate Guide9. The last s
- Page 32 and 33: iReport Ultimate GuideWhen we are f
- Page 34 and 35: iReport Ultimate GuideCode Example
- Page 36: iReport Ultimate GuideCode Example
- Page 39 and 40: Basic Notions of iReportjava.util.D
- Page 41 and 42: Basic Notions of iReportof a date,
- Page 43 and 44: Basic Notions of iReport(new java.l
- Page 45 and 46: Report StructureCHAPTER 4REPORT STR
- Page 47 and 48: Report StructureGroup HeaderDetailG
- Page 49 and 50: Report StructureThe page margin dim
- Page 51 and 52: Report StructureFigure 4-6Result of
- Page 53 and 54: Report StructureMultiple columns ar
- Page 55 and 56: Report StructureFigure 4-11Properti
- Page 57 and 58: Report StructureAs you can see in F
- Page 59 and 60: Report Structure4.1.3.12 ImportsThe
- Page 61 and 62: Report Structureexample, in a repor
- Page 63 and 64: Report ElementsCHAPTER 5REPORT ELEM
- Page 65 and 66: Report ElementsFigure 5-3Guidelines
- Page 67 and 68: Report ElementsFigure 5-6Element no
- Page 69 and 70: Report ElementsTable 5-1Formatting
- Page 71 and 72: Report ElementsFigure 5-10Table 5-2
- Page 73: Report ElementsFigure 5-11Custom el
- Page 77 and 78: Report ElementsTable 5-4TypeImage E
- Page 79 and 80: Report ElementsTable 5-5OptionImage
- Page 81 and 82: Report ElementsCode Example 5-1Dyna
- Page 83 and 84: Report ElementsCode Example 5-2Prin
- Page 85 and 86: Report ElementsPDF font namePDF enc
- Page 87 and 88: Report ElementsFor your convenience
- Page 89 and 90: Report ElementsHere there are some
- Page 91 and 92: Report ElementsThe following briefl
- Page 93 and 94: 5.5 Adding Custom Components and Ge
- Page 95 and 96: Fields, Parameters, and VariablesCH
- Page 97 and 98: Fields, Parameters, and VariablesIn
- Page 99 and 100: 6.1.2 Accessing the SQL Query Desig
- Page 101 and 102: Fields, Parameters, and Variables6.
- Page 103 and 104: 6.2.3 Built-in ParametersFields, Pa
- Page 105 and 106: Fields, Parameters, and VariablesRe
- Page 107 and 108: Fields, Parameters, and Variables6.
- Page 109 and 110: Fields, Parameters, and VariablesTa
- Page 111 and 112: Bands and GroupsCHAPTER 7BANDS AND
- Page 113 and 114: Bands and Groupsexpression may be r
- Page 115 and 116: Bands and GroupsFigure 7-6Dragging
- Page 117 and 118: Bands and GroupsFigure 7-10The firs
- Page 119 and 120: Bands and GroupsFigure 7-14 shows t
- Page 121 and 122: 7.3 Other Group OptionsBands and Gr
- Page 123 and 124: Fonts and StylesCHAPTER 8FONTS AND
Report Elements5.1.5.2 RectangleThe rectangle element is usually used to draw frames around other elements (even if it is preferable to use a frame element forthis specific purpose in order to avoid overlapping elements). Similarly to the line element, the rectangle border is drawn usingthe pen settings. If they are not set, the Foreground setting is used as color (which is black by default) and a normal 1-pixelwidthline is used as line style. The background is filled with the color specified with the Background setting if the element hasnot been defined as transparent.Figure 5-15 Rectangle element with radius set to 20In <strong>iReport</strong>, it is possible to have a rectangle with rounded corners (see Figure 5-15). The rounded corners are defined bymeans of the Radius attribute, which represents the curvature radius of the corners, expressed in pixels.5.1.5.3 EllipseFigure 5-16Ellipse element and its rectangular boundaryThe ellipse is the only element that has no attributes specific to it. The ellipse is drawn in a rectangle that defines the maximumheight and width (see Figure 5-16). The border is drawn using the pen settings. If they are not set, the Foreground is used ascolor (which is black by default) and a normal 1-pixel-width line is used as line style. The background is filled with theBackground color setting if the element has not been defined as transparent.75