the type of the parent row (example: row is of type "Building" and parent type is "Factory" to express that the factory consists of several buildings).
the type of the children rows (example: row is of type "Building" and children type is "Machine" to express that the building houses several machines).
the type of the activities shown in this row (example: row is of type "Building", activities are "ProductionOrders" that are executed in this building).
the type of the row-specific user object (this type is optional and is set to any
by default).
Constructs a new row with an IntervalTreeActivityRepository
and an EqualLinesManager
and the given name.
the name of the row (e.g. "Building 1")
Adds the given activity for the given layer to this row. This method delegates to MutableActivityRepository.addActivity(ActivityRef)
.
the layer where the activity will be displayed
the activity that will be added
Removes all activities on the given layer from the row.
the layer from which to remove all activities
Returns a list of calendars attached to this row. Calendars directly attached to a row can be used to visualize row-specific information, for example "resource availability".
a list of row-specific calendars
Returns the list of children of this row.
the children
Returns the earliest time used by the row. This is a convenience method delegating to ActivityRepository.getEarliestTimeUsed()
.
the earliest time used by the row / by the activities of the row / earliest start time of any activity on the row
Returns the the height of the row.
the height of the row.
Returns the latest time used by the row. This is a convenience method delegating to ActivityRepository.getLatestTimeUsed()
.
the latest time used by the row / by the activities of the row / earliest start time of any activity on the row
Returns the layout of the row.
the layout of the row
Gets the number of inner lines shown by the row.
Returns the height of the given inner line. The value returned is usually between 0 and getHeight().
the index of the line for which to return a height
the height of the line
Returns the line index for the given activity. This is a convenience method delegating to LinesManager.getLineIndex(Activity).
the activity for which to return a line index
the line index for the given activity
Returns a line-specific layout for the given line.
the index of the line
the line layout
Returns the location of the given inner line. The value returned is usually between 0 and getHeight().
the index of the line for which to return a location
the line location y-coordinate
Returns the lines manager for this row.
the lines manager for this row
Returns the maximum height of the row.
the maximum height of the row
Returns the minimum height of the row.
the minimum height of the row
Returns the name of the row.
the name of the row
The parent of this row. Each row can have only one parent. If a row has no parent, it represents a root in the tree model.
the parent of this row, or null if the row has no parent.
Returns the path to this row, for example [ROOT, Parent1, Parent2, this].
the path to this row
Returns the activity repository of the row.
the activity repository of the row
Returns the user object of the row.
the user object of the row
Returns the zone ID of this row.
the zone ID of this row
Returns true if the row is expanded.
true if the row is expanded
A row is a leaf in the tree table view on the left-hand side of the Gantt chart if it has no children. This method may of course be overridden by subclasses to support alternate means of defining how a row may be a leaf, but the general premise is the same: a leaf can not be expanded by the user, and as such will not show a disclosure node or respond to expansion requests.
true if the row is a leaf (has no children rows)
Removes the given activity from the given layer from this row.
the layer from which to remove the activity
the activity to remove
Set if the row is expanded.
expanded value.
Sets the height of the row.
the new height of the row
Sets the row layout.
the new row layout
Sets the number of inner lines shown by the row.
the new line count for the row
Sets the lines manager for this row.
the new lines manager
Sets the maximum height of the row.
the maximum height of the row
Sets the minimum height.
the new minimum height
Sets the name of the row.
the new name of the row
Sets the parent of this row. Each row can have only one parent. If a row has no parent, it represents a root in the tree model.
the parent of this row.
Sets the repository of the row.
the new repository to use
Sets the user object of the row.
the user object of the row
Sets the value of the zoneIdProperty().
the new zone ID for this row
A row object is used to store the activities found on a row of the Gantt chart. These activities are not stored directly on the row but in an activity repository (see
getRepository()
). The default repository is of typeIntervalTreeActivityRepository
and can be replaced by callingsetRepository(ActivityRepository)
. Activities can be placed on lines within the row. The row delegates this work to aLinesManager``. The default manager is of type
EqualLinesManager. To replace the manager simply call
setLinesManager(LinesManager)```.1.0