com.esri.aims.mtier.model.acetate
Class Point

java.lang.Object
  extended by com.esri.aims.mtier.model.acetate.Object
      extended by com.esri.aims.mtier.model.acetate.Point
All Implemented Interfaces:
AcetateElement, Shape, Serializable

public class Point
extends Object
implements Shape, Serializable

Renders a point as an acetate layer, defines a point to display geocode results, or used with the points object in a FeatureLayers Filter object. The Point object extends the Object class from the acetate package.

See Also:
Serialized Form

Constructor Summary
Point()
          Constructs an instance of a Point object.
 
Method Summary
 String getID()
          Returns the ID associated with this Point object.
 String getName()
          Returns the name string associated with this Point object.
 Symbol getSymbol()
          Returns the symbol associated with this Point object.
 String getType()
          Returns the type of acetate object this class represents, 'Point'.
 double getX()
          Returns the x- coordinate location for this Point object.
 double getY()
          Returns the y- coordinate location for this Point object.
 void setID(String value)
          Sets the given ID for this Point object.
 void setName(String value)
          Sets the given name string for this Point object.
 void setSymbol(Object object)
          Assigns a symbol to this Point object for rendering.
 void setX(double value)
          Sets the x- coordinate location for this Point object.
 void setY(double value)
          Sets the y- coordinate location for this Point object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point()
Constructs an instance of a Point object.

Example:

Point point = new Point();

Method Detail

getType

public String getType()
Returns the type of acetate object this class represents, 'Point'.

Example:

String type = object.getType();

Specified by:
getType in interface Shape
Specified by:
getType in class Object
Returns:
String

setX

public void setX(double value)
Sets the x- coordinate location for this Point object.

Example:

point.setX(-125.0);

Parameters:
value - the x coordinate value.
See Also:
getX()

getX

public double getX()
Returns the x- coordinate location for this Point object.

Example:

double x = point.getX();

Returns:
double
See Also:
setX(double)

setY

public void setY(double value)
Sets the y- coordinate location for this Point object.

Example:

point.setY(45.0);

Parameters:
value - the y coordinate value.
See Also:
getY()

getY

public double getY()
Returns the y- coordinate location for this Point object.

Example:

double y = point.getY();

Returns:
double
See Also:
setY(double)

setName

public void setName(String value)
Sets the given name string for this Point object.

Example:

point.setName("point");

Parameters:
value - the name value.
See Also:
getName()

getName

public String getName()
Returns the name string associated with this Point object.

Example:

String name = point.getName();

Returns:
String
See Also:
setName(java.lang.String)

setID

public void setID(String value)
Sets the given ID for this Point object.

Example:

point.setID("point-1");

Parameters:
value - the id value.
See Also:
getID()

getID

public String getID()
Returns the ID associated with this Point object.

Example:

String id = point.getID();

Returns:
String
See Also:
setID(java.lang.String)

setSymbol

public void setSymbol(Object object)
Assigns a symbol to this Point object for rendering.

Example:

 SimpleMarkerSymbol simpleMarker = new SimpleMarkerSymbol();
 simpleMarker.setWidth(15);
 point.setSymbol(simpleMarker);
 

Parameters:
object - the symbol object.
See Also:
getSymbol()

getSymbol

public Symbol getSymbol()
Returns the symbol associated with this Point object.

Example:

 if(point.getSymbol().getType().equals("SimpleMarker")){
  SimpleMarkerSymbol sms = (SimpleMarkerSymbol)point.getSymbol();
 }
 

Returns:
Object
See Also:
setSymbol(java.lang.Object)