|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.model.LayerManager
public class LayerManager
Registry of Layers in a Task.
Task,
Layer| Constructor Summary | |
|---|---|
LayerManager()
|
|
LayerManager(Task task)
|
|
| Method Summary | |
|---|---|
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 layerable)
Deprecated. |
void |
dispose(WorkbenchFrame frame,
Layerable layerable)
SIGLE [obedel] on 2005 then [mmichaud] on 2007-05-22 To free the memory allocated for a layer Called by RemoveSelectedLayersPlugin |
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()
|
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)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayerManager()
public LayerManager(Task task)
| Method Detail |
|---|
public UndoableEditReceiver getUndoableEditReceiver()
public void deferFiringEvents(java.lang.Runnable r)
public java.awt.Color generateLayerFillColor()
public Layer addLayer(java.lang.String categoryName,
Layer layer)
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)
public void removeIfEmpty(Category category)
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 Category getCategory(Layerable layerable)
public java.util.List getLayers()
public java.util.List getLayerables(java.lang.Class layerableClass)
public java.util.List getVisibleLayers(boolean includeFence)
public void dispose(Layerable layerable)
public void dispose(WorkbenchFrame frame,
Layerable layerable)
frame - the worbench framelayerable - the layerable to removepublic void dispose()
public static int layerManagerCount()
public java.util.Collection getEditableLayers()
public Blackboard getBlackboard()
public java.util.Collection getLayersWithModifiedFeatureCollections()
public void setCoordinateSystem(CoordinateSystem coordinateSystem)
public static void main(java.lang.String[] args)
throws com.vividsolutions.jts.io.ParseException
com.vividsolutions.jts.io.ParseExceptionpublic CoordinateSystem getCoordinateSystem()
public void fireFeaturesAttChanged(java.util.Collection features,
FeatureEventType type,
Layer layer,
java.util.Collection oldFeatureClones)
public Task getTask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||