GanttChartItem

public class GanttChartItem

Item to be displayed in a Gantt Chart diagram at a specified row, spanning a specified time interval.

  • Initializes a Gantt Chart item based on row and time interval, optionally providing label text, completion (between 0 and 1), attachment text (right side), details (tooltip text), schedule (working and nonworking time definition), z-index value, type (standard, milestone, or summary), style (appearance settings), and external context identifier.

    Declaration

    Swift

    public init(label: String? = nil,
                row: Row, start: Time, finish: Time, completion: Double = 0,
                attachment: String? = nil, details: String? = nil,
                schedule: ScheduleDefinition? = nil, isExpanded: Bool = true,
                zIndex: Int = 0, isVisible: Bool = true,
                type: GanttChartItemType? = nil, style: GanttChartItemStyle? = nil,
                context: Any? = nil)
  • Initializes a Gantt Chart item based on row and time moment, optionally providing label text, attachment text (right side), details (tooltip text), schedule (working and nonworking time definition), z-index value, type (standard, milestone, or summary), style (appearance settings), and external context identifier.

    Declaration

    Swift

    public convenience init(label: String? = nil,
                            row: Row, time: Time,
                            attachment: String? = nil, details: String? = nil,
                            schedule: ScheduleDefinition? = nil,
                            isExpanded: Bool = true, zIndex: Int = 0,
                            isVisible: Bool = true, type: GanttChartItemType? = nil,
                            style: GanttChartItemStyle? = nil, context: Any? = nil)
  • Text associated to the item, to be displayed for the item within its bar.

    Declaration

    Swift

    public var label: String? { get set }
  • Text to be displayed for the item to the right side of its bar.

    Declaration

    Swift

    public var attachment: String? { get set }
  • Tooltip text to be displayed for the item upon hovering its bar with the mouse.

    Declaration

    Swift

    public var details: String? { get set }
  • row

    Represents the vertical position of the item.

    Declaration

    Swift

    public var row: Row { get set }
  • The time interval that the item spans (governing the horizontal position and the size of its bar).

    Declaration

    Swift

    public var time: TimeRange { get set }
  • Optional schedule definition to be used upon updating the time values of the item.

    Declaration

    Swift

    public var schedule: ScheduleDefinition? { get set }
  • The start of the time interval that the item spans.

    Declaration

    Swift

    public var start: Time { get set }
  • The finish of the time interval that the item spans.

    Declaration

    Swift

    public var finish: Time { get set }
  • Indicates whether the time interval of the item is correctly defined (having its start set to be before or, at limit, equal to the finish value).

    Declaration

    Swift

    public var isEntropic: Bool { get }
  • Indicates whether the items spans a single moment in time (having its start set to be equal to the finish value).

    Declaration

    Swift

    public var isMomentary: Bool { get }
  • Indicates the completion of the associated work (0 = not started, 1 = completed).

    Declaration

    Swift

    public var completion: Double { get set }
  • Indicates whether the work has been started.

    Declaration

    Swift

    public var isStarted: Bool { get }
  • Indicates whether the work has been completed.

    Declaration

    Swift

    public var isCompleted: Bool { get }
  • Indicates whether the work is in progress (being started but not yet completed).

    Declaration

    Swift

    public var isInProgress: Bool { get }
  • Selects the type of the bar to be displayed for the item, such as standard, milestone, or summary. Summary bars do not imply parent-child hierarchy, though.

    Declaration

    Swift

    public var type: GanttChartItemType { get set }
  • Indicates whether the item has a bar of standard type.

    Declaration

    Swift

    public var isStandard: Bool { get }
  • Indicates whether the item has a bar of milestone type.

    Declaration

    Swift

    public var isMilestone: Bool { get }
  • Indicates whether the item has a bar of summary type.

    Declaration

    Swift

    public var isSummary: Bool { get }
  • Indicates whether the item (in case it has a bar of summary type) is considered as expanded (rather than collapsed).

    Declaration

    Swift

    public var isExpanded: Bool { get set }
  • Indicates the position of the item on the Z axis, governing the order of drawing its bar among other items that might be visually overlapping (horizontally or vertically).

    Declaration

    Swift

    public var zIndex: Int { get set }
  • Indicates whether the item is visible in the diagram.

    Declaration

    Swift

    public var isVisible: Bool { get set }
  • State information identifying the external context (such as a data object) that the item is associated to. Set it upon item construction to be able to use it within specific protocol function handlers that receive the item among arguments.

    Declaration

    Swift

    public var context: Any? { get set }
  • Defines a set of properties further governing the item’s behavior and appearance.

    Declaration

    Swift

    public var settings: GanttChartItemSettings { get set }
  • Defines a set of properties governing the item’s appearance (part of settings).

    Declaration

    Swift

    public var style: GanttChartItemStyle { get set }
  • Indicates whether the item has changed since initialization time, or since hasChanged was previously set to false.

    Declaration

    Swift

    public var hasChanged: Bool