gizmoball.worldmodels
Class BasicPrimitivesCollection

java.lang.Object
  extended by gizmoball.worldmodels.BasicPrimitivesCollection
All Implemented Interfaces:
PrimitivesCollection

public class BasicPrimitivesCollection
extends java.lang.Object
implements PrimitivesCollection

An implementation of PrimitivesCollection more suitable for (anonymous) subclassing. All of the methods return empty lists, unless overridden.


Constructor Summary
BasicPrimitivesCollection()
           
 
Method Summary
 java.util.Collection<LateralCylinder> getLateralCylinders()
           
 java.util.Collection<PlaneCircle> getPlaneCircles()
           
 java.util.Collection<PlanePolygon> getPlanePolygons()
           
 java.util.Collection<Sphere> getSpheres()
           
 java.util.Collection<Torus> getTori()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPrimitivesCollection

public BasicPrimitivesCollection()
Method Detail

getLateralCylinders

public java.util.Collection<LateralCylinder> getLateralCylinders()
Specified by:
getLateralCylinders in interface PrimitivesCollection
Returns:
this.lateralCylinders

getPlaneCircles

public java.util.Collection<PlaneCircle> getPlaneCircles()
Specified by:
getPlaneCircles in interface PrimitivesCollection
Returns:
this.planeCircles

getPlanePolygons

public java.util.Collection<PlanePolygon> getPlanePolygons()
Specified by:
getPlanePolygons in interface PrimitivesCollection
Returns:
this.planePolygons

getSpheres

public java.util.Collection<Sphere> getSpheres()
Specified by:
getSpheres in interface PrimitivesCollection
Returns:
this.spheres

getTori

public java.util.Collection<Torus> getTori()
Specified by:
getTori in interface PrimitivesCollection
Returns:
this.tori