Constants



NSForegroundColorAttributeName

NSString *NSForegroundColorAttributeName;

This is a key to be used in the -twoDGraphView:attributesForLineIndex: dictionary. The value represents what color the line will be drawn. If this key is not present, a default color will be used based on the zero based line index of the line.

The value should be an NSColor object. For example, [ NSColor redColor ].


SM2DGraphBarStyleAttributeName

NSString *SM2DGraphBarStyleAttributeName;

This is a key to be used in the -twoDGraphView:attributesForLineIndex: dictionary. If this key is present with any value, the line will be drawn as a series of bars instead of as a line.


SM2DGraphDontAntialiasAttributeName

NSString *SM2DGraphDontAntialiasAttributeName;

This is a key to be used in the -twoDGraphView:attributesForLineIndex: dictionary. If this key is present with any value, the line will not be anti-aliased. This does not affect lines with the bar style.

This was added in v1.1 of the framework.


SM2DGraphLineDashAttributeName

NSString *SM2DGraphLineDashAttributeName;

This is a key to be used in the -twoDGraphView:attributesForLineIndex: dictionary. The value indicates whether the line should be dashed or not. By default, lines are not dashed. This does not affect lines with the bar style.

The value should be an NSNumber with an 'int' from the SM2DGraphLineDashStyleEnum enumeration. For example, [ NSNumber numberWithInt:kSM2DGraph_Dash_Small ].

This was added in v1.6 of the framework.


SM2DGraphLineSymbolAttributeName

NSString *SM2DGraphLineSymbolAttributeName;

This is a key to be used in the -twoDGraphView:attributesForLineIndex: dictionary. The value represents the symbol that will be drawn at each data point. If this key is not present, no symbol will be drawn at the data points.

The value should be an NSNumber with an 'int' from the SM2DGraphSymbolTypeEnum enumeration. For example, [ NSNumber numberWithInt:kSM2DGraph_Symbol_Diamond ].


SM2DGraphLineWidthAttributeName

NSString *SM2DGraphLineWidthAttributeName;

This is a key to be used in the -twoDGraphView:attributesForLineIndex: dictionary. The value represents how thick the line will be drawn. If this key is not present, a default value of kSM2DGraph_Width_Default is used.

The value should be an NSNumber with an 'int' from the SM2DGraphLineWidthEnum enumeration. For example, [ NSNumber numberWithInt:kSM2DGraph_Width_Normal ].


© 2002-2009 Snowmint Creative Solutions LLC (Last Updated 4/13/2009)