E-GANTT Tutorial Examples

This is a list of tutorial examples available on E-Gantt to demonstrate the various features available with-in the library.

Gantt Examples 1

(demo.egantt.component.example.gantt.tutorial1)
Once you have gotten to grips with the table examples provided the next stage is to actually start using the Gantt Chart part of the library these examples cover the very basics to get you acustomed.

Trivial Example

This example covers the very basics of a Gantt Chart no column headers just putting the entries into the table via the contructor no fancy rendering just passing the columns into the contructor of the table.

Header Example

The header example demonstrates the usage of the Header renderer the calendar component which appears above the diagram to indicate what the time-period is.

Toolbar Example

This shows how to include the default toolbar which includes actions such as zoom in and zoom out of the diagram.

Gantt Examples 2

(demo.egantt.component.example.gantt.tutorial2)
This part of the tutorial is designed to demonstrate the rendering capabilities of E-Gantt in terms out of how change the shapes which are drawn upon on the screen using the different entry types.

Percentage Entry (PercentageEntryExample.java)

The Percentage entry is an entry which has a progress bar with-in itself it can be 50% complete. You would use these when you had a task that you had specified for two days next month but is currently currently half way completed already.

Milestone Entry (MilestoneEntryExample.java)

Milestones are entry that only contain a start period and no end-time this makes them different to other entries and obvious occupy zero time. The general business usage of these is to identifiy a deadline which must be completed before this date but not after.

Shift Entry (ShiftEntryExample.java)

Shift Entries are entries that encompass over tasks they are used as an overview.

Gantt Examples 3

(demo.egantt.component.example.gantt.tutorial3)
This section covers the more advanced entries and basic table editing

Color change Example

This example covers the usage of the basic "Drawing Tools"
  • Context Menu based
  • Click based
The demo shows changing the color of an entry via the use of either one and zoom actions with these.

Editing Entries

This example covers editing entries it will allow you to resize percentage entries by either the:
  • Height
  • Width
  • Percentage Completed

Gantt Examples 4

(demo.egantt.component.example.gantt.tutorial4)

Context Edit Example

This example demonstrates the use of editing via an Editing tool and not via the Table Cell Editor.

Link Entry Examples

Linked Entries demonstrates graphical dependency links between entries these links are dynamically created so that if the entry were resized the links would also update.

Multi Entry Example

Demonstrates the usage of multiple entires on a single row

Text Entry Example

Demonstrates the usage of the multi-layer functionality of E-Gantt with text appearing ontop of the entries

Table Examples

(demo.egantt.component.example.table)
The table examples are closely mirrored on the JTable Swing2 Tutorial Examples the reason behind this is to demonstrate to the developer how close to the JTable API our double table component models.

Context Examples (TableContextExample.java)

Not strictly a swing example but demonstrates the usage of Context Menus with the E-GANTT GanttTable class

Renderer Demo (TableRenderExample.java)

TableRenderDemo an example that explicitly sets up column sizes and uses a combo box as an editor in the sport column.

Simple Table (SimpleTableExample.java)

This is Swing's Hello World for the JTable component a very good place to start if you are not familiar with E-GANTT or in deed JTAbles

Table Sorting (TableSorterExample.java)

An example using a custom data model, tooltips and some badly written sorting code the same as demonstrated via the tutorial guides of swing but for E-GANTT

Table Tooltips (TableToolTipsExample.java)

Attempts to mirror the Swing2 Table tooltips example, this may not be the ideal way to use tooltips but demonstrates that the approach recommend via the Swing examples does work with the library.

Trivial Table (TrivialTableExample.java)

For some reason the Swing team made a bad example with Simple Table so I'm providing trivial table which is even easier for the real beginners.