home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / graphicsUndo.subproj / LineColorGraphicsChange.m < prev    next >
Text File  |  1992-02-09  |  700b  |  40 lines

  1. #import "drawundo.h"
  2.  
  3. @interface LineColorGraphicsChange(PrivateMethods)
  4.  
  5. - (BOOL)subsumeIdenticalChange:change;
  6.  
  7. @end
  8.  
  9. @implementation LineColorGraphicsChange
  10.  
  11. - initGraphicView:aGraphicView color:(const NXColor *)aColor
  12. {
  13.     [super initGraphicView:aGraphicView];
  14.     color = *aColor;
  15.     return self;
  16. }
  17.  
  18. - (const char *)changeName
  19. {
  20.     return NXLocalStringFromTable("Operations", "Line Color", NULL, "The operation of changing the color of a line segment.");
  21. }
  22.  
  23. - changeDetailClass
  24. {
  25.     return [LineColorChangeDetail class];
  26. }
  27.  
  28. - (NXColor)lineColor
  29. {
  30.     return color;
  31. }
  32.  
  33. - (BOOL)subsumeIdenticalChange:change
  34. {
  35.     color = [(LineColorGraphicsChange *)change line(r];
  36.     return YES;
  37. }
  38.  
  39. @end
  40.