Up

AFGraph class documentation

Authors

Stefan Urbanek (urbanek@host.sk)

Copyright: (C) 2002 Stefan Urbanek

Software documentation for the AFGraph class

AFGraph : NSView

Declared in:
FarmingKit/AFGraph.h

Description forthcoming.

Method summary

addElement:

- (void) addElement: (AFGraphElement*)element;

Adds element to the list of receiver's graph elements and notifies associated graph legend view with graphViewDidChangeGraphs:self


drawInRect:graphWindow:

- (void) drawInRect: (NSRect)frame graphWindow: (AFRect*)windowRect;

Description forthcoming.


elements

- (NSArray*) elements;

Description forthcoming.


relativeScale

- (BOOL) relativeScale;

Returns whether graph elements are drawn in relative scale.


removeAllElements

- (void) removeAllElements;

Removes all elements of receiver and notifies associated graph legend view with graphViewDidChangeGraphs:self


removeElement:

- (void) removeElement: (AFGraphElement*)element;

Removes element from the list of receiver's graph elements and notifies associated graph legend view with graphViewDidChangeGraphs:self


setElements:

- (void) setElements: (NSArray*)array;

Sets all elements of receiver to be array and notifies associated graph legend view with graphViewDidChangeGraphs:self


setRelativeScale:

- (void) setRelativeScale: (BOOL)flag;

Enable relative scaling when flag is YES. Relative scaling means that all elements are drawn in different scales, so they minimum values are drawn as equal, same for maximum values.


setTitle:

- (void) setTitle: (NSString*)aString;

Set graph title to aString


title

- (NSString*) title;

Returns graph title



Up