home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Examples / AppKit / Draw / graphicsUndo.subproj / LineWidthGraphicsChange.m < prev    next >
Text File  |  1995-11-28  |  609b  |  40 lines

  1. #import "drawundo.h"
  2.  
  3. @interface LineWidthGraphicsChange(PrivateMethods)
  4.  
  5. - (BOOL)subsumeIdenticalChange:change;
  6.  
  7. @end
  8.  
  9. @implementation LineWidthGraphicsChange
  10.  
  11. - initGraphicView:aGraphicView lineWidth:(float)aWidth
  12. {
  13.     [super initGraphicView:aGraphicView];
  14.     widthValue = aWidth;
  15.     return self;
  16. }
  17.  
  18. - (NSString *)changeName
  19. {
  20.     return LINEWIDTH_OP;
  21. }
  22.  
  23. - (Class)changeDetailClass
  24. {
  25.     return [LineWidthChangeDetail class];
  26. }
  27.  
  28. - (float)lineWidth
  29. {
  30.     return widthValue;
  31. }
  32.  
  33. - (BOOL)subsumeIdenticalChange:change
  34. {
  35.     widthValue = [(LineWidthGraphicsChange *)change lineWidth];
  36.     return YES;
  37. }
  38.  
  39. @end
  40.