iReport Ultimate Guide - Nimsoft Library
iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library
iReport Ultimate GuideFigure 13-45 shows the Category Sets tab and the Category Set window.Figure 13-45 Specifying category sets in a Gantt chartSince the definition of each category can be a tedious operation, it’s possible to generate the categories using an expressionthat calls a scriptlet method or a custom class to generate your list of categories. Select the Use a bulk expression for thecategories check box on the Categories tab of the Category Set window, and specify your expression. The result of theexpression must be a java.util.Collection or an array of com.jaspersoft.fusion.jasperreports.widgets.Gantt.Category objects.13.4.3.6 Processes and TasksAfter defining the categories, you must define the processes on the Processes tab of the Gantt Properties window. A processis defined by an ID, a name for the label, and a set of optional properties that control its appearance in the chart.The next step is to define the tasks that make up each process. A task is always associated with a single process ID, but anynumber of tasks can be associated with the same process.Tasks are listed on the Tasks tab of the Gantt Properties window. The Task window for defining the tasks is shown in.Figure 13-46.272
Flash ChartsFigure 13-46 Specifying tasks in a Gantt chartA task is defined by its ID, the ID of the process to which it belongs, a label, and a date range. Optionally, you can enter anexpression to display the percent of completion of the task and another expression to show the task as part of a group.Figure 13-47 show how a task group is displayed.Figure 13-47 Output of a task group on a Gantt chartFor each task, you can also define a milestone and a process. Milestones can be defined from the task window or on theMilestone tab of the main Gantt Properties window. Milestones are further explained in section 13.4.3.7.The process definition on a task is generally not required because the task is already associated with a process through theProcess ID Expression. However, sometimes a task contains the information to define the process it should belong to.For example, in a simple Gantt chart it might be possible to define only tasks that are self-contained within their ownprocesses, which might be quicker than defining the processes separately. In this case, you can use the Task window instead ofthe Processes tab of the Gantt Properties window.If a process is defined directly from a task, the Process ID Expression is ignored.13.4.3.7 MilestonesUp to now we have seen the mandatory components of the Gantt chart. But many other components can be defined.A milestone is a symbol that appears in the tasks portion of the Gantt chart, in the same row as the task to which the milestonebelongs. A milestone is always tied to a task and can be created in the Milestones tab in the Gantt Properties window ordirectly in the task properties. It is defined by a task ID and a date that identifies the position of the milestone in the time line.The properties of a milestone include the shape of the milestone in the chart, its color, its border, and so on.273
- Page 221 and 222: Data Sources and Query ExecutersIf
- Page 223 and 224: ChartsCHAPTER 12 CHARTSUR provides
- Page 225 and 226: ChartsFigure 12-3Chart selection wi
- Page 227 and 228: ChartsFigure 12-6Dataset configurat
- Page 229 and 230: settings). These four fields have t
- Page 231 and 232: ChartsFigure 12-10 Chart Theme Desi
- Page 233 and 234: ChartsFigure 12-12 Example chart th
- Page 235 and 236: Run your report. iReport should dis
- Page 237 and 238: Charts1. First create a report.Figu
- Page 239 and 240: Charts4. Right-click on the chart a
- Page 241 and 242: Flash ChartsCHAPTER 13 FLASH CHARTS
- Page 243 and 244: Flash ChartsThe layout properties f
- Page 245 and 246: Flash ChartsThe following figure sh
- Page 247 and 248: Flash ChartsTable 13-2Entity IDs of
- Page 249 and 250: Flash ChartsTable 13-3Entity expres
- Page 251 and 252: Flash ChartsFigure 13-10 Specifying
- Page 253 and 254: Flash ChartsFigure 13-12 Bar chart
- Page 255 and 256: Flash ChartsFigure 13-16 The Charts
- Page 257 and 258: Flash ChartsFigure 13-19 Advanced o
- Page 259 and 260: Flash ChartsFigure 13-22 Entering t
- Page 261 and 262: Flash ChartsFigure 13-24 Specifying
- Page 263 and 264: Flash ChartsSpark LineSpark ColumnS
- Page 265 and 266: Flash ChartsFigure 13-32 Common opt
- Page 267 and 268: Flash ChartsFigure 13-35 Output of
- Page 269 and 270: Flash ChartsFigure 13-39 Output of
- Page 271: Flash ChartsFigure 13-43 Example of
- Page 275 and 276: Flash ChartsFigure 13-49 Specifying
- Page 277 and 278: Lists, Tables, and BarcodesCHAPTER
- Page 279 and 280: Lists, Tables, and BarcodesFor your
- Page 281 and 282: Lists, Tables, and Barcodesidentifi
- Page 283 and 284: Lists, Tables, and BarcodesList ele
- Page 285 and 286: 14.2 TablesLists, Tables, and Barco
- Page 287 and 288: Lists, Tables, and BarcodesiReport
- Page 289 and 290: Lists, Tables, and BarcodesFigure 1
- Page 291 and 292: Lists, Tables, and BarcodesSimilarl
- Page 293 and 294: Lists, Tables, and BarcodesFigure 1
- Page 295 and 296: Lists, Tables, and BarcodesFigure 1
- Page 297 and 298: Lists, Tables, and BarcodesWhen usi
- Page 299 and 300: SubdatasetsCHAPTER 15 SUBDATASETSRe
- Page 301 and 302: SubdatasetsUR permits you to use a
- Page 303 and 304: SubdatasetsFigure 15-7Initial layou
- Page 305 and 306: SubdatasetsFigure 15-11 Pie dataset
- Page 307 and 308: CrosstabsCHAPTER 16 CROSSTABSA cros
- Page 309 and 310: CrosstabsUsing the Crosstab Wizard,
- Page 311 and 312: CrosstabsFigure 16-6Outline tree vi
- Page 313 and 314: CrosstabsFigure 16-8Adding a Row Gr
- Page 315 and 316: CrosstabsFigure 16-11 Empty row tot
- Page 317 and 318: CrosstabsFigure 16-16 Crosstab Prop
- Page 319 and 320: CrosstabsFigure 16-19 Crosstab Data
- Page 321 and 322: CrosstabsFigure 16-22 The result of
<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>Figure 13-45 shows the Category Sets tab and the Category Set window.Figure 13-45 Specifying category sets in a Gantt chartSince the definition of each category can be a tedious operation, it’s possible to generate the categories using an expressionthat calls a scriptlet method or a custom class to generate your list of categories. Select the Use a bulk expression for thecategories check box on the Categories tab of the Category Set window, and specify your expression. The result of theexpression must be a java.util.Collection or an array of com.jaspersoft.fusion.jasperreports.widgets.Gantt.Category objects.13.4.3.6 Processes and TasksAfter defining the categories, you must define the processes on the Processes tab of the Gantt Properties window. A processis defined by an ID, a name for the label, and a set of optional properties that control its appearance in the chart.The next step is to define the tasks that make up each process. A task is always associated with a single process ID, but anynumber of tasks can be associated with the same process.Tasks are listed on the Tasks tab of the Gantt Properties window. The Task window for defining the tasks is shown in.Figure 13-46.272