ftp.nice.ch/pub/next/developer/resources/palettes/UHShapes.1.1.N.b.tar.gz#/UHShapes_1.1/UHLineShape.rtf

This is UHLineShape.rtf in view mode; [Download] [Up]

	UHLineShape
	
INHERITS FROM	UHShape:View:Responder:Object

DECLARED IN	 UHLineShape.h

AUTHOR	Department of Electrical Engineering
	University of Houston, Houston, TX 77204
	uhoop@uh.edu
								
CLASS DESCRIPTION
		
The UHLineShape is a simple class that draws lines of various size, color, and orientation to be placed into windows in Interface Builder.  The various attributes can be set via the IB inspector. 
						
	
INSTANCE VARIABLES

Inherited from Object	Class	isa;

Inherited from Responder	id	nextResponder;

Inherited from View	NXRect	frame;
NXRect	bounds;
id	superview;
id	subviews;
id	window;
struct __vFlags	vFlags;

Inherited from UHShape	NXColor	lineColor;
	NXColor	fillColor;
int 	tag
int	choice;
BOOL 	isBordered;
BOOL	isFilled
float 	lineWidth;

Declared in UHLineShape	float	angle;

									
METHOD TYPES
		
Initializing the View Frame Rectangle	- initFrame:

Drawing the line shape	- drawSelf::

Setting the attributes of the line	- setAngle:
- angle

Archiving	- read
- write		
												
INSTANCE METHODS
			
angle
- (float)angle
					
Returns the angle of the line used when the value of the choice variable is UH_VARIABLESLOPE.  Returns self.
					
drawSelf::
- drawSelf:(const NXRect *)rects :(int)rectCount
					
Draws the line using the various attributes set in the instance variables.  The general type of line drawn is determined by the instance variable choice.  See "Symbolic Constants" below for allowable values of choice.  Returns self.

initFrame:
- initFrame:(const NXRect *)frameRect
					
Initializes the object, which must be a newly allocated UHLineShape instance.  The View's frame rectangle is made equivalent to that pointed to by frameRect.   It also initializes the line width, line color, fill color, border, and fill of the line.  Returns self.
					
read:
- read:(NXTypedStream *)stream
					
Reads the UHLineShape from the typed stream stream.
					
setAngle:
setAngle:(float)value
					
Sets the angle of the line when its choice variable is UH_VARIABLESLOPE.  Returns self.
						
write
	- write:(NXTypedStream *)stream
					
Writes the UHLineShape to the typed stream stream. 
					
					
SYMBOLIC CONSTANTS


Allowable values of the instance variable choice:

UH_HORIZONTAL	0
UH_VERTICAL	1
UH_POSITIVESLOPE	2
UH_NEGATIVESLOPE	3
UH_VARIABLESLOPE	4
		
					
				
				


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