fr.orsay.lri.varna.models
Class BaseList

java.lang.Object
  extended by fr.orsay.lri.varna.models.BaseList

public class BaseList
extends Object


Field Summary
private  HashSet<ModeleBase> _bases
           
private  String _caption
           
 
Constructor Summary
BaseList(BaseList b)
           
BaseList(String caption)
           
BaseList(String caption, ModeleBase mb)
           
 
Method Summary
 void addBase(ModeleBase b)
           
 void addBases(Collection<? extends ModeleBase> mbs)
           
 void clear()
           
 boolean contains(ModeleBase mb)
           
static Color getAverageColor(ArrayList<Color> cols)
           
 Color getAverageInnerColor()
           
 Color getAverageNameColor()
           
 Color getAverageNumberColor()
           
 Color getAverageOutlineColor()
           
 ArrayList<ModeleBase> getBases()
           
 String getCaption()
           
 String getContents()
           
 ArrayList<Integer> getIndices()
           
 String getNumbers()
           
 BaseList removeAll(BaseList mb)
          Returns, in a new BaseList, the list consisting of the current BaseList minus the list passed as argument.
 void removeBase(ModeleBase b)
           
 BaseList retainAll(BaseList mb)
          Returns, in a new BaseList, the intersection of the current BaseList and of the argument.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_bases

private HashSet<ModeleBase> _bases

_caption

private String _caption
Constructor Detail

BaseList

public BaseList(BaseList b)

BaseList

public BaseList(String caption)

BaseList

public BaseList(String caption,
                ModeleBase mb)
Method Detail

contains

public boolean contains(ModeleBase mb)

getCaption

public String getCaption()

addBase

public void addBase(ModeleBase b)

removeBase

public void removeBase(ModeleBase b)

addBases

public void addBases(Collection<? extends ModeleBase> mbs)

getBases

public ArrayList<ModeleBase> getBases()

clear

public void clear()

getAverageColor

public static Color getAverageColor(ArrayList<Color> cols)

getAverageOutlineColor

public Color getAverageOutlineColor()

getAverageNameColor

public Color getAverageNameColor()

getAverageNumberColor

public Color getAverageNumberColor()

getAverageInnerColor

public Color getAverageInnerColor()

getNumbers

public String getNumbers()

getContents

public String getContents()

getIndices

public ArrayList<Integer> getIndices()

retainAll

public BaseList retainAll(BaseList mb)
Returns, in a new BaseList, the intersection of the current BaseList and of the argument.

Parameters:
mb - The base list to be used for the intersection
Returns:
The intersection of the current base list and the argument.

removeAll

public BaseList removeAll(BaseList mb)
Returns, in a new BaseList, the list consisting of the current BaseList minus the list passed as argument.

Parameters:
mb - The base list to be subtracted from the current one
Returns:
The current base list minus the list passed as argument.

size

public int size()