Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Create Graph Fields

by Retired on ‎02-16-2010 12:10 PM - edited on ‎03-10-2016 09:21 AM by BlackBerry Development Advisor (6,320 Views)

Summary

 

This article applies to the following:

  • BlackBerry® smartphones based on Java® technology

Details

 

The following sample code demonstrates how to create custom graph fields. The sample contains the following classes:

 

  • BarGraphField - A custom field that draws a bar graph
  • BarScreen - A screen demonstrating the use of BarGraphField
  • BlackBerryGraphs - The main application
  • GraphDemoScreen - The introductory screen for the sample application that allows a BlackBerry smartphone user to choose the type of graph to preview
  • GraphField - The base class that the other *GraphFields extend
  • LegendField - A custom field that draws a legend
  • LineGraphField - A custom field that draws a line or scatter graph
  • LineScreen - A screen demonstrating the use of LineGraphField
  • PieGraphField - A custom field that draws a pie chart
  • PieScreen - A screen demonstrating the use of PieGraphField and LegendField

The entire sample can be downloaded here. The following are some sample screen shots that illustrate the custom graph fields.

 

DB-00782_01.jpgDB-00782_02.jpgDB-00782_03.jpg

Users Online
Currently online: 21 members 2,397 guests
Please welcome our newest community members: