home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / graphicsUndo.subproj / LineWidthGraphicsChange.m < prev    next >
Text File  |  1992-02-09  |  706b  |  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. - (const char *)changeName
  19. {
  20.     return NXLocalStringFromTable("Operations", "Line Width", NULL, "The operation of changing the width of a line segment.");
  21. }
  22.  
  23. - 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.