Contents

drawHashMarksAndLabels(in:)

Draws the receiver’s hash marks and labels in aRect, which is expressed in the receiver’s coordinate system.

Declaration

func drawHashMarksAndLabels(in rect: NSRect)

Discussion

This method is invoked by draw(_:)—you should never need to invoke it directly. You can define custom measurement units using the class method registerUnit(withName:abbreviation:unitToPointsConversionFactor:stepUpCycle:stepDownCycle:). Override this method if you want to customize the appearance of the hash marks themselves.

See Also

Drawing