home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Examples / AppKit / Draw / Group.h < prev    next >
Text File  |  1995-09-04  |  2KB  |  73 lines

  1. @interface Group : Graphic
  2. {
  3.     NSImage *cache;    /* an NSImage used to cache the group */
  4.     NSMutableArray *components;    /* the Graphics in the group */
  5.     NSRect lastRect;    /* the last rectangle the group was drawn in */
  6.     BOOL dontCache;    /* whether we can cache this group */
  7.     BOOL hasTextGraphic;/* whether a TextGraphic is included in the group */
  8. }
  9.  
  10. /* Creation methods */
  11.  
  12. - initList:(NSMutableArray *)list;
  13. - (void)dealloc;
  14.  
  15. /* Public methods */
  16.  
  17. - (void)transferSubGraphicsTo:(NSMutableArray *)array at:(int)position;
  18. - (NSMutableArray *)subGraphics;
  19.  
  20. /* Group must override all the setting routines to forward to components */
  21.  
  22. - (void)makeGraphicsPerform:(SEL)aSelector with:(const void *)anArgument;
  23.  
  24. - (void)changeFont:(id)sender;
  25. - (NSFont *)font;
  26. - (void)setLineWidth:(const float *)value;
  27. - (void)setGray:(const float *)value;
  28. - (void)setFill:(int)mode;
  29. - (void)setFillColor:(NSColor *)aColor;
  30. - (void)setLineColor:(NSColor *)aColor;
  31. - (void)setLineCap:(int)capValue;
  32. - (void)setLineArrow:(int)arrowValue;
  33. - (void)setLineJoin:(int)joinValue;
  34.  
  35. /* Link methods */
  36.  
  37. - (void)reviveLink:(NSDataLinkManager *)linkManager;
  38. - (Graphic *)graphicLinkedBy:(NSDataLink *)aLink;
  39.  
  40. - (void)resetIdentifier;
  41. - (NSString *)identifierString;
  42. - (Graphic *)graphicIdentifiedBy:(int)anIdentifier;
  43. - (void)readLinkFromPasteboard:(NSPasteboard *)pboard usingManager:(NSDataLinkManager *)linkManager useNewIdentifier:(BOOL)useNewIdentifier;
  44.  
  45. /* Notification from GraphicView */
  46.  
  47. - (void)wasRemovedFrom:(GraphicView *)sender;
  48. - (void)wasAddedTo:(GraphicView *)sender;
  49.  
  50. /* Methods overridden from superclass */
  51.  
  52. - (Graphic *)colorAcceptorAt:(NSPoint)point;
  53. - (void)setCacheable:(BOOL)flag;
  54. - (BOOL)isCacheable;
  55. - draw;
  56. - (BOOL)hit:(NSPoint)point;
  57.  
  58. /* Methods propagated onto all the Graphics in the Group. */
  59.  
  60. - (BOOL)hasTextGraphic;
  61. - (BOOL)hasFormEntries;
  62. - (BOOL)writeFormEntryToMutableString:(NSMutableString *)aString;
  63. - (BOOL)writesFiles;
  64. - (void)writeFilesToDirectory:(NSString *)directory;
  65.  
  66. /* Archiving methods */
  67.  
  68. - (void)convertSelf:(ConversionDirection)direction propertyList:(id)plist;
  69. - (id)propertyList;
  70. - initFromPropertyList:(id)plist inDirectory:(NSString *)directory;
  71.  
  72. @end
  73.