GanttChartDependency

public class GanttChartDependency

Dependency to be displayed in a Gantt Chart diagram between specified items.

  • Initializes a Gantt Chart dependency based on source and target items (from-to), optionally providing label text, details (tooltip text), z-index value, type (from start/finish-to start/finish), style (appearance settings), and external context identifier.

    Declaration

    Swift

    public init(label: String? = nil,
                from: GanttChartItem, to: GanttChartItem, details: String? = nil,
                zIndex: Int = 0, isVisible: Bool = true,
                type: GanttChartDependencyType? = nil,
                style: GanttChartDependencyStyle? = nil, context: Any? = nil)
  • Text associated with the dependency.

    Declaration

    Swift

    public var label: String? { get set }
  • Tooltip text to be displayed for the dependency upon hovering its line with the mouse.

    Declaration

    Swift

    public var details: String? { get set }
  • The item that the dependency spans from.

    Declaration

    Swift

    public var from: GanttChartItem { get set }
  • to

    The item that the dependency spans to.

    Declaration

    Swift

    public var to: GanttChartItem { get set }
  • The location of the connection at from item level (finish or start).

    Declaration

    Swift

    public var fromType: GanttChartDependencyEndType { get set }
  • The location of the connection at to item level (start or finish).

    Declaration

    Swift

    public var toType: GanttChartDependencyEndType { get set }
  • Aggregated value combining from and to dependency type values (from finish to start, from start to start, from finish to finish, or from start to finish).

    Declaration

    Swift

    public var type: GanttChartDependencyType { get set }
  • Returns the time at which the connection starts.

    Declaration

    Swift

    public var fromTime: Time { get }
  • Returns the time at which the connection finishes.

    Declaration

    Swift

    public var toTime: Time { get }
  • Indicates whether the dependency spans from the finish time (rather than from the start time) of an item.

    Declaration

    Swift

    public var isFromEntropic: Bool { get }
  • Indicates whether the dependency spans to the start time (rather from the finish time) of an item.

    Declaration

    Swift

    public var isToEntropic: Bool { get }
  • Indicates the position of the dependency on the Z axis, governing the order of drawing its line among other dependencies that might be visually overlapping or intersecting.

    Declaration

    Swift

    public var zIndex: Int { get set }
  • Indicates whether the dependency 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 dependency’s behavior and appearance.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var hasChanged: Bool