ilog.views.maps
Class IlvMapFeature

java.lang.Object
  extended by ilog.views.maps.IlvMapFeature

public class IlvMapFeature
extends Object

This class represents a simple map feature, that is an object with a geometry that can be rendered graphically and, optionally, a list of attributes.

See Also:
IlvMapFeatureIterator, IlvFeatureRenderer

Constructor Summary
IlvMapFeature()
          Initializes an instance of IlvMapFeature.
 
Method Summary
 IlvAttributeInfoProperty getAttributeInfo()
          Returns the attribute information of the map feature.
 IlvFeatureAttributeProperty getAttributes()
          Returns the attributes of the feature.
 IlvCoordinateSystem getCoordinateSystem()
          Returns the coordinate system of the geometry of the map feature.
 IlvMapGeometry getGeometry()
          Returns the geometry of the map feature.
 Object getId()
          Returns the identifier of the map feature.
 Object getProperty(String key)
          Returns the value of a property.
 Enumeration propertyKeys()
          Returns an enumeration of all property keys attached to this map feature.
 void removeAllProperties()
          Removes all properties attached to this geometry.
 Object removeProperty(String key)
          Removes the property whose key is specified.
 void setAttributeInfo(IlvAttributeInfoProperty info)
          Sets the attribute information of the map feature.
 void setAttributes(IlvFeatureAttributeProperty attributes)
          Sets the attributes of the map feature.
 void setCoordinateSystem(IlvCoordinateSystem cs)
          Sets the coordinate system of the geometry of the map feature.
 void setGeometry(IlvMapGeometry geometry)
          Sets the geometry of the map feature.
 void setId(Object id)
          Sets the identifier of the map feature.
 Object setProperty(String key, Object value)
          Adds a property to this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapFeature

public IlvMapFeature()
Initializes an instance of IlvMapFeature.

Method Detail

setGeometry

public final void setGeometry(IlvMapGeometry geometry)
Sets the geometry of the map feature.


getGeometry

public final IlvMapGeometry getGeometry()
Returns the geometry of the map feature.


setAttributeInfo

public final void setAttributeInfo(IlvAttributeInfoProperty info)
Sets the attribute information of the map feature.

Parameters:
info - The attribute information.

getAttributeInfo

public final IlvAttributeInfoProperty getAttributeInfo()
Returns the attribute information of the map feature. This function can return null if the map feature has no attribute.


setAttributes

public final void setAttributes(IlvFeatureAttributeProperty attributes)
Sets the attributes of the map feature.

Parameters:
attributes - The attributes.

getAttributes

public final IlvFeatureAttributeProperty getAttributes()
Returns the attributes of the feature.


setCoordinateSystem

public final void setCoordinateSystem(IlvCoordinateSystem cs)
Sets the coordinate system of the geometry of the map feature.

Parameters:
cs - The coordinate system.
Since:
JViews 5.0

getCoordinateSystem

public final IlvCoordinateSystem getCoordinateSystem()
Returns the coordinate system of the geometry of the map feature. If getProjection returns a non-null value and a coordinate system has not been set using setCoordinateSystem, then this returns an IlvProjectedCoordinateSystem based on the projection that has been set, if any.

Since:
JViews 5.0

setId

public final void setId(Object id)
Sets the identifier of the map feature.


getId

public final Object getId()
Returns the identifier of the map feature. This function can return null if the identifier is not defined.


propertyKeys

public final Enumeration propertyKeys()
Returns an enumeration of all property keys attached to this map feature.

Since:
JViews 5.0

setProperty

public final Object setProperty(String key,
                                Object value)
Adds a property to this object.

Parameters:
key - The key string for this property.
value - The value of this property. The key null is not allowed.
Returns:
The previous value of the specified key, or null if the key did not have a previous value.
Since:
JViews 3.5

removeProperty

public final Object removeProperty(String key)
Removes the property whose key is specified.

Parameters:
key - The property to be removed. The key null is not allowed.
Returns:
The previous value of the specified key, or null if the key did not have a previous value.
Since:
JViews 3.5

getProperty

public final Object getProperty(String key)
Returns the value of a property.

Parameters:
key - The key of the property.
Returns:
The property or null if the property does not exist.
Since:
JViews 3.5

removeAllProperties

public final void removeAllProperties()
Removes all properties attached to this geometry.

Since:
JViews 3.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.