Snowmint Creative Solutions LLC

Open Source Projects

SMDoubleSlider

SM2DGraphView

SM2DGraphView Framework 1.6
Download (1.2MB disk image)

The SM2DGraphView framework is an open source project that makes adding nice looking graphs and/or pie charts to your Cocoa application a breeze. Below is a screen shot of the test application included with the framework project.

Complete documentation for the framework is available on this site and is also included in the distribution available for download.

The SM2DGraphView framework and the related files in this distribution are open source. They are not public domain; they are copyright © 2002-2009 Snowmint Creative Solutions LLC. They are governed by an open source license, which is intended to allow others reasonable freedom in using and modifying the sources, while allowing Snowmint Creative Solutions LLC to retain some control over the project. If you intend to use or modify the source code for this project, you must read and follow the license. The license should be included in the distribution; if not, you can find it at <http://developer.snowmintcs.com/OpenLicense.html>.

Some apps using SM2DGraphView

4Peaks - DNA sequence viewer

BeerAlchemy - simplify the creation of great beer recipes

Budget - personal finance app

Budget Planner - long term finance planning

BuyLeaseOsX -a small application for future lessees and lessors who wish to calculate and analyse leasing vs. purchasing options.

Dejal Simon - Site change and failure monitor tool

Eavesdrop - network capture analysis

Garmin Training Center - store and analyze your workout data

iKonceive - fertility sign charting

Maquarium - aquarium management

MuscleDataBase - log and analyse muscle growth

OSXBackStrip - 1D backstripping of sedimentary strata (for geologists)

Pay It Down - chart your loan payoff times and determine which to pay off first

PureFTPd Manager - GUI for pureftpd (a secure FTP server)

Add your app to this list!

Test application screenshot
Click the image or here for a full size image.

Purpose

This framework provides an NSView subclass which draws a graph of lines and/or bars including axis labels. The SM2DGraphView class acts very much like an NSTableView or NSBrowser; SM2DGraphView takes responsibility for all of the drawing code but relies on a data source object to provide the specific lines and points to draw. A delegate object can also be assigned to a graph object to modify the behavior of the graph view.

This framework also provides an NSView subclass which draws a pie chart. The SMPieChartView class acts very much like an NSTableView or NSBrowser; SMPieChartView takes responsibility for all of the drawing code but relies on a data source object to provide the specific sizes of the pie slices to draw. A delegate object can also be assigned to a pie chart object to modify the behavior of the pie chart view.

The SM2DGraphView framework is a very easy to use graph view that should work admirably for the average non-scientific application. Neither the SM2DGraphView class nor the SMPieChartView class is thread safe; they are not coded for really high performance drawing. The SM2DGraphView class does take advantage of the Velocity Engine on G4 and G5 CPUs when working with lines containing 64 or more data points. If you need to draw lines with millions of data points, you should look for other alternatives.

RSS Feed:

Our company news RSS feed is available at http://www.snowmintcs.com/company/headlines.rss. This news feed includes any news about open source projects here at Snowmint Creative Solutions.

 Contact Us   RSS Feeds   Open Source License   Privacy Policy