Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1331 - trunk/src/org/tigris/gef/presentation/FigGroup.java

gef
Discussion topic

Back to topic list

svn commit: r1331 - trunk/src/org/tigris/gef/presentation/FigGroup.java

Author bobtarling
Full name Bob Tarling
Date 2011-05-22 03:25:39 PDT
Message Author: bobtarling
Date: 2011-05-22 03:25:39-0700
New Revision: 1331

Modified:
   trunk/src/org/tigris​/gef/presentation/Fi​gGroup.java

Log:
Improve use of Generics

Modified: trunk/src/org/tigris​/gef/presentation/Fi​gGroup.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/presentation/Fi​gGroup.java?view=dif​f&pathrev=1331​&r1=1330&r2=13​31
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/presentation/Fi​gGroup.java (original)
+++ trunk/src/org/tigris​/gef/presentation/Fi​gGroup.java 2011-05-22 03:25:39-0700
@@ -1,5 +1,4 @@
-package org.tigris.gef.presentation;
-
+// $Id$
 // Copyright (c) 1996-2009 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
@@ -26,7 +25,8 @@
 // File: FigGroup.java
 // Classes: FigGroup
 // Original Author: jrobbins at ics dot uci dot edu
-// $Id$
+
+package org.tigris.gef.presentation;
 
 import java.awt.Color;
 import java.awt.Font;
@@ -102,7 +102,7 @@
     /**
      * Construct a new FigGroup that holds the given Figs.
      */
- public FigGroup (List figs) {
+ public FigGroup (List<Fig> figs) {
         super();
         this.figs = Collections.synchron​izedList(figs);
         calcBounds();
@@ -132,7 +132,7 @@
             if (group != null) {
                 ((FigGroup) group).removeFig(fig);
             }
- this.figs.add(fig);
+ figs.add(fig);
             fig.setGroup(this);
             calcBounds();
         }
@@ -158,7 +158,7 @@
      * @param figs
      * Collection of figs to be set.
      */
- public void setFigs(Collection figs) {
+ public void setFigs(Collection<Fig> figs) {
         this.figs.clear();
         addFigs(figs);
     }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1331 - trunk/src/org/tigris/gef/presentation/FigGroup.java bobtarling Bob Tarling 2011-05-22 03:25:39 PDT
Messages per page: