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

  1. #import "drawundo.h"
  2.  
  3. @interface FillGraphicsChange(PrivateMethods)
  4.  
  5. - (BOOL)subsumeIdenticalChange:change;
  6.  
  7. @end
  8.  
  9. @implementation FillGraphicsChange
  10.  
  11. - initGraphicView:aGraphicView
  12. {
  13.     return [self initGraphicView:aGraphicView fill:-1];
  14. }
  15.  
  16. - initGraphicView:aGraphicView fill:(int)fillValue
  17. {
  18.     [super initGraphicView:aGraphicView];
  19.     fill = fillValue;
  20.     return self;
  21. }
  22.  
  23. - (const char *)changeName
  24. {
  25.     return NXLocalStringFromTable("Operations", "Fill", NULL, "The operation of filling a graphical entity's interior with a gray or color.");
  26. }
  27.  
  28. - changeDetailClass
  29. {
  30.     return [FillChangeDetail class];
  31. }
  32.  
  33. - (BOOL)subsumeIdenticalChange:change
  34. {
  35.     return YES;
  36. }
  37.  
  38. - (int)fill
  39. {
  40.     return fill;
  41. }
  42.  
  43. @end
  44.