Class SimpleGroup
- java.lang.Object
-
- ca.cgjennings.apps.arkham.deck.item.SimpleGroup
-
public class SimpleGroup extends java.lang.Object implements Group
A basic implementation of the group interface for storing selection groups.- Author:
- Chris Jennings
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleGroup()
SimpleGroup(PageItem[] items)
SimpleGroup(java.util.Collection<? extends PageItem> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PageItem p)
void
addToSelection(Deck d)
void
clear()
boolean
contains(PageItem p)
java.awt.geom.Rectangle2D.Double
getRectangle()
java.util.Iterator<PageItem>
iterator()
void
remove(PageItem p)
void
removeFromSelection(Deck d)
-
-
-
Method Detail
-
addToSelection
public void addToSelection(Deck d)
- Specified by:
addToSelection
in interfaceGroup
-
removeFromSelection
public void removeFromSelection(Deck d)
- Specified by:
removeFromSelection
in interfaceGroup
-
iterator
public java.util.Iterator<PageItem> iterator()
-
getRectangle
public java.awt.geom.Rectangle2D.Double getRectangle()
- Specified by:
getRectangle
in interfaceGroup
-
-