jpicedt.graphic.model
Class CtrlPtSubsetGroup
java.lang.Object
jpicedt.graphic.model.CtrlPtSubsetGroup
- All Implemented Interfaces:
- Iterable<CtrlPtSubset>, Collection<CtrlPtSubset>, List<CtrlPtSubset>, CtrlPtSubset
public class CtrlPtSubsetGroup
- extends Object
- implements CtrlPtSubset, List<CtrlPtSubset>
children
protected ArrayList<CtrlPtSubset> children
- the array that contains children
CtrlPtSubsetGroup
public CtrlPtSubsetGroup()
CtrlPtSubsetGroup
public CtrlPtSubsetGroup(int size)
translate
public void translate(double dx,
double dy)
- Specified by:
translate in interface CtrlPtSubset
add
public boolean add(CtrlPtSubset child)
- Specified by:
add in interface Collection<CtrlPtSubset>- Specified by:
add in interface List<CtrlPtSubset>
remove
public CtrlPtSubset remove(int index)
- Specified by:
remove in interface List<CtrlPtSubset>
add
public void add(int index,
CtrlPtSubset cps)
- Specified by:
add in interface List<CtrlPtSubset>
set
public CtrlPtSubset set(int index,
CtrlPtSubset cps)
- Specified by:
set in interface List<CtrlPtSubset>
get
public CtrlPtSubset get(int index)
- Specified by:
get in interface List<CtrlPtSubset>
clear
public void clear()
- Specified by:
clear in interface Collection<CtrlPtSubset>- Specified by:
clear in interface List<CtrlPtSubset>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<CtrlPtSubset>- Specified by:
removeAll in interface List<CtrlPtSubset>
addAll
public boolean addAll(Collection<? extends CtrlPtSubset> c)
- Specified by:
addAll in interface Collection<CtrlPtSubset>- Specified by:
addAll in interface List<CtrlPtSubset>
addAll
public boolean addAll(int index,
Collection<? extends CtrlPtSubset> c)
- Specified by:
addAll in interface List<CtrlPtSubset>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<CtrlPtSubset>- Specified by:
remove in interface List<CtrlPtSubset>
size
public int size()
- Specified by:
size in interface Collection<CtrlPtSubset>- Specified by:
size in interface List<CtrlPtSubset>
- Returns:
- le nombre d'éléments dans le
CtrlPtSubsetGroup this. Seuls les
descendants directs listés dans children sont comptés.
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<CtrlPtSubset>- Specified by:
isEmpty in interface List<CtrlPtSubset>
- Returns:
- true si le
CtrlPtSubsetGroup this ne contient aucun
éléments.
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<CtrlPtSubset>- Specified by:
contains in interface List<CtrlPtSubset>
- Parameters:
o - L'objet dont on veut tester l'appartenance au CtrlPtSubsetGroup this
- Returns:
true si le CtrlPtSubset passé comme o est contenu dans
le CtrlPtSubsetGroup this.
iterator
public Iterator<CtrlPtSubset> iterator()
- Specified by:
iterator in interface Iterable<CtrlPtSubset>- Specified by:
iterator in interface Collection<CtrlPtSubset>- Specified by:
iterator in interface List<CtrlPtSubset>
- Returns:
- un itéterateur sur les éléments du
CtrlPtSubsetGroup this.
subList
public List<CtrlPtSubset> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<CtrlPtSubset>
listIterator
public ListIterator<CtrlPtSubset> listIterator()
- Specified by:
listIterator in interface List<CtrlPtSubset>
listIterator
public ListIterator<CtrlPtSubset> listIterator(int index)
- Specified by:
listIterator in interface List<CtrlPtSubset>
lastIndexOf
public int lastIndexOf(Object o)
- Renvoie l'indexe de l'objet
o parmi les éléments du CtrlPtSubsetGroup this.
- Specified by:
lastIndexOf in interface List<CtrlPtSubset>
- Parameters:
o - l'object dont on cherche l'indexe.
- Returns:
- -1 si non trouvé
indexOf
public int indexOf(Object child)
- Renvoie l'indexe de l'objet
o parmi les éléments du CtrlPtSubsetGroup this.
- Specified by:
indexOf in interface List<CtrlPtSubset>
- Parameters:
child - l'object dont on cherche l'indexe.
- Returns:
- -1 si non trouvé
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<CtrlPtSubset>- Specified by:
toArray in interface List<CtrlPtSubset>
- Returns:
- un
Object[] contenant tous les éléments de cette collection.
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray in interface Collection<CtrlPtSubset>- Specified by:
toArray in interface List<CtrlPtSubset>
- Parameters:
a - tableau dont le rôle est de spécifier le type T.
- Returns:
- un
Object[] contenant tous les éléments de cette collection dont le type déterminé
durant l'exécution est le type T spécifié des éléments de a.
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll in interface Collection<CtrlPtSubset>- Specified by:
containsAll in interface List<CtrlPtSubset>
- Returns:
true si le CtrlPtSubsetGroup this contient tous les éléments de la
collection c passée en argument.
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection<CtrlPtSubset>- Specified by:
equals in interface List<CtrlPtSubset>- Overrides:
equals in class Object
retainAll
public boolean retainAll(Collection<?> c)
- Ne retient que les éléments de
CtrlPtSubsetGroup this contenus dans la collection
c passée en argument.
- Specified by:
retainAll in interface Collection<CtrlPtSubset>- Specified by:
retainAll in interface List<CtrlPtSubset>
- Parameters:
c - Collection des éléments à retenir.
- Returns:
true si le CtrlPtSubsetGroup this a changé suite à l'appel de cette
méthode.
Submit a bug : syd@jpicedt.org