
/* Generated by Interface Builder */

#import "TestObject.h"
#import "BarGauge.h"
#import "ValuatorGauge.h"
#import <appkit/Button.h>	/* to show which ones have overflowed */
#import <appkit/Matrix.h>	/* the status switches are in a matrix */

@implementation TestObject

- setBarVert:anObject
{
    barVert = anObject;
    [barVert setBorderType:NX_RIDGE];
    return self;
}

- setLabelBarVert:anObject
/* actually this is now a valuator */
{
    labelBarVert = anObject;
    [labelBarVert setLabelTicsEnable:YES];
    [labelBarVert setBorderType:NX_NOBORDER];
    return self;
}

- setLabelBarHoriz:anObject
{
    labelBarHoriz = anObject;
    [labelBarHoriz setLabelTicsEnable:YES];
    return self;
}

- setBarHoriz:anObject
{
    barHoriz = anObject;
    [barHoriz setAutoScaleEnable:NO];
    return self;
}

- setPointerHoriz:anObject
{
    pointerHoriz = anObject;
    [pointerHoriz setBorderType:NX_LINE];
    return self;
}

- setPointerVert:anObject
{
    pointerVert = anObject;
    [pointerVert setBorderType:NX_NOBORDER];
    [pointerVert setAutoScaleEnable:NO];
    return self;
}

- setStatusMatrix:anObject
{
	statusMatrix = anObject;
	return self;
}

- overflowOccured:sender
{
	if (sender == pointerVert){
		[statusMatrix  selectCellAt:0 :0 ] ;
	} else if (sender == barHoriz){
		[statusMatrix  selectCellAt:0 :4 ] ;
	}
}
	

@end
