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

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

public class Line
extends Object
implements Shape, Serializable

Renders a line as an acetate layer, or defines a line for use with a FeatureLayer's Filter object. The Line object extends the Object class from the acetate package.

See Also:
Serialized Form

Constructor Summary
Line()
          Constructs an instance of a Line object.
 
Method Summary
 String getID()
          Returns the ID associated with this Line object.
 String getName()
          Returns the Line object's name value.
 Points getPoints()
          Returns the Points object associated with this Line object.
 Symbol getSymbol()
          Returns the symbol object assigned to this Line object.
 String getType()
          Returns a name string that defines the type of this acetate object.
 void setID(String value)
          Sets the given string as ID for this Line object.
 void setName(String value)
          Sets the given name value for this Line object.
 void setPoints(Points object)
          Sets the Points object used to construct the line.
 void setSymbol(Object object)
          Assigns the given symbol object to the Line object for rendering of the line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line()
Constructs an instance of a Line object. Example:
Line line = new Line();

Method Detail

getType

public String getType()
Returns a name string that defines the type of this acetate object. Line extends the Object class from the Acetate package.
Example: String type = line.getType();

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

setName

public void setName(String value)
Sets the given name value for this Line object. Example:
line.setName("roads");

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

getName

public String getName()
Returns the Line object's name value. Example:
String name = line.getName();

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

setID

public void setID(String value)
Sets the given string as ID for this Line object. Example: line.setID("line-1");

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

getID

public String getID()
Returns the ID associated with this Line object.
Example: String lineid = line.getID();

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

setSymbol

public void setSymbol(Object object)
Assigns the given symbol object to the Line object for rendering of the line. Example:
 SimpleLineSymbol simpleLine = new SimpleLineSymbol();
 simpleLine.setWidth(10);
 simpleLine.setLineType("dash");
 line.setSymbol(simpleLine);
 

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

getSymbol

public Symbol getSymbol()
Returns the symbol object assigned to this Line object.
Example:
SimpleLineSymbol simpleLine = (SimpleLineSymbol)line.getSymbol();

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

setPoints

public void setPoints(Points object)
Sets the Points object used to construct the line. Example:
 Points pnts = new Points();
 Point pnt = new Point();
 pnt.setX(-125.00);
 pnt.setY(45.0);
 pnts.setPointObject(pnt);
 line.setPoints(pnts);
 

Parameters:
object - the Points object.
See Also:
getPoints()

getPoints

public Points getPoints()
Returns the Points object associated with this Line object. Example:
 Points pnts = line.getPoints(); 

Returns:
Points
See Also:
setPoints(com.esri.aims.mtier.model.acetate.Points)