com.mapquest
Class DTStyleEx

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

public class DTStyleEx
extends BaseDTStyle

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. In order to modify feature types other than points or use complex style descriptions, use the Style File Editor application to design complex styles to use with the DTStyleEx class. The Style File Editor application can export complex styles as map style strings. The DTStyleEx class has all the functionality described for DTStyle, and additionally can modify or add styles for point, line, and polygon map features using map style strings.


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
DTStyleEx()
          Default constructor.
 
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.
 java.lang.String getStyleString()
          Returns the string representation of the style.
 int hashCode()
          Returns a hash code for this DTStyleEx.
 void init()
          Initializes object.
 void setStyleString(java.lang.String newString)
          Sets the string representation of the style.
 
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

DTStyleEx

public DTStyleEx()
Default constructor.

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()
Returns the string representation of the style.


setStyleString

public void setStyleString(java.lang.String newString)
Sets the string representation of the style.


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 DTStyleEx object that has same attributes as this object.

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

hashCode

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

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