de.javagl.utils.obj.impl
Class DefaultObjGroup

java.lang.Object
  extended by de.javagl.utils.obj.impl.DefaultObjGroup
All Implemented Interfaces:
ObjGroup

public class DefaultObjGroup
extends Object
implements ObjGroup

Default implementation of an ObjGroup


Constructor Summary
DefaultObjGroup(String name)
          Creates a new ObjGroup with the given name
 
Method Summary
 void addFace(ObjFace face)
          Add the given face to this group
 boolean equals(Object obj)
           
 ObjFace getFace(int index)
          Returns the face with the given index.
 String getName()
          Returns the name of this group.
 int getNumFaces()
          Returns the number of faces in this group.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultObjGroup

public DefaultObjGroup(String name)
Creates a new ObjGroup with the given name

Parameters:
name - The name of this ObjGroup
Method Detail

getName

public String getName()
Description copied from interface: ObjGroup
Returns the name of this group.

Specified by:
getName in interface ObjGroup
Returns:
The name of this group.

addFace

public void addFace(ObjFace face)
Add the given face to this group

Parameters:
face - The face to add

getNumFaces

public int getNumFaces()
Description copied from interface: ObjGroup
Returns the number of faces in this group.

Specified by:
getNumFaces in interface ObjGroup
Returns:
The number of faces in this group.

getFace

public ObjFace getFace(int index)
Description copied from interface: ObjGroup
Returns the face with the given index.

Specified by:
getFace in interface ObjGroup
Parameters:
index - The index of the face
Returns:
The face with the given index.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object