ftp.nice.ch/pub/next/science/mathematics/HippoDraw.2.0.s.tar.gz#/HippoDraw/Hippo.bproj/Draw.subproj/graphicsUndo.subproj/LineWidthGraphicsChange.m

This is LineWidthGraphicsChange.m in view mode; [Download] [Up]

#import "drawundo.h"

@interface LineWidthGraphicsChange(PrivateMethods)

- (BOOL)subsumeIdenticalChange:change;

@end

@implementation LineWidthGraphicsChange

- initGraphicView:aGraphicView lineWidth:(float)aWidth
{
    [super initGraphicView:aGraphicView];
    widthValue = aWidth;
    return self;
}

- (const char *)changeName
{
    return NXLocalStringFromTable("Operations", "Line Width", NULL, "The operation of changing the width of a line segment.");
}

- changeDetailClass
{
    return [LineWidthChangeDetail class];
}

- (float)lineWidth
{
    return widthValue;
}

- (BOOL)subsumeIdenticalChange:change
{
    widthValue = [(LineWidthGraphicsChange *)change lineWidth];
    return YES;
}

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.