Instance Method

drawHashMarksAndLabelsInRect:

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

Declaration

- (void)drawHashMarksAndLabelsInRect:(NSRect)rect;

Discussion

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

See Also

Drawing

- drawMarkersInRect:

Draws the receiver’s markers in aRect, which is expressed in the receiver’s coordinate system.

- invalidateHashMarks

Forces recalculation of the hash mark spacing for the next time the receiver is displayed.