GanttChartHeader
@IBDesignable
open class GanttChartHeader : UIView, UIScrollViewDelegate, GanttChartHeaderObserver, GanttChartHeaderScroller, GanttChartHeaderPresenter
Presents the header of a Gantt Chart diagram in an iOS application. Use a GanttChart component instead if you would like to associate a GanttChartHeader with a content 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) -
Configures and manages the user interface component at initialization and runtime.
Declaration
Swift
public var controller: GanttChartHeaderController! { get set } -
Undocumented
Declaration
Swift
open override func prepareForInterfaceBuilder() -
Undocumented
Declaration
Swift
open override func layoutSubviews() -
Undocumented
Declaration
Swift
public func totalDiagramHeaderSizeDidChange() -
Undocumented
Declaration
Swift
public func highlightedScheduleAreasDidChange() -
Undocumented
Declaration
Swift
public func cellsDidChange() -
Undocumented
Declaration
Swift
public func zoomDidChange() -
Undocumented
Declaration
Swift
public func settingsDidChange() -
Draws the part of the diagram header 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 header 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 header 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) -
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 header 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 drawCell(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 drawCell(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: CGRect, backgroundColor: UIColor) -
Undocumented
Declaration
Swift
public func drawCellBorder(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 drawCellBorder(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: CGRect, p1: CGPoint, p2: CGPoint, lineWidth: CGFloat, color: UIColor) -
Undocumented
Declaration
Swift
public func drawCellLabel(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 drawCellLabel(for selector: TimeSelector, of row: GanttChartHeaderRow, in rectangle: CGRect, text: String, foregroundColor: UIColor, alignment: NSTextAlignment, verticalAlignment: VerticalTextAlignment) -
Undocumented
Declaration
Swift
open func scrollTo(startX: Double, finishX: Double)
GanttChartHeader Class Reference