The Essential JViews Framework > Managers > Managing Layers > Setting Up Layers

Layers are handled internally by the class IlvManagerLayer. Layers can be accessed by their index or by their instance (a pointer to an IlvManagerLayer). By default, a manager is created with one layer. However, you can specify how many layers you want to create for a manager in the second parameter of the IlvManager constructor.

Once the manager has been created, you can modify the number of layers using the following methods:

void addLayer(int index)   
void removeLayer(int index, boolean redraw)   

and retrieve the number of layers with:

int getLayersCount()