Package com.rvandoosselaer.blocks
Class ShapeRegistry
java.lang.Object
com.rvandoosselaer.blocks.ShapeRegistry
A thread safe register for shapes. The register is used so only one instance of a shape is used throughout the Blocks
framework.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ShapeRegistry
public ShapeRegistry()Will register default shapes -
ShapeRegistry
public ShapeRegistry(boolean registerDefaultShapes)
-
-
Method Details
-
register
-
get
-
remove
-
clear
public void clear() -
getAll
-
registerDefaultShapes
public void registerDefaultShapes()
-