|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.BaseDTStyle
com.mapquest.DTStyle
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. DTStyle objects override the most common style attributes for point features. Use DTStyle objects with line features and polygon features to set visibility (the Visible property) on or off, but no other line or polygon modifications are possible with DTStyle. In order to modify less common style attributes or line/polygon styles, use DTStyleEx or DTFeatureStyleEx instead.
ColorStyle,
FontStyle,
SymbolType| 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 | |
DTStyle()
Default constructor. |
|
DTStyle(DTStyle copy)
Copy 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. |
ColorStyle |
getFontBoxBkgdColor()
Get the font box background color within a DTStyle. |
long |
getFontBoxMargin()
Get the margin between the font and the box surrounding the font within a DTStyle of type mqFontBoxed. |
ColorStyle |
getFontBoxOutlineColor()
Get the font box outline color within a DTStyle. |
ColorStyle |
getFontColor()
Get the font color within a DTStyle. |
java.lang.String |
getFontName()
Gets the Font name within a DTStyle. |
ColorStyle |
getFontOutlineColor()
Get the font outline color within a DTStyle. |
int |
getFontSize()
Gets the font size within a DTStyle. |
FontStyle |
getFontStyle()
Get the font style within a DTStyle. |
boolean |
getLabelVisible()
Determines if the label is visible within a DTStyle. |
java.lang.String |
getSymbolName()
Returns the Symbol name. |
SymbolType |
getSymbolType()
Returns the Symbol type. |
boolean |
getVisible()
Determines if the icon is visible within a DTStyle. |
int |
hashCode()
Returns a hash code for this DTStyle. |
void |
init()
Initializes a DTStyle object. |
void |
setFontBoxBkgdColor(ColorStyle lColor)
Set the font box background color within a DTStyle. |
void |
setFontBoxMargin(long lMargin)
Set the margin between the font and the box surrounding the font within a DTStyle of type mqFontBoxed. |
void |
setFontBoxOutlineColor(ColorStyle lColor)
Set the font box outline color within a DTStyle. |
void |
setFontColor(ColorStyle lColor)
Set the font color within a DTStyle. |
void |
setFontName(java.lang.String szFontName)
Sets the Font Name within a DTStyle. |
void |
setFontOutlineColor(ColorStyle lColor)
Set the font outline color within a DTStyle. |
void |
setFontSize(int nSize)
Sets the FontSize within a DTStyle. |
void |
setFontStyle(FontStyle lStyle)
Set the font style within a DTStyle. |
void |
setLabelVisible(boolean bLabelVisible)
Sets the "label visible" flag, indicating whether or not this label is to be displayed. |
void |
setSymbolName(java.lang.String strSymbol)
Sets the Symbol name. |
void |
setSymbolType(SymbolType sType)
Sets the Symbol type. |
void |
setVisible(boolean bVisible)
Sets the Visible flag, which indicates whether or not the icon is visible. |
| 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 |
public static final int CLASS_ID
public static final java.lang.String CLASS_NAME
| Constructor Detail |
public DTStyle()
public DTStyle(DTStyle copy)
copy - The DTStyle object which will be copied into
this DTStyle object.| Method Detail |
public void init()
init in class BaseDTStylepublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setSymbolName(java.lang.String strSymbol)
strSymbol - The name that this DTStyle symbol name is to be set to.public void setSymbolType(SymbolType sType)
sType - The icon type that this DTStyle Symbol type is to be set to.public void setLabelVisible(boolean bLabelVisible)
bLabelVisible - true indicates that the
label is to be visible, false
indicates that it is not visible.public void setVisible(boolean bVisible)
bVisible - true indicates that the icon is
to be visible, false indicates
that it is not to be visible.public java.lang.String getSymbolName()
public SymbolType getSymbolType()
public boolean getLabelVisible()
public boolean getVisible()
public void setFontSize(int nSize)
nSize - New font size.public int getFontSize()
public void setFontName(java.lang.String szFontName)
szFontName - New font name.public java.lang.String getFontName()
public void setFontColor(ColorStyle lColor)
lColor - New font color.public ColorStyle getFontColor()
public void setFontOutlineColor(ColorStyle lColor)
lColor - New font outline color.public ColorStyle getFontOutlineColor()
public void setFontBoxBkgdColor(ColorStyle lColor)
lColor - New font box background color.public ColorStyle getFontBoxBkgdColor()
public void setFontBoxOutlineColor(ColorStyle lColor)
lColor - New font box outline color.public ColorStyle getFontBoxOutlineColor()
public void setFontBoxMargin(long lMargin)
lMargin - New font margin.public long getFontBoxMargin()
public void setFontStyle(FontStyle lStyle)
lStyle - New font style.public FontStyle getFontStyle()
public boolean equals(java.lang.Object otherObject)
equals in class BaseDTStyleotherObject - the object to compare this DTStyle against.
public int hashCode()
hashCode in class BaseDTStyle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||