GanttChart
@IBDesignable
open class GanttChart : UIView, GanttChartObserver, GanttChartScroller, GanttChartPresenter
Presents a Gantt Chart diagram in an iOS application.
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Provides access to the internal GanttChartHeader view.
Declaration
Swift
@IBOutlet public private(set) weak var header: GanttChartHeader!
-
Provides access to the internal GanttChartContent view.
Declaration
Swift
@IBOutlet public private(set) weak var content: GanttChartContent!
-
Configures and manages the user interface component at initialization and runtime.
Declaration
Swift
public var controller: GanttChartController! { get set }
-
Undocumented
Declaration
Swift
open override func prepareForInterfaceBuilder()
-
Undocumented
Declaration
Swift
public func headerHeightDidChange()
-
Draws background for the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawHeaderBackground(color: UIColor, size: CGSize)
-
Draws a border for the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawHeaderBorder(in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Draws background for the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawContentBackground(color: UIColor, size: CGSize)
-
Draws a border for the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawContentBorder(in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Draws background for a row in the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBackground(for row: Row, in rectangle: CGRect, color: UIColor)
-
Draws a border for a row in the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBorder(for row: Row, in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Draws a specific bar in the diagram. Override this method to perform custom drawing.
Declaration
Swift
open func draw(bar: GanttChartBar)
-
drawBar(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:cornerRadius:isHighlighted:isFocused:isSelected:highlightColor:focusColor:selectionColor:highlightWidth:focusWidth:selectionWidth:allowsMoving:allowsResizing:allowsResizingAtStart:allowsMovingVertically:thumbDistance:)
Undocumented
Declaration
Swift
public func drawBar(for item: GanttChartItem, in rectangle: Rectangle, fillColor: Color, secondaryFillColor: Color, strokeColor: Color?, strokeWidth: Double, cornerRadius: Double, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: Color, focusColor: Color, selectionColor: Color, highlightWidth: Double, focusWidth: Double, selectionWidth: Double, allowsMoving: Bool, allowsResizing: Bool, allowsResizingAtStart: Bool, allowsMovingVertically: Bool, thumbDistance: Double)
-
drawBar(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:cornerRadius:isHighlighted:isFocused:isSelected:highlightColor:focusColor:selectionColor:highlightWidth:focusWidth:selectionWidth:allowsMoving:allowsResizing:allowsResizingAtStart:allowsMovingVertically:thumbDistance:)
Draws a standard bar in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBar(for item: GanttChartItem, in rectangle: CGRect, fillColor: UIColor, secondaryFillColor: UIColor, strokeColor: UIColor?, strokeWidth: CGFloat, cornerRadius: CGFloat, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: UIColor, focusColor: UIColor, selectionColor: UIColor, highlightWidth: CGFloat, focusWidth: CGFloat, selectionWidth: CGFloat, allowsMoving: Bool, allowsResizing: Bool, allowsResizingAtStart: Bool, allowsMovingVertically: Bool, thumbDistance: CGFloat)
-
drawSummaryBar(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:triangleInset:triangleScale:isExpanded:isHighlighted:isFocused:isSelected:highlightColor:focusColor:selectionColor:highlightWidth:focusWidth:selectionWidth:allowsMoving:allowsResizing:allowsResizingAtStart:allowsMovingVertically:thumbDistance:)
Undocumented
Declaration
Swift
public func drawSummaryBar(for item: GanttChartItem, in rectangle: Rectangle, fillColor: Color, secondaryFillColor: Color, strokeColor: Color?, strokeWidth: Double, triangleInset: Double, triangleScale: Double, isExpanded: Bool, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: Color, focusColor: Color, selectionColor: Color, highlightWidth: Double, focusWidth: Double, selectionWidth: Double, allowsMoving: Bool, allowsResizing: Bool, allowsResizingAtStart: Bool, allowsMovingVertically: Bool, thumbDistance: Double)
-
drawSummaryBar(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:triangleInset:triangleScale:isExpanded:isHighlighted:isFocused:isSelected:highlightColor:focusColor:selectionColor:highlightWidth:focusWidth:selectionWidth:allowsMoving:allowsResizing:allowsResizingAtStart:allowsMovingVertically:thumbDistance:)
Draws a summary bar in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawSummaryBar(for item: GanttChartItem, in rectangle: CGRect, fillColor: UIColor, secondaryFillColor: UIColor, strokeColor: UIColor?, strokeWidth: CGFloat, triangleInset: CGFloat, triangleScale: CGFloat, isExpanded: Bool, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: UIColor, focusColor: UIColor, selectionColor: UIColor, highlightWidth: CGFloat, focusWidth: CGFloat, selectionWidth: CGFloat, allowsMoving: Bool, allowsResizing: Bool, allowsResizingAtStart: Bool, allowsMovingVertically: Bool, thumbDistance: CGFloat)
-
drawMilestone(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:isHighlighted:isFocused:isSelected:highlightColor:focusColor:selectionColor:highlightWidth:focusWidth:selectionWidth:allowsMoving:allowsMovingVertically:thumbDistance:)
Undocumented
Declaration
Swift
public func drawMilestone(for item: GanttChartItem, in rectangle: Rectangle, fillColor: Color, secondaryFillColor: Color, strokeColor: Color?, strokeWidth: Double, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: Color, focusColor: Color, selectionColor: Color, highlightWidth: Double, focusWidth: Double, selectionWidth: Double, allowsMoving: Bool, allowsMovingVertically: Bool, thumbDistance: Double)
-
drawMilestone(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:isHighlighted:isFocused:isSelected:highlightColor:focusColor:selectionColor:highlightWidth:focusWidth:selectionWidth:allowsMoving:allowsMovingVertically:thumbDistance:)
Draws a milestone diamond in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawMilestone(for item: GanttChartItem, in rectangle: CGRect, fillColor: UIColor, secondaryFillColor: UIColor, strokeColor: UIColor?, strokeWidth: CGFloat, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: UIColor, focusColor: UIColor, selectionColor: UIColor, highlightWidth: CGFloat, focusWidth: CGFloat, selectionWidth: CGFloat, allowsMoving: Bool, allowsMovingVertically: Bool, thumbDistance: CGFloat)
-
drawCompletionBar(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:cornerRadius:allowsResizing:thumbDistance:)
Undocumented
Declaration
Swift
public func drawCompletionBar(for item: GanttChartItem, in rectangle: Rectangle, fillColor: Color, secondaryFillColor: Color, strokeColor: Color?, strokeWidth: Double, cornerRadius: Double, allowsResizing: Bool, thumbDistance: Double)
-
drawCompletionBar(for:in:fillColor:secondaryFillColor:strokeColor:strokeWidth:cornerRadius:allowsResizing:thumbDistance:)
Draws the completion bar for an item in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawCompletionBar(for item: GanttChartItem, in rectangle: CGRect, fillColor: UIColor, secondaryFillColor: UIColor, strokeColor: UIColor?, strokeWidth: CGFloat, cornerRadius: CGFloat, allowsResizing: Bool, thumbDistance: CGFloat)
-
Undocumented
Declaration
Swift
public func drawBarLabel(for item: GanttChartItem, in rectangle: Rectangle, text: String, foregroundColor: Color, alignment: TextAlignment)
-
Draws the label for a bar in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBarLabel(for item: GanttChartItem, in rectangle: CGRect, text: String, foregroundColor: UIColor, alignment: NSTextAlignment)
-
Undocumented
Declaration
Swift
public func drawAttachmentLabel(for item: GanttChartItem, in rectangle: Rectangle, text: String, foregroundColor: Color)
-
Draws the attachment label for a bar in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawAttachmentLabel(for item: GanttChartItem, in rectangle: CGRect, text: String, foregroundColor: UIColor)
-
Draws a specific dependency line in the diagram. Override this method to perform custom drawing.
Declaration
Swift
open func draw(dependencyLine: GanttChartDependencyLine)
-
drawDependencyLine(for:as:color:width:arrowWidth:arrowLength:isHighlighted:isFocused:isSelected:highlightWidth:focusWidth:selectionWidth:)
Undocumented
Declaration
Swift
public func drawDependencyLine(for dependency: GanttChartDependency, as polyline: Polyline, color: Color, width: Double, arrowWidth: Double, arrowLength: Double, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightWidth: Double, focusWidth: Double, selectionWidth: Double)
-
drawDependencyLine(for:through:color:width:arrowWidth:arrowLength:isHighlighted:isFocused:isSelected:highlightWidth:focusWidth:selectionWidth:)
Draws a dependency line in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawDependencyLine(for dependency: GanttChartDependency, through points: [CGPoint], color: UIColor, width: CGFloat, arrowWidth: CGFloat, arrowLength: CGFloat, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightWidth: CGFloat, focusWidth: CGFloat, selectionWidth: CGFloat)
-
Undocumented
Declaration
Swift
public func drawDependencyLineThumb(for item: GanttChartItem, type: GanttChartDependencyEndType, center: Point, radius: Double, color: Color)
-
Draws a dependency line thumb (allowing the end user to create dependencies) for a bar in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawDependencyLineThumb(for item: GanttChartItem, type: GanttChartDependencyEndType, center: CGPoint, radius: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func drawTemporaryDependencyLine(from: GanttChartItem, to: GanttChartItem?, type: GanttChartDependencyType, as polyline: Polyline, color: Color, width: Double, arrowWidth: Double, arrowLength: Double, dashWidth: Double)
-
Draws a temporary dependency line (while the end user performs a dragging operation to create a new dependency) in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawTemporaryDependencyLine(from: GanttChartItem, to: GanttChartItem?, type: GanttChartDependencyType, through points: [CGPoint], color: UIColor, width: CGFloat, arrowWidth: CGFloat, arrowLength: CGFloat, dashWidth: CGFloat)
-
Draws a temporary bar (when the end user initiated a create item operation, until he or she selects whether it should be a standard item or a milestone) in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawTemporaryBar(in rectangle: CGRect, color: UIColor, cornerRadius: CGFloat, dashWidth: CGFloat)
-
Undocumented
Declaration
Swift
public func drawHeaderTimeArea(for highlighter: ScheduleTimeSelector, in rectangle: Rectangle, fillColor: Color)
-
Draws the highlighting for a time area generated by a schedule time highlighter in the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawHeaderTimeArea(for highlighter: ScheduleTimeSelector, in rectangle: CGRect, fillColor: UIColor)
-
Undocumented
Declaration
Swift
public func drawContentTimeArea(for highlighter: ScheduleTimeSelector, in rectangle: Rectangle, fillColor: Color)
-
Draws the highlighting for a time area generated by a schedule time highlighter in the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawContentTimeArea(for highlighter: ScheduleTimeSelector, in rectangle: CGRect, fillColor: UIColor)
-
Undocumented
Declaration
Swift
public func drawHeaderCell(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: Rectangle, backgroundColor: Color)
-
Draws the background for a time area cell generated by a time selector of a row in the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawHeaderCell(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: CGRect, backgroundColor: UIColor)
-
Undocumented
Declaration
Swift
public func drawHeaderCellBorder(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: Rectangle, line: Line, lineWidth: Double, color: Color)
-
Draws a border for a time area cell generated by a time selector of a row in the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawHeaderCellBorder(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func drawHeaderCellLabel(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: Rectangle, text: String, foregroundColor: Color, alignment: TextAlignment, verticalAlignment: VerticalTextAlignment)
-
Draws the label for a time area cell generated by a time selector of a row in the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawHeaderCellLabel(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: CGRect, text: String, foregroundColor: UIColor, alignment: NSTextAlignment, verticalAlignment: VerticalTextAlignment)
-
Undocumented
Declaration
Swift
public func drawContentTimeArea(for highlighter: TimeSelector, in rectangle: Rectangle, backgroundColor: Color)
-
Draws the highlighting for a time area generated by a time selector in the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawContentTimeArea(for highlighter: TimeSelector, in rectangle: CGRect, backgroundColor: UIColor)
-
Undocumented
Declaration
Swift
public func drawContentTimeAreaBorder(for highlighter: TimeSelector, in rectangle: Rectangle, line: Line, lineWidth: Double, color: Color)
-
Draws a border for a time area generated by a time selector in the diagram content as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawContentTimeAreaBorder(for highlighter: TimeSelector, in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func drawContentTimeAreaLabel(for highlighter: TimeSelector, in rectangle: Rectangle, text: String, foregroundColor: Color, alignment: TextAlignment, verticalAlignment: VerticalTextAlignment)
-
Draws the label for a time area generated by a time selector in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawContentTimeAreaLabel(for highlighter: TimeSelector, in rectangle: CGRect, text: String, foregroundColor: UIColor, alignment: NSTextAlignment, verticalAlignment: VerticalTextAlignment)
-
Undocumented
Declaration
Swift
open func toolTip(for item: GanttChartItem) -> String?
-
Undocumented
Declaration
Swift
open func toolTip(for dependency: GanttChartDependency) -> String?
-
Undocumented
Declaration
Swift
public func scrollTo(startX: Double, finishX: Double)
-
Undocumented
Declaration
Swift
public func scrollVerticallyTo(startY: Double, finishY: Double)