GanttChartItemSource
public class GanttChartItemSource : GanttChartItemManager
Gantt Chart item manager that hosts items and dependencies within exhaustive arrays. May be used instead of an object inheriting from GanttChartItemManager when the data set is small and the runtime performance is not a concern.
-
Undocumented
Declaration
Swift
public init(items: [GanttChartItem]? = nil, dependencies: [GanttChartDependency]? = nil, schedule: ScheduleDefinition? = nil, behavior: GanttChartItemBehavior? = nil)
-
Exhaustive array of items managed by the component.
Declaration
Swift
public private(set) var items: [GanttChartItem]
-
Exhaustive array of dependencies managed by the component.
Declaration
Swift
public private(set) var dependencies: [GanttChartDependency]
-
Determines the total row count based on the row values of the items in the array.
Declaration
Swift
public override var sourceTotalRowCount: Int { get }
-
Determines the preferred timeline based on the start and finish values of the items in the array.
Declaration
Swift
public override var sourcePreferredTimeline: TimeRange { get }
-
Filters the items in the array considering the current row range and timeline.
Declaration
Swift
public override var sourceFilteredItems: [GanttChartItem] { get }
-
Filters the dependencies in the array considering the current row range and timeline.
Declaration
Swift
public override var sourceFilteredDependencies: [GanttChartDependency] { get }
-
Return the entire item array as behavior or schedule application target, if set, sorted by row, start, finish, and/or zIndex.
Declaration
Swift
open override var availableItems: [GanttChartItem] { get }
-
Return the entire dependency array as behavior target or schedule application target, if set.
Declaration
Swift
open override var availableDependencies: [GanttChartDependency] { get }
-
Creates and adds a new item into the managed array.
Declaration
Swift
public override func addNewSourceItem( row: Row, time: Time, isMilestone: Bool = false) -> GanttChartItem
-
Deletes an existing item from the managed array.
Declaration
Swift
public override func removeSourceItem(_ item: GanttChartItem)
-
Creates and adds a new dependency into the managed array.
Declaration
Swift
public override func addNewSourceDependency( from: GanttChartItem, to: GanttChartItem, type: GanttChartDependencyType = .fromFinishToStart) -> GanttChartDependency
-
Deletes an existing dependency from the managed array.
Declaration
Swift
public override func removeSourceDependency(_ dependency: GanttChartDependency)
-
Sets up column constraints (single item per row) applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var isColumn: Bool { get set }
-
Returns the parent of an item considering the defined hierarchical relations.
Declaration
Swift
public func parent(of item: GanttChartItem) -> GanttChartItem?
-
Returns the children of an item considering the defined hierarchical relations.
Declaration
Swift
public func children(of item: GanttChartItem) -> [GanttChartItem]?
-
Adds hierarchical relation definitions between the specified parent and child items.
Declaration
Swift
public func addHierarchicalRelations(parent: GanttChartItem, items: [GanttChartItem])
-
Adds a hierarchical relation definition between the specified parent and child item.
Declaration
Swift
public func addHierarchicalRelation(parent: GanttChartItem, item: GanttChartItem)
-
Removes the hierarchical relation definitions between the specified parent and child items.
Declaration
Swift
public func removeHierarchicalRelations(parent: GanttChartItem, items: [GanttChartItem])
-
Removes the hierarchical relation definition between the specified parent and child item.
Declaration
Swift
public func removeHierarchicalRelation(parent: GanttChartItem, item: GanttChartItem)
-
Removes hierarchical relation definitions that use the specified item.
Declaration
Swift
public func removeFromHierarchy(item: GanttChartItem)
-
Defines hierarchical relations applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var hierarchicalRelations: [GanttChartItemHierarchicalRelation]? { get set }
-
Provides support for defining hierarchical relations applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var hierarchy: GanttChartItemHierarchy? { get set }
-
Sets up the auto scheduling constraints (based on dependencies) applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var isAutoScheduling: Bool { get set }
-
Returns the lag for a dependency considering the current definitions.
Declaration
Swift
public func lag(for dependency: GanttChartDependency) -> TimeInterval?
-
Sets the lag definition for a dependency to a specific value.
Declaration
Swift
public func setLag(for dependency: GanttChartDependency, to value: TimeInterval)
-
Removes the lag definition from a dependency.
Declaration
Swift
public func removeLag(from dependency: GanttChartDependency)
-
Defines dependency lags applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var lags: [GanttChartDependencyLagDefinition]? { get set }
-
Provides support for defining dependency lags applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var lagSet: GanttChartDependencyLagSet? { get set }
-
Returns the constraints of an item considering the current definitions.
Declaration
Swift
public func constraints(of item: GanttChartItem) -> GanttChartItemConstraints?
-
Sets the constraint definitions of an item to a specified set of values.
Declaration
Swift
public func setConstraints(for item: GanttChartItem, to value: GanttChartItemConstraints)
-
Removes the constraint definitions of an item.
Declaration
Swift
public func removeConstraints(from item: GanttChartItem)
-
Defines item time constraints applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var constraints: [GanttChartItemConstraintDefinition]? { get set }
-
Provides support for defining item time constraints applied automatically as an internally managed behavior for the component.
Declaration
Swift
public var constraintSet: GanttChartItemConstraintSet? { get set }
-
Offers access to the internally managed behavior set initialized through isColumn, hierarchy, isAutoScheduling, lagSet, and/or constraintSet settings of the component.
Declaration
Swift
public var managedBehaviorSet: GanttChartItemBehaviorSet { get }
-
Sets hasChanged to false for all items and dependencies in the managed collection.
Declaration
Swift
public func acceptChanges()