| java.lang.Object com.vividsolutions.jump.workbench.model.LayerManager
LayerManager | public class LayerManager (Code) | | Registry of Layers in a Task.
See Also: Task See Also: Layer |
Method Summary | |
public void | addCategory(String categoryName) | public void | addCategory(String categoryName, int index) | public Layer | addLayer(String categoryName, Layer layer) | public Layer | addLayer(String categoryName, String layerName, FeatureCollection featureCollection) Parameters: name - the name of the layer. | public void | addLayerListener(LayerListener layerListener) | public void | addLayerable(String categoryName, Layerable layerable) | public Layer | addOrReplaceLayer(String categoryName, String layerName, FeatureCollection featureCollection) | public void | deferFiringEvents(Runnable r) | public void | dispose(WorkbenchFrame frame, Layerable layerable) | public void | dispose() | public void | fireCategoryChanged(Category category, CategoryEventType type) | public void | fireFeaturesAttChanged(Collection features, FeatureEventType type, Layer layer, Collection oldFeatureClones) | public void | fireFeaturesChanged(Collection features, FeatureEventType type, Layer layer) | public void | fireGeometryModified(Collection features, Layer layer, Collection oldFeatureClones) | public void | fireLayerChanged(Layerable layerable, LayerEventType type) | public Color | generateLayerFillColor() | public Blackboard | getBlackboard() | public List | getCategories() | public Category | getCategory(String name) | public Category | getCategory(Layerable layerable) | public CoordinateSystem | getCoordinateSystem() | public Collection | getEditableLayers() Editability is not enforced; all parties are responsible for heeding the
editability of a layer. | public Envelope | getEnvelopeOfAllLayers() | public Envelope | getEnvelopeOfAllLayers(boolean visibleLayersOnly) | public Layer | getLayer(String name) | public Layer | getLayer(int index) | public List | getLayerables(Class layerableClass) To get all Layerables, set layerableClass to Layerable.class. | public List | getLayers() | public Collection | getLayersWithModifiedFeatureCollections() | public UndoableEditReceiver | getUndoableEditReceiver() | public List | getVisibleLayers(boolean includeFence) | public int | indexOf(Category category) | public int | indexOf(Layer layer) | public boolean | isFiringEvents() | public Iterator | iterator() | public static int | layerManagerCount() | public static void | main(String[] args) | public void | remove(Layerable layerable) | public void | removeIfEmpty(Category category) | public void | removeLayerListener(LayerListener layerListener) | public Iterator | reverseIterator(Class layerableClass) an iterator over the layers, from bottom to top. | public void | setCoordinateSystem(CoordinateSystem coordinateSystem) | public void | setFiringEvents(boolean firingEvents) | public int | size() | public String | uniqueLayerName(String name) |
LayerManager | public LayerManager()(Code) | | |
addCategory | public void addCategory(String categoryName)(Code) | | |
addCategory | public void addCategory(String categoryName, int index)(Code) | | |
addLayer | public Layer addLayer(String categoryName, String layerName, FeatureCollection featureCollection)(Code) | | Parameters: name - the name of the layer. A number will be appended if a layerwith the same name already exists. Set to null to automatically generate anew name. |
dispose | public void dispose(WorkbenchFrame frame, Layerable layerable)(Code) | | SIGLE [obedel] on 2005 then [mmichaud] on 2007-05-22
To free the memory allocated for a layer
Called by RemoveSelectedLayersPlugin
Parameters: layerViewPanel - the layerViewPanel displaying this layerable Parameters: layarable - the layerable to remove |
dispose | public void dispose()(Code) | | |
generateLayerFillColor | public Color generateLayerFillColor()(Code) | | |
getEditableLayers | public Collection getEditableLayers()(Code) | | Editability is not enforced; all parties are responsible for heeding the
editability of a layer.
|
getEnvelopeOfAllLayers | public Envelope getEnvelopeOfAllLayers()(Code) | | |
getEnvelopeOfAllLayers | public Envelope getEnvelopeOfAllLayers(boolean visibleLayersOnly)(Code) | | Parameters: visibleLayersOnly - |
getLayerables | public List getLayerables(Class layerableClass)(Code) | | To get all Layerables, set layerableClass to Layerable.class.
|
getLayersWithModifiedFeatureCollections | public Collection getLayersWithModifiedFeatureCollections()(Code) | | |
getVisibleLayers | public List getVisibleLayers(boolean includeFence)(Code) | | |
indexOf | public int indexOf(Layer layer)(Code) | | -1 if the layer does not exist |
isFiringEvents | public boolean isFiringEvents()(Code) | | |
layerManagerCount | public static int layerManagerCount()(Code) | | |
main | public static void main(String[] args) throws ParseException(Code) | | |
reverseIterator | public Iterator reverseIterator(Class layerableClass)(Code) | | an iterator over the layers, from bottom to top. Layers with#drawingLast = true appear last. |
setFiringEvents | public void setFiringEvents(boolean firingEvents)(Code) | | |
uniqueLayerName | public String uniqueLayerName(String name)(Code) | | a unique layer name based on the given name |
|
|