Package org.gvsig.fmap.mapcontext.layers
Interface ExtendedPropertiesSupport
- All Known Subinterfaces:
FLayer,GraphicLayer,RasterLayer,SingleLayer,VectorLayer
- All Known Implementing Classes:
DefaultGraphicLayer,ExtendedPropertiesHelper,FLayers,FLyrDefault,FLyrVect
public interface ExtendedPropertiesSupport
-
Method Summary
Modifier and TypeMethodDescriptionReturns a hash map with all new properties associated to this layer.getProperty(Object key) Returns a reference to an object (property) associated to this layer.voidsetProperty(Object key, Object obj) Inserts an object as a property to this layer.
-
Method Details
-
getProperty
Returns a reference to an object (property) associated to this layer.
For example, you can attach a network definition to key "network" and check if a layer has a network loaded using getAssociatedObject("network") and that it's not null.
- Parameters:
key- the key associated to the property- Returns:
nullif key is not found- See Also:
-
setProperty
Inserts an object as a property to this layer.- Parameters:
key- the key associated to the propertyobj- the property- See Also:
-
getExtendedProperties
Map getExtendedProperties()Returns a hash map with all new properties associated to this layer.- Returns:
- hash table with the added properties
- See Also:
-