Class FLayers
- All Implemented Interfaces:
Iterable<FLayer>,Collection<FLayer>,List<FLayer>,SequencedCollection<FLayer>,ExtendedPropertiesSupport,FLayer,FLayerHidesArea,LayerListener,InfoByPoint,LayerCollection,LayersVisitable,Projected,org.gvsig.metadata.Metadata,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.dynobject.DynObject,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.visitor.Visitable
Represents a generic collection of layers, that can be represented as a node in a tree of nodes of layers.
Adapts the basic functionality implemented for a layer in the abstract class
FLyrDefault, to a collection of layers, implementing, as well,
specific methods for this kind of object, defined in the interfaces
VectorialData, LayerCollection, and
InfoByPoint.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.gvsig.fmap.mapcontext.layers.FLyrDefault
FLyrDefault.RegisterMetadata -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapContextprotected ArrayList<LayerCollectionListener> List with all listeners registered for this kind of node.A synchronized list with the layers.Fields inherited from class org.gvsig.fmap.mapcontext.layers.FLyrDefault
drawVersion, layerListeners, metadataContainer, propertiesFields inherited from interface org.gvsig.fmap.mapcontext.layers.FLayer
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.layers.operations.LayerCollection
AFTER, BEFORE, BEGIN, END -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(LayersVisitor visitor) voidaccept(org.gvsig.tools.visitor.Visitor visitor) voidbooleanbooleanaddAll(int i, Collection clctn) booleanaddAll(Collection clctn) voidAdds a layer in an specified position in this node.voidaddLayer(org.gvsig.fmap.dal.DataStore store) voidAdds a new layer to this collection.voidAdds a new layer to this collection before or after an element if supplied, and if not at the beginning or end of the collection.voidAdds a listener of events produced on a collection of layers.booleanAdds aLayerListenerto the listener list.voidbeginDraw(Graphics2D g, ViewPort viewPort) protected voidNotifies all listeners associated to this collection of layers, that another layer has been added or replaced in the internal list of layers.protected voidNotifies all listeners associated to this collection of layers, that another layer is going to be added or replaced in the internal list of layers.protected voidcallLayerMoved(LayerPositionEvent event) Notifies all listeners associated to this collection of layers, that another layer has been moved in the internal list of layers.protected voidNotifies all listeners associated to this collection of layers, that a layer is going to be moved in the internal list of layers.protected voidNotifies all listeners associated to this collection of layers, that another layer has been removed from the internal list of layers.protected voidNotifies all listeners associated to this collection of layers, that a layer is going to be removed from the internal list of layers.voidclear()voidRemove all layers of this object.voidThis method can be used to have a fast cloned layer.booleanbooleancontainsAll(Collection clctn) createFLayerGroup(String name) protected voidvoiddraw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) Draws the layer using a buffer.voidendDraw(Graphics2D g, ViewPort viewPort) get(int index) FLayer[]Returns an array with all active layers in this collection.org.gvsig.fmap.geom.primitive.EnvelopeReturns the full extension of the layer node.org.gvsig.tools.dynobject.DynObjectSetExecutes a consultation about information of a point on the layer.org.gvsig.tools.dynobject.DynObjectSetExecutes a consultation about information of a point on the layer.org.gvsig.tools.dynobject.DynObjectSetgetInfo(org.gvsig.fmap.geom.primitive.Point p, double tolerance) Executes a consultation about information of a point on the layer.getLayer(int index) Returns the ith-output directed son (from bottom up) of this collection.Returns a first-level layer of this collection, using its name.getLayer(org.gvsig.fmap.dal.DataStore store) Returns a first-level layer of this collection, using its name.intReturns the number of layers that are at the first level inside this one.Returns a reference to the model of this layer, or null if this layer has no model.doubleReturns the maximum scale visible.doubleReturns the minimum scale visible.Returns the image icon that will be shown in the TOC next to this layer.FLayer[]Returns an array with all visible layers in this collection.intbooleanisEmpty()iterator()voidjoin(FLayer layer, LayerCollection group) intlistIterator(int i) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidmove(FLayer layer, LayerCollection group) Moves a layer from this collection to the end of another collection.voidmove(FLayer layer, LayerCollection group, int where, FLayer adjoiningLayer) Moves a layer from this collection to another collection before or after an element if supplied, and if not at the beginning or end of the collection.voidmoveTo(int from, int to) Moves a layer of the collection to another position in internal list.voidprint(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) Prints this layer according to some properties requested.voidprint_old(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) print_old(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties, ComposedLayer group) Checks all layers (each one as a sub-node of this node collection of layers) of this collection and draws their requested properties.remove(int i) booleanbooleanremoveAll(Collection clctn) voidremoveLayer(int idLayer) Removes a layer using its identifier.voidremoveLayer(String layerName) Removes a layer using its name.voidremoveLayer(FLayer lyr) Removes a layer from this collection.voidRemoves a listener of events produced on a collection of layers.voidreplaceLayer(String layerName, FLayer layer) Replace a layer identified by its name, by another.voidreplaceLayer(FLayer layer, FLayer newLayer) Replace a layer by another layer.booleanretainAll(Collection clctn) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetActive(boolean b) Changes the status of this layer to active or inactive.voidsetActive(boolean active, boolean applySublayers) voidsetAllActives(boolean active) Changes the status of all layers to active or inactive.voidsetAllVisibles(boolean visible) Changes the status of all layers to visible or invisible.voidsetMapContext(MapContext mapContext) Sets theMapContextthat contains this layer node.voidsetMaxScale(double maxScale) Sets the maximum scale visible.voidsetMinScale(double minScale) Sets the minimum scale visible.intsize()subList(int i, int i1) Object[]toArray()Object[]Methods inherited from class org.gvsig.fmap.mapcontext.layers.FLyrDefault
activationChanged, addError, addLegendListener, allowLinks, callEditionChanged, callLegendChanged, delegate, drawValueChanged, editionChanged, getClassName, getCoordTrans, getDefaultTolerance, getDrawVersion, getDynClass, getDynValue, getError, getErrors, getExtendedProperties, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getName, getNumErrors, getParentLayer, getProjection, getProperty, getTocStatusImage, getTransparency, hasChangedForDrawing, hasDynValue, hidesThisArea, implement, invalidate, invokeDynMethod, invokeDynMethod, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, load, nameChanged, newComposedLayer, reload, removeLayerListener, removeLegendListener, reProject, setAvailable, setCoordTrans, setDynValue, setEditing, setError, setFLayerStatus, setInTOC, setName, setParentLayer, setProjection, setProperty, setTemporary, setTocStatusImage, setTransparency, setVisible, toString, updateDrawVersion, updateDrawVersion, visibilityChanged, visibleRequired, wakeUpMethods inherited from class org.gvsig.tools.dispose.impl.AbstractDisposable
dispose, disposeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
layerCollectionListeners
List with all listeners registered for this kind of node. -
layers
A synchronized list with the layers. -
fmap
-
LAYER_ACTIVE
-
LAYER_AVALAIBLE
-
LAYER_FLYRVECT
-
LAYER_SELECTION_AVAILABLE
-
LAYER_SELECTION_EMPTY
-
-
Constructor Details
-
FLayers
public FLayers()
-
-
Method Details
-
addLayerCollectionListener
Description copied from interface:LayerCollectionAdds a listener of events produced on a collection of layers.
- Specified by:
addLayerCollectionListenerin interfaceLayerCollection- Parameters:
listener- aLayerCollectionListener- See Also:
-
setAllVisibles
public void setAllVisibles(boolean visible) Description copied from interface:LayerCollectionChanges the status of all layers to visible or invisible.
- Specified by:
setAllVisiblesin interfaceLayerCollection- Parameters:
visible- a boolean value- See Also:
-
removeLayerCollectionListener
Description copied from interface:LayerCollectionRemoves a listener of events produced on a collection of layers.
- Specified by:
removeLayerCollectionListenerin interfaceLayerCollection- Parameters:
listener- aLayerCollectionListener- See Also:
-
addLayer
Description copied from interface:LayerCollectionAdds a new layer to this collection.
- Specified by:
addLayerin interfaceLayerCollection- Parameters:
layer- the new layer- See Also:
-
addLayer
public void addLayer(org.gvsig.fmap.dal.DataStore store) -
addLayer
Adds a layer in an specified position in this node.- Parameters:
pos-layer- a layer
-
moveTo
Description copied from interface:LayerCollectionMoves a layer of the collection to another position in internal list. It doesn't consider sub-nodes of layers.
- Specified by:
moveToin interfaceLayerCollection- Parameters:
from- origin positionto- destination position- Throws:
CancelationException- any exception produced during the cancellation of the driver.
-
removeLayer
Description copied from interface:LayerCollectionRemoves a layer from this collection.
- Specified by:
removeLayerin interfaceLayerCollection- Parameters:
lyr- a layer- Throws:
CancelationException- any exception produced during the cancellation of the driver.- See Also:
-
removeLayer
public void removeLayer(int idLayer) Description copied from interface:LayerCollectionRemoves a layer using its identifier.
- Specified by:
removeLayerin interfaceLayerCollection- Parameters:
idLayer- layer identifier- See Also:
-
removeLayer
Description copied from interface:LayerCollectionRemoves a layer using its name.
- Specified by:
removeLayerin interfaceLayerCollection- Parameters:
layerName- the name of the layer- See Also:
-
replaceLayer
Replace a layer identified by its name, by another.- Parameters:
layerName- the name of the layer to be replacedlayer- the new layer- Throws:
LoadLayerException
-
replaceLayer
Replace a layer by another layer. It search recursively by all the ILayerCollection nodes- Parameters:
layer- the layer to be replacednewLayer- the new layer- Throws:
LoadLayerException
-
getVisibles
Description copied from interface:LayerCollectionReturns an array with all visible layers in this collection.
- Specified by:
getVisiblesin interfaceLayerCollection- Returns:
- array with first-level visible layer nodes, or
nullif no there is no layer visible - See Also:
-
getLayer
Description copied from interface:LayerCollectionReturns the ith-output directed son (from bottom up) of this collection.
- Specified by:
getLayerin interfaceLayerCollection- Parameters:
index- index of the ith-output layer in this collection.- Returns:
- a layer
- See Also:
-
getLayer
Description copied from interface:LayerCollectionReturns a first-level layer of this collection, using its name.- Specified by:
getLayerin interfaceLayerCollection- Parameters:
layerName- name of a layer of this collection- Returns:
- a layer
- See Also:
-
getLayer
Description copied from interface:LayerCollectionReturns a first-level layer of this collection, using its name.- Specified by:
getLayerin interfaceLayerCollection- Parameters:
store- of a layer of this collection- Returns:
- a layer
-
getLayersCount
public int getLayersCount()Description copied from interface:LayerCollectionReturns the number of layers that are at the first level inside this one.
Doesn't counts the sublayers (of
FLayerssubnodes).- Specified by:
getLayersCountin interfaceLayerCollection- Returns:
- number >= 0 with layers that are at the same first-level
- See Also:
-
draw
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) throws org.gvsig.fmap.dal.exception.ReadException Description copied from interface:FLayerDraws the layer using a buffer.- Specified by:
drawin interfaceFLayer- Parameters:
image- an image used to accelerate the screen drawg- for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort- information for drawing this layercancel- an object thread that implements theCancellableinterface, and will allow to cancel the drawscale- value that represents the scale- Throws:
org.gvsig.fmap.dal.exception.ReadException- if fails the driver used in this method.- See Also:
-
print
public void print(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException Description copied from interface:FLayerPrints this layer according to some properties requested.- Specified by:
printin interfaceFLayer- Parameters:
g- for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort- the information for drawing the layerscancel- an object thread that implements theCancellableinterface, and will allow to cancel the drawscale- the scale of the view. Must be between FLayer.getMinScale() and FLayer.getMaxScale().properties- a set with the settings to be applied to a whole print job and to all the docs in the print job- Throws:
org.gvsig.fmap.dal.exception.ReadException- if fails the driver used in this method.- See Also:
-
print_old
public void print_old(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException - Throws:
org.gvsig.fmap.dal.exception.ReadException
-
print_old
public ComposedLayer print_old(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties, ComposedLayer group) throws org.gvsig.fmap.dal.exception.ReadException Checks all layers (each one as a sub-node of this node collection of layers) of this collection and draws their requested properties. If a node is a group of layers (
ComposedLayer), executes it's drawn.All nodes which could group with the composed layer
group, will be drawn together. And once thegroupis drawn, will be set tonullif hasn't a parent layer.The particular implementation depends on the kind of each layer and composed layer. And this process can be cancelled at any time by the shared object
cancel.According the print quality, labels will be printed in different resolution:
- PrintQuality.DRAFT: 72 dpi (dots per inch).
- PrintQuality.NORMAL: 300 dpi (dots per inch).
- PrintQuality.HIGH: 600 dpi (dots per inch).
- Parameters:
g- for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort- the information for drawing the layerscancel- shared object that determines if this layer can continue being drawnscale- the scale of the view. Must be between FLayer.getMinScale() and FLayer.getMaxScale().properties- properties that will be printgroup- a composed layer pending to paint; if this parameter isnull, the composed layer- Returns:
nullif the layers ingrouphad been drawn or werenull; otherwise, thegroup- Throws:
org.gvsig.fmap.dal.exception.ReadException- See Also:
-
getFullEnvelope
public org.gvsig.fmap.geom.primitive.Envelope getFullEnvelope()Description copied from interface:FLayerReturns the full extension of the layer node.- Specified by:
getFullEnvelopein interfaceFLayer- Returns:
- location and dimension of this layer node
-
callLayerAdding
Notifies all listeners associated to this collection of layers, that another layer is going to be added or replaced in the internal list of layers.- Parameters:
event- a layer collection event with the new layer- Throws:
CancelationException
-
callLayerRemoving
Notifies all listeners associated to this collection of layers, that a layer is going to be removed from the internal list of layers.- Parameters:
event- a layer collection event with the layer being removed- Throws:
CancelationException- any exception produced during the cancellation of the driver.
-
callLayerMoving
Notifies all listeners associated to this collection of layers, that a layer is going to be moved in the internal list of layers.- Parameters:
event- a layer collection event with the layer being moved, and the initial and final positions- Throws:
CancelationException- any exception produced during the cancellation of the driver.
-
callLayerAdded
Notifies all listeners associated to this collection of layers, that another layer has been added or replaced in the internal list of layers.- Parameters:
event- a layer collection event with the new layer
-
callLayerRemoved
Notifies all listeners associated to this collection of layers, that another layer has been removed from the internal list of layers.- Parameters:
event- a layer collection event with the layer removed
-
callLayerMoved
Notifies all listeners associated to this collection of layers, that another layer has been moved in the internal list of layers.- Parameters:
event- a layer collection event with the layer moved, and the initial and final positions
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classFLyrDefault- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classFLyrDefault- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getMapContext
Description copied from interface:FLayerReturns a reference to the model of this layer, or null if this layer has no model.
- Specified by:
getMapContextin interfaceFLayer- Overrides:
getMapContextin classFLyrDefault- Returns:
- the model of this layer
-
setAllActives
public void setAllActives(boolean active) Description copied from interface:LayerCollectionChanges the status of all layers to active or inactive.
- Specified by:
setAllActivesin interfaceLayerCollection- Parameters:
active- a boolean value- See Also:
-
getLayers
- Specified by:
getLayersin interfaceLayerCollection
-
getActives
Description copied from interface:LayerCollectionReturns an array with all active layers in this collection.
- Specified by:
getActivesin interfaceLayerCollection- Returns:
- array with first-level active layer nodes, or
nullif no there is no layer actived - See Also:
-
getMinScale
public double getMinScale()Description copied from interface:FLayerReturns the minimum scale visible. Lower scales won't be drawn.- Specified by:
getMinScalein interfaceFLayer- Overrides:
getMinScalein classFLyrDefault- Returns:
- the minimum scale > 0, -1 if not defined
- See Also:
-
getMaxScale
public double getMaxScale()Description copied from interface:FLayerReturns the maximum scale visible. Higher scales won't be drawn.- Specified by:
getMaxScalein interfaceFLayer- Overrides:
getMaxScalein classFLyrDefault- Returns:
- the maximum scale > 0, -1 if not defined
- See Also:
-
setMinScale
public void setMinScale(double minScale) Description copied from interface:FLayerSets the minimum scale visible. Lower scales won't be drawn.- Specified by:
setMinScalein interfaceFLayer- Overrides:
setMinScalein classFLyrDefault- Parameters:
minScale- the scale > 0, -1 if not defined- See Also:
-
setMaxScale
public void setMaxScale(double maxScale) Description copied from interface:FLayerSets the maximum scale visible. Higher scales won't be drawn.- Specified by:
setMaxScalein interfaceFLayer- Overrides:
setMaxScalein classFLyrDefault- Parameters:
maxScale- the scale > 0, -1 if not defined- See Also:
-
setActive
public void setActive(boolean b) Description copied from interface:FLayerChanges the status of this layer to active or inactive.
One layer is active if is selected in TOC.
- Specified by:
setActivein interfaceFLayer- Overrides:
setActivein classFLyrDefault- Parameters:
b- the boolean to be set- See Also:
-
setActive
public void setActive(boolean active, boolean applySublayers) -
addLayerListener
Description copied from interface:FLayerAdds aLayerListenerto the listener list.- Specified by:
addLayerListenerin interfaceFLayer- Overrides:
addLayerListenerin classFLyrDefault- Parameters:
o- a layer listener- Returns:
trueif hasn't been any problem during the insertion of the listener- See Also:
-
getInfo
public org.gvsig.tools.dynobject.DynObjectSet getInfo(Point p, double tolerance, org.gvsig.tools.task.Cancellable cancel) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException Description copied from interface:InfoByPointExecutes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
- Specified by:
getInfoin interfaceInfoByPoint- Parameters:
p- point where is the consultationtolerance- permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.cancel- shared object that determines if this layer can continue being drawn- Returns:
- a DynObjectSet. If the InfoByPoint Object is a vector layer it should return a FeatureSet.
- Throws:
LoadLayerException- any exception produced using the driver.org.gvsig.fmap.dal.exception.DataException- TODO
-
getInfo
public org.gvsig.tools.dynobject.DynObjectSet getInfo(Point p, double tolerance, org.gvsig.tools.task.Cancellable cancel, boolean fast) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException Description copied from interface:InfoByPointExecutes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
- Specified by:
getInfoin interfaceInfoByPoint- Parameters:
p- point where is the consultationtolerance- permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.cancel- shared object that determines if this layer can continue being drawnfast- if true try to reuse objects as much as possible to make the object iteration faster. If true, DynObjects got through the returned set must not be stored unless cloned.- Returns:
- a DynObjectSet. If the InfoByPoint Object is a vector layer it should return a FeatureSet.
- Throws:
LoadLayerException- any exception produced using the driver.org.gvsig.fmap.dal.exception.DataException- TODO
-
getInfo
public org.gvsig.tools.dynobject.DynObjectSet getInfo(org.gvsig.fmap.geom.primitive.Point p, double tolerance) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException Description copied from interface:InfoByPointExecutes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
- Specified by:
getInfoin interfaceInfoByPoint- Parameters:
p- point in map coordinates where is the consultationtolerance- permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The unit are in map coordinates.- Throws:
LoadLayerExceptionorg.gvsig.fmap.dal.exception.DataException
-
getTocImageIcon
Description copied from interface:FLayerReturns the image icon that will be shown in the TOC next to this layer.- Specified by:
getTocImageIconin interfaceFLayer- Overrides:
getTocImageIconin classFLyrDefault- Returns:
- a String reference to the image icon, or
nullif there isn't any
-
setMapContext
Sets the
MapContextthat contains this layer node.- Parameters:
mapContext- theMapContextthat contains this layer node
-
accept
public void accept(org.gvsig.tools.visitor.Visitor visitor) throws org.gvsig.tools.exception.BaseException - Specified by:
acceptin interfaceorg.gvsig.tools.visitor.Visitable- Throws:
org.gvsig.tools.exception.BaseException
-
accept
- Specified by:
acceptin interfaceLayersVisitable- Throws:
org.gvsig.tools.exception.BaseException
-
getMetadataID
- Specified by:
getMetadataIDin interfaceorg.gvsig.metadata.Metadata- Throws:
org.gvsig.metadata.exceptions.MetadataException
-
getMetadataChildren
- Specified by:
getMetadataChildrenin interfaceorg.gvsig.metadata.Metadata
-
getMetadataName
- Specified by:
getMetadataNamein interfaceorg.gvsig.metadata.Metadata- Overrides:
getMetadataNamein classFLyrDefault- Throws:
org.gvsig.metadata.exceptions.MetadataException
-
beginDraw
- Specified by:
beginDrawin interfaceLayerCollection
-
endDraw
- Specified by:
endDrawin interfaceLayerCollection
-
doDispose
protected void doDispose() throws org.gvsig.tools.exception.BaseException- Specified by:
doDisposein classorg.gvsig.tools.dispose.impl.AbstractDisposable- Throws:
org.gvsig.tools.exception.BaseException
-
move
public void move(FLayer layer, LayerCollection group, int where, FLayer adjoiningLayer) throws LayerNotFoundInCollectionException Description copied from interface:LayerCollectionMoves a layer from this collection to another collection before or after an element if supplied, and if not at the beginning or end of the collection.
- Specified by:
movein interfaceLayerCollection- Parameters:
layer- a FLayer to movegroup- a LayerCollection in which the layer has to be movedwhere- the position parameter. The valid values are:
0 = BEGIN (first position)
1 = END (last position)
2 = BEFORE (before target layer)
3 = AFTER (after target layer)adjoiningLayer- a FLayer a layer adjacent to where to insert the layer.- Throws:
LayerNotFoundInCollectionException- See Also:
-
join
-
move
Description copied from interface:LayerCollectionMoves a layer from this collection to the end of another collection.
- Specified by:
movein interfaceLayerCollection- Parameters:
layer- a FLayer to movegroup- a LayerCollection in which the layer has to be moved
-
addLayer
public void addLayer(FLayer layer, int where, FLayer adjoiningLayer) throws LayerNotFoundInCollectionException Description copied from interface:LayerCollectionAdds a new layer to this collection before or after an element if supplied, and if not at the beginning or end of the collection.
.- Specified by:
addLayerin interfaceLayerCollection- Parameters:
layer- a FLayer to movewhere- the position parameter. The valid values are:
0 = BEGIN (first position)
1 = END (last position)
2 = BEFORE (before target layer)
3 = AFTER (after target layer)adjoiningLayer- a FLayer a layer adjacent to where to insert the layer.- Throws:
LayerNotFoundInCollectionException- See Also:
-
getFirstActiveLayer
-
getFirstActiveVectorLayer
-
iterator
-
deepiterator
-
deepiterable
-
size
public int size() -
get
-
isEmpty
public boolean isEmpty() -
contains
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<FLayer>- Specified by:
containsAllin interfaceList<FLayer>
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<FLayer>
-
listIterator
- Specified by:
listIteratorin interfaceList<FLayer>
-
listIterator
- Specified by:
listIteratorin interfaceList<FLayer>
-
subList
-
addAll
-
addAll
-
removeAll
-
retainAll
-
set
-
createFLayerGroup
-
cloneLayer
Description copied from interface:FLayerThis method can be used to have a fast cloned layer.
The implementations should take care of not recreate this layer. Instead of this, is better to use the same source (driver) and deepclone the legend. Exception: the labels aren't deepcloned to avoid memory consumption.
Note: Labels are memory consuming to speed up layers like PostGIS and so on.
- Specified by:
cloneLayerin interfaceFLayer- Overrides:
cloneLayerin classFLyrDefault- Returns:
- a layer that is a clonation of this layer
- Throws:
Exception- any exception produced during the cloning of this layer.
-
clear
public void clear()- Specified by:
clearin interfaceCollection<FLayer>- Specified by:
clearin interfaceorg.gvsig.tools.dynobject.DynObject- Specified by:
clearin interfaceList<FLayer>- Overrides:
clearin classFLyrDefault
-
clearMetadata
public void clearMetadata() -
clearLayers
public void clearLayers()Remove all layers of this object.
-