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 ].
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.
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.
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.
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 ].
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 ].
typedef enum
{
kSM2DGraph_Axis_Y = 0,
kSM2DGraph_Axis_X = 1,
kSM2DGraph_Axis_Y_Right = 2,
kSM2DGraph_Axis_Y_Left = kSM2DGraph_Axis_Y
} SM2DGraphAxisEnum;
When dealing with various properties of graph axis, these constants should be used.
Name Description kSM2DGraph_Axis_Y The Y axis of the graph. kSM2DGraph_Axis_X The X axis of the graph. kSM2DGraph_Axis_Y_Right Y axis on the right side of the graph. kSM2DGraph_Axis_Y_Left Y axis on left side of graph - equal to kSM2DGraph_Axis_Y.
typedef enum
{
kSM2DGraph_Dash_None = 0,
kSM2DGraph_Dash_Small,
kSM2DGraph_Dash_Large,
kSM2DGraph_Dash_Mixed,
kSM2DGraph_Dash_Default = kSM2DGraph_Dash_None
} SM2DGraphLineDashStyleEnum;
Symbols that can be used on line style graphs. Does nothing for bar style lines.
Name Description kSM2DGraph_Dash_None Plain lines - no dash. kSM2DGraph_Dash_Small Small dash. kSM2DGraph_Dash_Large Large dash. kSM2DGraph_Dash_Mixed Mixed dash : one small, one large, ... kSM2DGraph_Dash_Default Default dash style for lines - equal to kSM2DGraph_Dash_None.
typedef enum
{
kSM2DGraph_Width_None = 0,
kSM2DGraph_Width_Fine = 1,
kSM2DGraph_Width_Normal,
kSM2DGraph_Width_Wide,
kSM2DGraph_Width_3D,
kSM2DGraph_Width_Default = kSM2DGraph_Width_3D
} SM2DGraphLineWidthEnum;
Width of lines in the graph.
Name Description kSM2DGraph_Width_None No line is drawn; symbols may still be drawn. kSM2DGraph_Width_Fine Lines are drawn a half pixel wide. kSM2DGraph_Width_Normal Lines are drawn one pixel wide. kSM2DGraph_Width_Wide Lines are drawn two pixels wide. kSM2DGraph_Width_3D Lines are drawn with a fake 3D look; lighter line above and darker line below main line. kSM2DGraph_Width_Default Default width of lines - equal to kSM2DGraph_Width_3D.
typedef enum
{
kSM2DGraph_Symbol_None = 0,
kSM2DGraph_Symbol_Triangle,
kSM2DGraph_Symbol_Diamond,
kSM2DGraph_Symbol_Circle,
kSM2DGraph_Symbol_X,
kSM2DGraph_Symbol_Plus,
kSM2DGraph_Symbol_FilledCircle,
kSM2DGraph_Symbol_Square,
kSM2DGraph_Symbol_Star,
kSM2DGraph_Symbol_InvertedTriangle,
kSM2DGraph_Symbol_FilledSquare,
kSM2DGraph_Symbol_FilledTriangle,
kSM2DGraph_Symbol_FilledDiamond,
kSM2DGraph_Symbol_FilledInvertedTriangle,
kSM2DGraph_Symbol_FilledStar,
kSM2DGraph_Symbol_Default = kSM2DGraph_Symbol_None
} SM2DGraphSymbolTypeEnum;
Symbols that can be used on line style graphs. Does nothing for bar style lines.
Name Description kSM2DGraph_Symbol_None Plain lines - no symbol marking points. kSM2DGraph_Symbol_Triangle Open triangle marking line points. kSM2DGraph_Symbol_Diamond Open diamond marking line points. kSM2DGraph_Symbol_Circle Open circle marking line points. kSM2DGraph_Symbol_X X marking line points. kSM2DGraph_Symbol_Plus Plus symbol marking line points. kSM2DGraph_Symbol_FilledCircle Filled circle marking line points. kSM2DGraph_Symbol_Square Square marking line points. kSM2DGraph_Symbol_Star Star marking line points. kSM2DGraph_Symbol_InvertedTriangle Down-pointing triangle marking line points. kSM2DGraph_Symbol_FilledSquare Filled square marking line points. kSM2DGraph_Symbol_FilledTriangle Filled triangle marking line points. kSM2DGraph_Symbol_FilledDiamond Filled diamond marking line points. kSM2DGraph_Symbol_FilledInvertedTriangle Filled down-pointing triangle marking line points. kSM2DGraph_Symbol_FilledStar Filled star marking line points. kSM2DGraph_Symbol_Default Default symbol for lines - equal to kSM2DGraph_Symbol_None.
© 2002-2009 Snowmint Creative Solutions LLC (Last Updated 4/13/2009)