fr.orsay.lri.varna.models
Class BaseList
java.lang.Object
fr.orsay.lri.varna.models.BaseList
public class BaseList
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_bases
private HashSet<ModeleBase> _bases
_caption
private String _caption
BaseList
public BaseList(BaseList b)
BaseList
public BaseList(String caption)
BaseList
public BaseList(String caption,
ModeleBase mb)
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()