com.esri.adf.web.data.symbol
Class WebSimpleMarkerSymbol

java.lang.Object
  extended by com.esri.adf.web.data.symbol.WebSymbol
      extended by com.esri.adf.web.data.symbol.WebSimpleMarkerSymbol
All Implemented Interfaces:
Serializable

public class WebSimpleMarkerSymbol
extends WebSymbol
implements Serializable

WebSimpleMarkerSymbol class is used to symbolize point features using one of the predefined symbol types: CIRCLE, TRIANGLE, SQUARE, CROSS or a STAR.

See Also:
Serialized Form

Field Summary
static int CIRCLE
           
static int CROSS
           
static int SQUARE
           
static int STAR
           
static int TRIANGLE
           
static String TYPE
           
 
Fields inherited from class com.esri.adf.web.data.symbol.WebSymbol
transparency
 
Constructor Summary
WebSimpleMarkerSymbol()
           
 
Method Summary
 boolean equals(Object obj)
           
 String geColor()
          Deprecated. replaced by getColor()
 String getColor()
          Returns the WebSimpleMarkerSymbol's color value.
 int getMarkerType()
          Returns the WebSimpleMarkerSymbol's marker type value.
 String getOutlineColor()
           Returns the WebSimpleMarkerSymbol's outline color.
 String getType()
          Returns the type of the symbol as "SimpleMarker"
 int getWidth()
          Returns the width of the marker symbol.
 double getXOffset()
          Returns the x-axis offset.
 double getYOffset()
          Returns the y-axis offset.
 int hashCode()
           
 boolean isAntialiasing()
          Returns true if the WebSimpleMarkerSymbol's antialiasing value is set to true.
 void setAntialiasing(boolean antialiasing)
          Sets the antialiasing value for this WebSimpleMarkerSymbol.
 void setColor(String color)
          Sets the WebSimpleMarkerSymbol's color value.
 void setMarkerType(int type)
          Sets the WebSimpleMarkerSymbol's type value.
 void setOutlineColor(String outlineColor)
          Sets the WebSimpleMarkerSymbol's outline color.
 void setWidth(int width)
          Sets the WebSimpleMarkerSymbol's width.
 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, setAngle, setTransparency
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values

CIRCLE

public static final int CIRCLE
See Also:
Constant Field Values

SQUARE

public static final int SQUARE
See Also:
Constant Field Values

TRIANGLE

public static final int TRIANGLE
See Also:
Constant Field Values

CROSS

public static final int CROSS
See Also:
Constant Field Values

STAR

public static final int STAR
See Also:
Constant Field Values
Constructor Detail

WebSimpleMarkerSymbol

public WebSimpleMarkerSymbol()
Method Detail

getType

public String getType()
Returns the type of the symbol as "SimpleMarker"

Specified by:
getType in class WebSymbol
Returns:
the string representation of symbol type TYPE

setWidth

public void setWidth(int width)
Sets the WebSimpleMarkerSymbol's width. By default the width of the symbol is 20.

Overrides:
setWidth in class WebSymbol
Parameters:
width - the width of the marker symbol

getWidth

public int getWidth()
Returns the width of the marker symbol.

Overrides:
getWidth in class WebSymbol
Returns:
the width of the symbol

setAntialiasing

public void setAntialiasing(boolean antialiasing)
Sets the antialiasing value for this WebSimpleMarkerSymbol. By default the value is true. To get better performance set the value to false.

Overrides:
setAntialiasing in class WebSymbol
Parameters:
antialiasing - the antialiasing value, default value is true
See Also:
isAntialiasing()

isAntialiasing

public boolean isAntialiasing()
Returns true if the WebSimpleMarkerSymbol's antialiasing value is set to true.

Overrides:
isAntialiasing in class WebSymbol
Returns:
the antialiasing for this symbol, , default value is true
See Also:
setAntialiasing(boolean)

setColor

public void setColor(String color)
Sets the WebSimpleMarkerSymbol's color value.
 wSimpleMarker.setColor("100,0,0");
 

Parameters:
color - the marker color value expressed as an RGB string with values from 0 to 255 separated with commas
See Also:
getColor()

geColor

@Deprecated
public String geColor()
Deprecated. replaced by getColor()

Returns the WebSimpleMarkerSymbol's color value.
   Example:
   String color wSimpleMarker.getColor();
 

Returns:
the marker color
See Also:
setColor(java.lang.String)

getColor

public String getColor()
Returns the WebSimpleMarkerSymbol's color value.
   Example:
   String color wSimpleMarker.getColor();
 

Returns:
the marker color
See Also:
setColor(java.lang.String)

setMarkerType

public void setMarkerType(int type)
Sets the WebSimpleMarkerSymbol's type value. The default value is CIRCLE
 wSimpleMarker.setMarkerType(WebSimpleMarkerSymbol.CROSS);
 

Parameters:
type - the type of WebSimpleMarkerSymbol
See Also:
getMarkerType()

getMarkerType

public int getMarkerType()
Returns the WebSimpleMarkerSymbol's marker type value.
   Example:
   int type = wSimpleMarker.getMarkerType();
 

Returns:
the type of marker
See Also:
setMarkerType(int)

setOutlineColor

public void setOutlineColor(String outlineColor)
Sets the WebSimpleMarkerSymbol's outline color.
 wSimpleMarker.setOutlineColor("255,0,0");
 

Parameters:
outlineColor - the outline color value expressed as an RGB string with values from 0 to 255 separated with commas
See Also:
getOutlineColor()

getOutlineColor

public String getOutlineColor()

Returns the WebSimpleMarkerSymbol's outline color.

   Example:
   String outline = wSimpleMarker.getOutlineColor();
 

Returns:
the outline color
See Also:
setOutlineColor(java.lang.String)

setXOffset

public void setXOffset(double xOffset)
Sets the symbol x-axis offset.

Parameters:
xOffset - the x-axis offset.

getXOffset

public double getXOffset()
Returns the x-axis offset.

Returns:
the x-axis offset.

setYOffset

public void setYOffset(double yOffset)
Sets the symbol y-axis offset.

Parameters:
yOffset - the y-axis offset.

getYOffset

public double getYOffset()
Returns the y-axis offset.

Returns:
the y-axis offset.

toString

public String toString()
Overrides:
toString in class WebSymbol

hashCode

public int hashCode()
Overrides:
hashCode in class WebSymbol

equals

public boolean equals(Object obj)
Overrides:
equals in class WebSymbol