|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.symbol.WebSymbol
com.esri.adf.web.data.symbol.WebTrueTypeMarkerSymbol
public class WebTrueTypeMarkerSymbol
WebTrueTypeMarkerSymbol
is a class used to symbolize point features.
Field Summary | |
---|---|
static String |
BOLD
Bold font style |
static String |
BOLDITALIC
Bold italic font style |
static int |
BOTTOM
Bottom text position |
static int |
CENTER
Center text position |
static int |
CIRCLE
Circle marker type |
static int |
CROSS
Cross marker type |
static String |
ITALIC
Italic font style |
static int |
LEFT
Left text position |
static int |
NONE
None marker type |
static String |
OUTLINE
Outline font style |
static String |
REGULAR
Regular font style |
static int |
RIGHT
Right text position |
static int |
SQUARE
Square marker type |
static int |
STAR
Start marker type |
static int |
TOP
Top text position |
static int |
TRIANGLE
Triangle marker type |
static String |
TYPE
|
static String |
UNDERLINE
Underline font style |
Fields inherited from class com.esri.adf.web.data.symbol.WebSymbol |
---|
transparency |
Constructor Summary | |
---|---|
WebTrueTypeMarkerSymbol()
Constructs an instance of WebTrueTypeMarkerSymbol . |
Method Summary | |
---|---|
void |
addTextValue(String text)
Adds text values which are displayed with the symbol. |
boolean |
equals(Object obj)
|
int |
getCharacterIndex()
Returns the WebTrueTypeMarkerSymbol 's character value. |
String |
getFontColor()
Returns the WebTrueTypeMarkerSymbol 's font color value. |
String |
getFontName()
Returns the WebTrueTypeMarkerSymbol 's font name. |
int |
getFontSize()
Returns the WebTrueTypeMarkerSymbol 's font size value. |
String |
getFontStyle()
Returns the WebTrueTypeMarkerSymbol 's font style value. |
String |
getGlowingColor()
Returns the WebTrueTypeMarkerSymbol 's glowing color value. |
double |
getMarkerAngle()
Returns the marker angle. |
String |
getMarkerColor()
Returns the marker color. |
int |
getMarkerType()
Returns the marker type. |
String |
getOutlineColor()
Returns the WebTrueTypeMarkerSymbol 's outline color value. |
String |
getShadowColor()
Returns the WebTrueTypeMarkerSymbol 's shadow color value. |
double |
getTextAngle()
Returns the angle of the text |
int |
getTextPosition()
Returns text position. |
List<String> |
getTextValues()
Returns the text values. |
String |
getType()
Returns the type of the symbol as "TrueTypeMarker" |
int |
getWidth()
Returns the width of the marker. |
double |
getXOffset()
Returns the x-axis offset. |
double |
getYOffset()
Returns the y-axis offset. |
int |
hashCode()
|
void |
setAngle(double angle)
Sets the marker and the text angle values, default values are 0. |
void |
setCharacterIndex(int characterIndex)
Sets the WebTrueTypeMarkerSymbol 's character value. |
void |
setFontColor(String fontColor)
Sets the WebTrueTypeMarkerSymbol 's font color value. |
void |
setFontName(String fontName)
Sets the WebTrueTypeMarkerSymbol 's font name. |
void |
setFontSize(int fontSize)
Sets the WebTrueTypeMarkerSymbol 's font size value. |
void |
setFontStyle(String fontStyle)
Sets the WebTrueTypeMarkerSymbol 's font style value. |
void |
setGlowingColor(String glowingColor)
Sets the WebTrueTypeMarkerSymbol 's glowing color value. |
void |
setMarkerAngle(double markerAngle)
sets the marker angle value, default value is 0. |
void |
setMarkerColor(String markerColor)
Sets the marker color. |
void |
setMarkerType(int markerType)
Sets the WebTrueTypeMarkerSymbol 's marker type value. |
void |
setOutlineColor(String outlineColor)
Sets the WebTrueTypeMarkerSymbol 's outline color value. |
void |
setShadowColor(String shadowColor)
Sets the WebTrueTypeMarkerSymbol 's shadow color value. |
void |
setTextAngle(double textAngle)
Sets the text angle value, default value is 0. |
void |
setTextPosition(int textPosition)
Sets Text position. |
void |
setTextValues(List<String> textValues)
Sets the text values to be displayed within the marker. |
void |
setWidth(int width)
Sets the width of the marker. |
void |
setXOffset(double xOffset)
Sets the symbol x-axis offset. |
void |
setYOffset(double yOffset)
Sets the symbol y-axis offset. |
String |
toString()
|
Methods inherited from class com.esri.adf.web.data.symbol.WebSymbol |
---|
getAngle, getTransparency, isAntialiasing, setAntialiasing, setTransparency |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TYPE
public static final String REGULAR
public static final String BOLD
public static final String ITALIC
public static final String UNDERLINE
public static final String OUTLINE
public static final String BOLDITALIC
public static final int NONE
public static final int CIRCLE
public static final int SQUARE
public static final int TRIANGLE
public static final int CROSS
public static final int STAR
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
public static final int CENTER
Constructor Detail |
---|
public WebTrueTypeMarkerSymbol()
WebTrueTypeMarkerSymbol
.
WebTrueTypeMarkerSymbol trueType = new WebTrueTypeMarkerSymbol();
Method Detail |
---|
public void setAngle(double angle)
setAngle
in class WebSymbol
angle
- the symbol angle value in degrees. The angle of the symbol is calculated in a clockwise directionpublic String getType()
getType
in class WebSymbol
TYPE
public void setWidth(int width)
setFontSize(int)
to set the text font size.
setWidth
in class WebSymbol
width
- the width of the markerpublic int getWidth()
getWidth
in class WebSymbol
public void setCharacterIndex(int characterIndex)
WebTrueTypeMarkerSymbol
's character value. For example setting character index 107 for ARIAL
font name will print the character "k"
For Example, WebTrueTypeMarkerSymbol trueType = new WebTrueTypeMarkerSymbol(); trueType.setAngle(45.0); trueType.setAntialiasing(true); trueType.setFontName("ESRI North"); trueType.setFontStyle(WebTrueTypeMarkerSymbol.BOLD); trueType.setFontColor("0,0,255"); trueType.setFontSize(100); trueType.setCharacterIndex(51);
characterIndex
- the font character valuegetCharacterIndex()
public int getCharacterIndex()
WebTrueTypeMarkerSymbol
's character value.
For Example, int character = trueType.getCharacterIndex();
setCharacterIndex(int)
public void setFontName(String fontName)
WebTrueTypeMarkerSymbol
's font name.
For Example, trueType.setFont("Arial");
fontName
- the font value.getFontName()
public String getFontName()
WebTrueTypeMarkerSymbol
's font name.
For Example, String font = trueType.getFontName();
setFontName(java.lang.String)
public void setFontSize(int fontSize)
WebTrueTypeMarkerSymbol
's font size value.
For Example, trueType.setFontSize(15);
fontSize
- the font size value, default value is 12getFontSize()
public int getFontSize()
WebTrueTypeMarkerSymbol
's font size value.
setFontSize(int)
public void setFontStyle(String fontStyle)
WebTrueTypeMarkerSymbol
's font style value.
For Example, trueType.setFontStyle(WebTrueTypeMarkerSymbol.BOLD);
fontStyle
- the font style value, possible values are REGULAR
(DEFAULT), BOLD
,
ITALIC
, UNDERLINE
, OUTLINE
or BOLDITALIC
getFontStyle()
public String getFontStyle()
WebTrueTypeMarkerSymbol
's font style value.
For Example, String fontStyle = trueType.getFontStyle();
setFontStyle(java.lang.String)
public void setFontColor(String fontColor)
WebTrueTypeMarkerSymbol
's font color value.
For Example, trueType.setFontColor("100,0,0");
fontColor
- the font color, default value is "0,0,0"getFontColor()
public String getFontColor()
WebTrueTypeMarkerSymbol
's font color value.
For Example, String fontColor = trueType.getFontColor();
setFontColor(java.lang.String)
public void setOutlineColor(String outlineColor)
WebTrueTypeMarkerSymbol
's outline color value.
For Example, trueType.setOutlineColor("45,0,0");
outlineColor
- the outline color value.getOutlineColor()
public String getOutlineColor()
WebTrueTypeMarkerSymbol
's outline color value.
For Example, String outline = trueType.getOutlineColor();
setOutlineColor(java.lang.String)
public void setShadowColor(String shadowColor)
WebTrueTypeMarkerSymbol
's shadow color value.
For Example, trueType.setShadowColor("85,0,0");
shadowColor
- the shadow color value.getShadowColor()
public String getShadowColor()
WebTrueTypeMarkerSymbol
's shadow color value.
setShadowColor(java.lang.String)
public void setGlowingColor(String glowingColor)
WebTrueTypeMarkerSymbol
's glowing color value.
For Example, trueType.setGlowingColor("100,0,0");
glowingColor
- the glowing color value.getGlowingColor()
public String getGlowingColor()
WebTrueTypeMarkerSymbol
's glowing color value.
For Example, String glowing = trueType.getGlowing();
setGlowingColor(java.lang.String)
public void setTextPosition(int textPosition)
WebTrueTypeMarkerSymbol.CENTER
. Draws text on
WebTrueTypeMarkerSymbol.TOP
or WebTrueTypeMarkerSymbol.LEFT
or
WebTrueTypeMarkerSymbol.BOTTOM
or WebTrueTypeMarkerSymbol.RIGHT
of marker symbol.
textPosition
- the position of the text within marker, possible values are TOP
, BOTTOM
,
LEFT
, RIGHT
or CENTER
(DEFAULT)public int getTextPosition()
BOTTOM
public void addTextValue(String text)
text
- the valuespublic void setTextValues(List<String> textValues)
For Example, WebMultiPoint points = new WebMultiPoint(); points.addPoint(new WebPoint(100, 100)); points.addPoint(new WebPoint(400, 100)); points.addPoint(new WebPoint(400, 400)); points.addPoint(new WebPoint(100, 400)); WebTrueTypeMarkerSymbol trueType = new WebTrueTypeMarkerSymbol(); trueType.setAngle(45.0); trueType.setAntialiasing(true); trueType.setWidth(100); trueType.setFontName("Arial"); trueType.setFontStyle(WebTrueTypeMarkerSymbol.BOLDITALIC); trueType.setFontColor("255,255,255"); trueType.setFontSize(30); trueType.setMarkerType(WebTrueTypeMarkerSymbol.SQUARE); trueType.setMarkerColor("0,0,255"); ArrayList<String> text = new ArrayList<String>(4); text.add("One"); text.add("Two"); text.add("Three"); text.add("Four"); trueType.setTextValues(text);
textValues
- the text valuespublic List<String> getTextValues()
public void setTextAngle(double textAngle)
textAngle
- text angle value in degrees. The angle of the symbol is calculated in a clockwise directionpublic double getTextAngle()
public void setMarkerType(int markerType)
WebTrueTypeMarkerSymbol
's marker type value.
For Example, WebTrueTypeMarkerSymbol trueType = new WebTrueTypeMarkerSymbol(); trueType.setAngle(45.0); trueType.setWidth(100); trueType.setFontName("Arial"); trueType.setFontStyle(WebTrueTypeMarkerSymbol.BOLDITALIC); trueType.setFontColor("255,255,255"); trueType.setFontSize(30); trueType.setMarkerType(WebTrueTypeMarkerSymbol.SQUARE); trueType.setMarkerColor("0,0,255"); trueType.addTextValue("ESRI");
The default marker type is WebTrueTypeMarkerSymbol.NONE
markerType
- the marker type, possible values are NONE
(DEFAULT), CIRCLE
, SQUARE
,
TRIANGLE
, CROSS
or STAR
getMarkerType()
public int getMarkerType()
setMarkerType(int)
public void setMarkerColor(String markerColor)
For Example, trueType.setMarkerColor("0,0,255");
markerColor
- the marker color, default value is "0,0,0
"public String getMarkerColor()
public void setMarkerAngle(double markerAngle)
markerAngle
- angle of the markerpublic double getMarkerAngle()
public void setXOffset(double xOffset)
xOffset
- the x-axis offset.public double getXOffset()
public void setYOffset(double yOffset)
yOffset
- the y-axis offset.public double getYOffset()
public String toString()
toString
in class WebSymbol
public int hashCode()
hashCode
in class WebSymbol
public boolean equals(Object obj)
equals
in class WebSymbol
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |