Home Authors Source Download Execute Java!? Manual
 
 
DataPlot_ 
SOURCE
e-mail Visit our Home pages
mahmut@ug.bcc.bilkent.edu.tr Mahmut YILDIRIM 
velioglu@ug.bcc.bilkent.edu.tr Haydar Velioglu 
ulger@ug.bcc.bilkent.edu.tr S. Huseyin ULGER 

Source Code 
             directory.
http://www.ug.bcc.bilkent.edu.tr/~mahmut/project/DataPlot
*.java files. 
 
  • DataPlot.java
  • frameChart.java
  • frameDraw.java
  • frameWizard.java
  • frBarWizard.java
  • frColumnWizard.java 
  • frLineWizard.java 
  • frXYPlotWizard.java
  • frPieWizard.java
  • TChart.java
  • TBarChart.java
  • TColumnChart.java
  • TLineChart.java
  • TPieChart.java
  • TXYPlotChart.java
  • TData.java
  • DataPlot.java is an applet which will run on web browser and its only purpose is to activate frameChart.java.   

    frameChart.java is a stand alone application designed to run on any machine which supports java 1.1.x.  frameChart.java takes the data and the type of the Chart to be drawn for that data from the user. It prepares a TChart which contains a TData and other relevant information to draw the chart. Then the class sends the TChart to the relative frame Wizard. 
    frameChart extends from Frame. If frameChart is compiled the compiler produces frameChart.class which is a stand alone Java application. 

    TData.java  is a data manager which is responsible from maintenance of the numeric data for a Chart. All the TChart classes (TBarChart, TPieChart...) contains one TData to keep its numeric data. TData keeps and masters a 2-Dimensional array of floats for the data. It keeps track of the Dimensions of the data (how many rows/columns) and the names of its columns and rows.   

    TChart.java is also a data manager which keeps the data (in a TData) and the attributes (name, type, grid lines...) of the chart. Since TChart is a Panel which has graphics on it, TChart extends from Panel. There are 5 Chart Types in DataPlot. 

    TXXXChart.java classes extend from TChart. They maintain information about their related chart type. All TChart descendants has the ability to draw themselves. (See the list below.) 
      
    frameWizard.java takes the related information for the Chart Type which is to be drawn. frameWizard only asks for the common attributes for charts. frameWizard forms a TChart with this information and sends it to frameDraw which is the Frame on which the Charts are drawn. frameWizard class has 5 descendants one for each type of chart.  frameWizard is never executed directly, instead its descendants are called. 

    frXXXWizard.java classes extend from frameWizard. frXXXWizards ask the user for attributes about their related chart. (See the list below.) 
     

    Class hierarchy
    TData
    Panel 
       | 
       +---TChart 
           | 
           +---TPieChart 
           +---TLineChart 
           +---TXYPlotChart 
           +---TBarChart 
           +---TColumnChart 

    Frame 
       | 
       +---frameChart 
       +---frameDraw 
       +---frameWizard 
           | 
           +---frPieWizard 
           +---frLineWizard 
           +---frXYPlotWizard 
           +---frBarWizard 
           +---frColumnWizard 

    Chart types 

    Related classes 
    Related  
        frameWizards

    Chart Types Related Class Related Wizard
    Bar Chart TBarChart.java frBarWizard.java
    Column Chart TColumnChart.java frColumnWizard.java
    Line Chart TLineChart.java frLineWizard.java 
    Pie Chart TPieChart.java frPieWizard.java
    XY Plot TXYPlotChart.java frXYPlotWizard.java
     
    Executables. To execute or download the program please go this way.