com.mapquest
Class DTFeatureStyleEx

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.BaseDTStyle
          extended bycom.mapquest.DTFeatureStyleEx
All Implemented Interfaces:
java.lang.Cloneable

public class DTFeatureStyleEx
extends BaseDTStyle

Contains the appearance characteristics of all features for a given Contains the appearance characteristics of all features for a given display type. These characteristics include the icon name, icon type (Raster or Metafile), icon visible, label visible, low scale index, and high scale index. The scale indexes indicate the range of map scales at which the display type style applies. If the user desires to create his own icon, it must be a .BMP, which is a raster image. The DTFeatureStyleEx class is very similar to DTStyleEx, but lets developers specify what map features to override by providing its name or unique ID (GEF ID) within a map data set.

See Also:
FeatureSpecifierCollection

Field Summary
static int CLASS_ID
           
static java.lang.String CLASS_NAME
           
 
Fields inherited from class com.mapquest.BaseDTStyle
DT_NULL
 
Fields inherited from class com.mapquest.MQObject
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
DTFeatureStyleEx()
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 FeatureSpecifierCollection getFeatureSpecifiers()
          Get the FeatureSpecifierList.
 java.lang.String getStyleString()
           
 int hashCode()
          Returns a hash code for this DTFeatureStyleEx.
 void init()
          Initializes object.
 void setFeatureSpecifiers(FeatureSpecifierCollection newColl)
          Set the FeatureSpecifierList.
 void setStyleString(java.lang.String newString)
          Set the Style String for this Display Type.
 
Methods inherited from class com.mapquest.BaseDTStyle
getDT, getHighScale, getLowScale, setDT, setHighScale, setLowScale
 
Methods inherited from class com.mapquest.MQObject
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

DTFeatureStyleEx

public DTFeatureStyleEx()
Method Detail

init

public void init()
Initializes object.

Overrides:
init in class BaseDTStyle

getClassId

public int getClassId()
Returns the numeric id of this class.

Overrides:
getClassId in class MQObject
Returns:
the numeric id of this class.

getClassName

public java.lang.String getClassName()
Returns the text name of this class.

Overrides:
getClassName in class MQObject
Returns:
the text name of this class.

getStyleString

public java.lang.String getStyleString()

setStyleString

public void setStyleString(java.lang.String newString)
Set the Style String for this Display Type. The Style String to which display type style applies.

Parameters:
newString - The Style String for this Display Type

getFeatureSpecifiers

public FeatureSpecifierCollection getFeatureSpecifiers()
Get the FeatureSpecifierList. The Feature specifier list contains a list of attribute/value pairs describing a specific feature.

Returns:
FeatureSpecifier Collection

setFeatureSpecifiers

public void setFeatureSpecifiers(FeatureSpecifierCollection newColl)
Set the FeatureSpecifierList. The Feature specifier list contains a list of attribute/value pairs describing a specific feature.

Parameters:
newColl - new FeatureSpecifier Collection

equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a DTFeatureStyleEx object that has same attributes as this object.

Overrides:
equals in class BaseDTStyle
Parameters:
otherObject - the object to compare this DTFeatureStyleEx against.
Returns:
true if the DTFeatureStyleEx objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this DTFeatureStyleEx.

Overrides:
hashCode in class BaseDTStyle
Returns:
a hash code value for this DTFeatureStyleEx.