| |
|
| java.lang.Object org.netbeans.editor.DrawLayerList
DrawLayerList | class DrawLayerList (Code) | | Draw layer list stores multiple draw-layers sorted according to their
visibility which is the integer giving the z-order in which the layers are
sorted. It also provides an iterator to go through the draw layer members.
author: Miloslav Metelka version: 1.00 |
add | synchronized boolean add(DrawLayer layer, int visibility)(Code) | | Add the new layer to the list depending on visibility.
Parameters: layer - layer to add to the layer list true when new layer was added false otherwise. The layer is notadded if there is already a layer with the same name. There canbe a layer with the same visibility like the layer being added. |
currentLayers | synchronized DrawLayer[] currentLayers()(Code) | | Get the snapshot of the current layers. This is useful for drawing
process that would otherwise have to hold a lock on editorUI so that no
layer would be added or removed during the drawing.
|
remove | synchronized DrawLayer remove(String layerName)(Code) | | Remove layer specified by layerName from layer list.
Parameters: layer - layer to remove from the layer list |
|
|
|