/* * AGPBarData * * Version 1.1 - Java 1.1 compatible * * Dec 6 2001 * * Copyright 2001 David Joiner and the Shodor Education Foundation */ import java.awt.*; /** * AGPBarData is a data construct used in AnimatedGraphPaper to store * the data and display parameters for each bar graph. */ public class AGPBarData { /* * Member variables */ int n; Color color; double [] depVariable; double [] indVariable; String label; /* * Constructors */ public AGPBarData(int n) { this.n = n; color = Color.black; depVariable = new double[n]; indVariable = new double[n]; } public AGPBarData(int n, Color color, double [] indVariable, double [] depVariable) { this(n,color,indVariable,depVariable,null); } public AGPBarData(int n, Color color, double [] indVariable, double [] depVariable, String label) { this.n = n; this.color = color; this.indVariable = new double[n]; this.depVariable = new double[n]; for (int i=0; i