GanttChartContent
@IBDesignable
open class GanttChartContent : NSView, GanttChartContentObserver, GanttChartContentScroller, GanttChartContentPresenter, NSGestureRecognizerDelegate
Presents the content of a Gantt Chart diagram in a macOS 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 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! -
Undocumented
Declaration
Swift
public func gestureRecognizer(_: NSGestureRecognizer, shouldRecognizeSimultaneouslyWith otherRecognizer: NSGestureRecognizer) -> 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 layout() -
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: NSRect) -
Draws background for the diagram 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 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) -
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: NSRect, color: NSColor) -
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: NSRect, p1: NSPoint, p2: NSPoint, lineWidth: CGFloat, color: NSColor) -
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: NSRect, fillColor: NSColor, secondaryFillColor: NSColor, strokeColor: NSColor?, strokeWidth: CGFloat, cornerRadius: CGFloat, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: NSColor, focusColor: NSColor, selectionColor: NSColor, 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: NSRect, fillColor: NSColor, secondaryFillColor: NSColor, strokeColor: NSColor?, strokeWidth: CGFloat, triangleInset: CGFloat, triangleScale: CGFloat, isExpanded: Bool, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: NSColor, focusColor: NSColor, selectionColor: NSColor, 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: NSRect, fillColor: NSColor, secondaryFillColor: NSColor, strokeColor: NSColor?, strokeWidth: CGFloat, isHighlighted: Bool, isFocused: Bool, isSelected: Bool, highlightColor: NSColor, focusColor: NSColor, selectionColor: NSColor, 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: NSRect, fillColor: NSColor, secondaryFillColor: NSColor, strokeColor: NSColor?, 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: NSRect, text: String, foregroundColor: NSColor, 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: NSRect, text: String, foregroundColor: NSColor) -
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: [NSPoint], color: NSColor, 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: NSPoint, radius: CGFloat, color: NSColor) -
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: [NSPoint], color: NSColor, 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: NSRect, color: NSColor, 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: NSRect, fillColor: NSColor) -
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: NSRect, backgroundColor: NSColor) -
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: NSRect, p1: NSPoint, p2: NSPoint, lineWidth: CGFloat, color: NSColor) -
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: NSRect, text: String, foregroundColor: NSColor, alignment: NSTextAlignment, verticalAlignment: VerticalTextAlignment) -
Undocumented
Declaration
Swift
open func mouseMoved(at point: NSPoint) -
Undocumented
Declaration
Swift
open func mouseEntered() -
Undocumented
Declaration
Swift
open func mouseExited() -
Returns the tooltip text for a specific item in the diagram. Override this method to perform custom drawing.
Declaration
Swift
open func toolTip(for item: GanttChartItem) -> String? -
Returns the tooltip text for a specific dependency in the diagram. Override this method to perform custom drawing.
Declaration
Swift
open func toolTip(for dependency: GanttChartDependency) -> String? -
Undocumented
Declaration
Swift
open func scrollTo(startX: Double, finishX: Double) -
Undocumented
Declaration
Swift
open func scrollVerticallyTo(startY: Double, finishY: Double) -
Undocumented
Declaration
Swift
open override func menu(for event: NSEvent) -> NSMenu? -
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
GanttChartContent Class Reference