GanttChartHeader
@IBDesignable
open class GanttChartHeader : NSView, GanttChartHeaderObserver, GanttChartHeaderScroller, GanttChartHeaderPresenter
Presents the header of a Gantt Chart diagram in a macOS 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 frameRect: NSRect)
-
Undocumented
Declaration
Swift
public required init?(coder decoder: NSCoder)
-
Provides access to the internal NSScrollView of the component.
Declaration
Swift
@IBOutlet public private(set) weak var scrollView: NSScrollView!
-
Provides access to the internal NSClipView of the component.
Declaration
Swift
@IBOutlet public private(set) weak var clipView: NSClipView!
-
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 layout()
-
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: NSRect)
-
Draws background for the diagram header as specified by input arguments. Override this method to perform custom drawing.
Declaration
Swift
open func drawBackground(color: NSColor, size: NSSize)
-
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: NSRect, p1: NSPoint, p2: NSPoint, lineWidth: CGFloat, color: NSColor)
-
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: NSRect, fillColor: NSColor)
-
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: NSRect, backgroundColor: NSColor)
-
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: NSRect, p1: NSPoint, p2: NSPoint, lineWidth: CGFloat, color: NSColor)
-
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: NSRect, text: String, foregroundColor: NSColor, alignment: NSTextAlignment, verticalAlignment: VerticalTextAlignment)
-
Undocumented
Declaration
Swift
open func scrollTo(startX: Double, finishX: Double)
-
Provides an image representation of the current content of the view.
Declaration
Swift
public var imageRepresentation: NSBitmapImageRep { get }
-
Provides an image of the current content of the view.
Declaration
Swift
public var image: NSImage { get }
-
Provides exportable PNG image data from the current content of the view.
Declaration
Swift
public var imageData: Data { get }
-
Provides exportable image data obtained using a specific file type (by default PNG), optionally considering further customization properties, from the current content of the view.
Declaration
Swift
public func imageData(using fileType: NSBitmapImageRep.FileType = .png, properties: [NSBitmapImageRep.PropertyKey: Any] = [:]) -> Data