mako5.gfx.d2d.grph
Class ViewGroup
java.lang.Object
mako5.gfx.d2d.grph.ViewGroup
- All Implemented Interfaces:
- Render
public class ViewGroup
- extends Object
- implements Render
A group of renderable objects.
This implementation allows flexible use of any type of list to add or remove
objects. Simply create the ViewGroup with whatever list type you want. For
example, ViewGroup group = new ViewGroup(new LinkedList());
- Version:
- 04-Mar 2006
- Author:
- Paul Jarrett
Constructor Summary |
ViewGroup(List<Render> rList_)
Makes a new viewgroup with the given list to put objects into. |
Method Summary |
void |
add(Render rObject_)
Adds an object to this view group. |
void |
clear()
Clears this view group of all objects. |
void |
remove(Render rObject_)
Removes an object from this view group. |
void |
render()
Renders this view group. |
ViewGroup
public ViewGroup(List<Render> rList_)
- Makes a new viewgroup with the given list to put objects into.
- Parameters:
rList_
- the list reference to put objects into- Since:
- 05-Mar 2006
add
public void add(Render rObject_)
- Adds an object to this view group.
- Parameters:
rObject_
- the object to add to this group- Since:
- 05-Mar 2006
remove
public void remove(Render rObject_)
- Removes an object from this view group.
- Parameters:
rObject_
- the object to remove- Since:
- 05-Mar 2006
clear
public void clear()
- Clears this view group of all objects.
- Since:
- 05-Mar 2006
render
public void render()
- Renders this view group.
- Specified by:
render
in interface Render
- Since:
- 05-Mar 2006