|
|
1.1 ! root 1: @interface Line : Graphic ! 2: { ! 3: int startCorner; /* corner we start creating from */ ! 4: } ! 5: ! 6: /* Initialization method */ ! 7: ! 8: + initialize; ! 9: ! 10: /* Creation method */ ! 11: ! 12: - init; ! 13: ! 14: /* Methods overridden from superclass */ ! 15: ! 16: - (BOOL)isValid; ! 17: - (int)moveCorner:(int)corner to:(const NXPoint *)point constrain:(BOOL)flag; ! 18: - constrainCorner:(int)corner toAspectRatio:(float)ratio; ! 19: - (int)cornerMask; ! 20: - draw; ! 21: - (BOOL)hit:(const NXPoint *)point; ! 22: ! 23: /* Methods to be overridden by subclassers */ ! 24: ! 25: - (float)arrowAngle:(int)corner; ! 26: - drawLine; ! 27: ! 28: /* Archiving */ ! 29: ! 30: - write:(NXTypedStream *)stream; ! 31: - read:(NXTypedStream *)stream; ! 32: ! 33: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.