home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / LineColorGraphicsChange.m < prev    next >
Text File  |  1995-11-28  |  698b  |  46 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:(NSColor *)aColor
  12. {
  13.     [super initGraphicView:aGraphicView];
  14.     color = [aColor copyWithZone:(NSZone *)[self zone]];
  15.     return self;
  16. }
  17.  
  18. - (NSString *)changeName
  19. {
  20.     return LINECOLOR_OP;
  21. }
  22.  
  23. - (Class)changeDetailClass
  24. {
  25.     return [LineColorChangeDetail class];
  26. }
  27.  
  28. - (NSColor *)lineColor
  29. {
  30.     return color;
  31. }
  32.  
  33. - (BOOL)subsumeIdenticalChange:change
  34. {
  35.     color = [(LineColorGraphicsChange *)change lineColor];
  36.     return YES;
  37. }
  38.  
  39. - (void)dealloc
  40. {
  41.     [color release];
  42.     [super dealloc];
  43. }
  44.  
  45. @end
  46.