GanttChartContent
@IBDesignable
open class GanttChartContent : UIView, UIScrollViewDelegate, UIGestureRecognizerDelegate, GanttChartContentObserver, GanttChartContentScroller, GanttChartContentPresenter
Presents the content of a Gantt Chart diagram in an iOS application. Use a GanttChart component instead if you would like to associate a GanttChartContent with a header area.
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Provides access to the internal UIScrollView of the component.
Declaration
Swift
@IBOutlet public private(set) weak var scrollView: UIScrollView!
-
Undocumented
Declaration
Swift
public func scrollViewDidScroll(_: UIScrollView)
-
Undocumented
Declaration
Swift
public func gestureRecognizer(_: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherRecognizer: UIGestureRecognizer) -> Bool
-
Configures and manages the user interface component at initialization and runtime.
Declaration
Swift
public var controller: GanttChartContentController! { get set }
-
Undocumented
Declaration
Swift
open override func prepareForInterfaceBuilder()
-
Undocumented
Declaration
Swift
open override func layoutSubviews()
-
Undocumented
Declaration
Swift
public func totalDiagramSizeDidChange()
-
Undocumented
Declaration
Swift
public func visibleBarsDidChange()
-
Undocumented
Declaration
Swift
public func visibleDependencyLinesDidChange()
-
Undocumented
Declaration
Swift
public func highlightedScheduleAreasDidChange()
-
Undocumented
Declaration
Swift
public func highlightedIntervalAreasDidChange()
-
Undocumented
Declaration
Swift
public func dependencyLineThumbAreaDidChange()
-
Undocumented
Declaration
Swift
public func temporaryDependencyLineDidChange()
-
Undocumented
Declaration
Swift
public func temporaryBarDidChange()
-
Undocumented
Declaration
Swift
public func settingsDidChange()
-
Draws the part of the diagram that matches the rectangular area received as input. Override this method to perform custom drawing.
Declaration
Swift
open func draw(within area: CGRect)
-
Draws background for the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBackground(color: UIColor, size: CGSize)
-
Draws a border for the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBorder(in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Draws background for a row in the diagram 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 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)
-
Undocumented
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 drawTimeArea(for highlighter: ScheduleTimeSelector, in rectangle: Rectangle, fillColor: Color)
-
Draws the highlighting for a time area generated by a schedule time highlighter in the diagram as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawTimeArea(for highlighter: ScheduleTimeSelector, in rectangle: CGRect, fillColor: UIColor)
-
Undocumented
Declaration
Swift
public func drawTimeArea(for highlighter: TimeSelector, in rectangle: Rectangle, backgroundColor: Color)
-
Draws the highlighting 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 drawTimeArea(for highlighter: TimeSelector, in rectangle: CGRect, backgroundColor: UIColor)
-
Undocumented
Declaration
Swift
public func drawTimeAreaBorder(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 as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawTimeAreaBorder(for highlighter: TimeSelector, in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor)
-
Undocumented
Declaration
Swift
public func drawTimeAreaLabel(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 drawTimeAreaLabel(for highlighter: TimeSelector, in rectangle: CGRect, text: String, foregroundColor: UIColor, alignment: NSTextAlignment, verticalAlignment: VerticalTextAlignment)
-
Undocumented
Declaration
Swift
open func scrollTo(startX: Double, finishX: Double)
-
Undocumented
Declaration
Swift
open func scrollVerticallyTo(startY: Double, finishY: Double)