Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/zazof/jteg/gui/DiceCanvasList.java


1   /**
2     *  Class that is responsible for maintaining a list of DiceCanvas objects
3     *
4     *  Will be used by BoardCanvas to keep track of all dicecanvas objects
5     *
6     *  @author Yves Vandewoude (yves@stcham.org)
7     *
8     */
9   
10  package org.zazof.jteg.gui;
11  
12  import org.zazof.jteg.*;
13  import java.util.Vector;
14  import java.util.Enumeration;
15  
16  public class DiceCanvasList {
17  
18      public DiceCanvasList() {
19          diceCanvasList = new Vector();
20      }
21  
22  /**
23    *  Adds a DiceCanvas to the list
24    *
25    *  @param The DiceCanvas that you wish to add
26    */
27      public void add(DiceCanvas c) {
28          diceCanvasList.add(c);
29      }
30  
31  /**
32    *   Returns an iterative structure by which you can iterate to the DiceCanvas elements
33    *
34    *  @return An Enumeration that allows you to iterate through the dicecanvas elements
35    */
36      public Enumeration getDiceCanvasElements()
37      {
38          return diceCanvasList.elements();
39      }
40    
41      private Vector diceCanvasList;
42  }