Constructor and Description |
---|
LayerManager() |
LayerManager(Task task) |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(java.lang.String categoryName) |
void |
addCategory(java.lang.String categoryName,
int index) |
Layer |
addLayer(java.lang.String categoryName,
Layer layer) |
Layer |
addLayer(java.lang.String categoryName,
java.lang.String layerName,
FeatureCollection featureCollection) |
void |
addLayerable(java.lang.String categoryName,
Layerable layerable) |
void |
addLayerListener(LayerListener layerListener) |
Layer |
addOrReplaceLayer(java.lang.String categoryName,
java.lang.String layerName,
FeatureCollection featureCollection) |
void |
deferFiringEvents(java.lang.Runnable r) |
void |
dispose() |
void |
dispose(Layerable l) |
void |
dispose(Layerable[] ls) |
void |
fireCategoryChanged(Category category,
CategoryEventType type) |
void |
fireFeaturesAttChanged(java.util.Collection features,
FeatureEventType type,
Layer layer,
java.util.Collection oldFeatureClones) |
void |
fireFeaturesChanged(java.util.Collection features,
FeatureEventType type,
Layer layer) |
void |
fireGeometryModified(java.util.Collection features,
Layer layer,
java.util.Collection oldFeatureClones) |
void |
fireLayerChanged(Layerable layerable,
LayerEventType type) |
java.awt.Color |
generateLayerFillColor() |
Blackboard |
getBlackboard() |
java.util.List |
getCategories() |
Category |
getCategory(Layerable layerable) |
Category |
getCategory(java.lang.String name) |
CoordinateSystem |
getCoordinateSystem() |
java.util.Collection |
getEditableLayers()
Editability is not enforced; all parties are responsible for heeding the
editability of a layer.
|
com.vividsolutions.jts.geom.Envelope |
getEnvelopeOfAllLayers() |
com.vividsolutions.jts.geom.Envelope |
getEnvelopeOfAllLayers(boolean visibleLayersOnly) |
Layer |
getLayer(int index) |
Layer |
getLayer(java.lang.String name) |
java.util.List |
getLayerables(java.lang.Class layerableClass)
To get all Layerables, set layerableClass to Layerable.class.
|
java.util.List |
getLayers() |
java.util.Collection |
getLayersWithModifiedFeatureCollections() |
java.util.LinkedList |
getLayersWithNullDataSource() |
Task |
getTask() |
UndoableEditReceiver |
getUndoableEditReceiver() |
java.util.List |
getVisibleLayers(boolean includeFence) |
int |
indexOf(Category category) |
int |
indexOf(Layer layer) |
boolean |
isFiringEvents() |
java.util.Iterator |
iterator() |
static int |
layerManagerCount() |
static void |
main(java.lang.String[] args) |
void |
remove(Layerable layerable)
convenience method
|
void |
remove(Layerable[] layerables)
remove, but do not dispose layer (as used e.g. by MoveLayerPlugin)
|
void |
removeIfEmpty(Category category) |
void |
removeLayerListener(LayerListener layerListener) |
java.util.Iterator |
reverseIterator(java.lang.Class layerableClass) |
void |
setCoordinateSystem(CoordinateSystem coordinateSystem) |
void |
setFiringEvents(boolean firingEvents) |
int |
size() |
java.lang.String |
uniqueLayerName(java.lang.String name) |
public LayerManager()
public LayerManager(Task task)
public UndoableEditReceiver getUndoableEditReceiver()
public void deferFiringEvents(java.lang.Runnable r)
public java.awt.Color generateLayerFillColor()
public void addLayerable(java.lang.String categoryName, Layerable layerable)
public void addCategory(java.lang.String categoryName)
public void addCategory(java.lang.String categoryName, int index)
public Category getCategory(java.lang.String name)
public java.util.List getCategories()
public Layer addLayer(java.lang.String categoryName, java.lang.String layerName, FeatureCollection featureCollection)
layerName
- the name of the layer. A number will be appended if a layer
with the same name already exists. Set to null to automatically generate a
new name.public Layer addOrReplaceLayer(java.lang.String categoryName, java.lang.String layerName, FeatureCollection featureCollection)
public java.lang.String uniqueLayerName(java.lang.String name)
public void remove(Layerable layerable)
layerable
- public void remove(Layerable[] layerables)
public void removeIfEmpty(Category category)
public void dispose()
public void dispose(Layerable l)
public void dispose(Layerable[] ls)
public int indexOf(Category category)
public void fireCategoryChanged(Category category, CategoryEventType type)
public void fireFeaturesChanged(java.util.Collection features, FeatureEventType type, Layer layer)
public void fireGeometryModified(java.util.Collection features, Layer layer, java.util.Collection oldFeatureClones)
public void fireLayerChanged(Layerable layerable, LayerEventType type)
public void setFiringEvents(boolean firingEvents)
public boolean isFiringEvents()
public java.util.Iterator reverseIterator(java.lang.Class layerableClass)
public java.util.Iterator iterator()
public Layer getLayer(java.lang.String name)
public void addLayerListener(LayerListener layerListener)
public void removeLayerListener(LayerListener layerListener)
public Layer getLayer(int index)
public int size()
public com.vividsolutions.jts.geom.Envelope getEnvelopeOfAllLayers()
public com.vividsolutions.jts.geom.Envelope getEnvelopeOfAllLayers(boolean visibleLayersOnly)
visibleLayersOnly
- public int indexOf(Layer layer)
public java.util.List getLayers()
public java.util.List getLayerables(java.lang.Class layerableClass)
public java.util.List getVisibleLayers(boolean includeFence)
public static int layerManagerCount()
public java.util.Collection getEditableLayers()
public Blackboard getBlackboard()
public java.util.Collection getLayersWithModifiedFeatureCollections()
public java.util.LinkedList getLayersWithNullDataSource()
public void setCoordinateSystem(CoordinateSystem coordinateSystem)
public static void main(java.lang.String[] args) throws com.vividsolutions.jts.io.ParseException
com.vividsolutions.jts.io.ParseException
public CoordinateSystem getCoordinateSystem()
public void fireFeaturesAttChanged(java.util.Collection features, FeatureEventType type, Layer layer, java.util.Collection oldFeatureClones)
public Task getTask()