Chapter 14 : Component injection
You may need to customize some of library components. It is possible to easily inject your own implementations by overriding an existing factory such AWTChartFactory
. Factories have newXXX(...)
methods that can overriden to return extensions of the following example objects :
- Scene
- View
- Axis
- Camera
- Canvas
- MouseController
- KeyController
- OrderingStrategy
ContourChartFactory
is an example of customizing a factory. It instantiate a specific AxisBox
implementation able to draw the contours on the ground of the cube. This initialization is done by the View
as all other child component of a Chart
.