|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.acetate.Object com.esri.aims.mtier.model.acetate.Polygon
public class Polygon
Renders a polygon as an acetate layer, or defines a polygon for use with a FeatureLayer's Filter object. The Polygon object extends the Object class from the acetate package.
Constructor Summary | |
---|---|
Polygon()
Constructs an instance of a Polygon object. |
Method Summary | |
---|---|
void |
addRing(Ring obj)
Adds the given Ring object to this collection. |
void |
clearRings()
Clears all Ring objects from this collection. |
String |
getID()
Returns the ID associated with this Polygon. |
String |
getName()
Returns the name string associated with this Polygon object. |
Ring |
getRing(int index)
Returns a Ring object by index from this collection. |
int |
getRingsCount()
Returns the count of Ring objects in this collection. |
Symbol |
getSymbol()
Returns the symbol object associated with this Polygon object. |
String |
getType()
Returns the name string that defines the type of this acetate object. |
void |
removeRing(int index)
Removes a Ring object by index from this collection. |
void |
setID(String value)
Sets the given ID for this Polygon object. |
void |
setName(String value)
Sets the given name string for this Polygon object. |
void |
setSymbol(Object object)
Sets the given symbol object to the Polygon object for rendering. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Polygon()
Polygon polygon = new Polygon();
Method Detail |
---|
public String getType()
getType
in interface Shape
getType
in class Object
public void setID(String value)
polygon.setID("polygon-1");
value
- the ID value.getID()
public String getID()
String id = polygon.getID();
setID(java.lang.String)
public void setName(String value)
polygon.setName("polygon");
value
- the name value.getName()
public String getName()
String name = polygon.getName();
setName(java.lang.String)
public void setSymbol(Object object)
SimplePolygonSymbol simplePolygon = new SimplePolygonSymbol();
simplePolygon.setFillColor("255,0,0");
polygon.setSymbol(simplePolygon);
object
- the symbol object.getSymbol()
public Symbol getSymbol()
SimplePolygonSymbol simplePolygon = (SimplePolygonSymbol)polygon.getSymbol();
setSymbol(java.lang.Object)
public void addRing(Ring obj)
Ring ring = new Ring();
Point pnt = new Point();
pnt.setX(-125.00);
pnt.setY(45.0);
Points points = new Points();
points.addPointObject(pnt);
ring.setPoints(points);
polygon.addRing(ring);
obj
- the Ring object to add.getRing(int)
,
removeRing(int)
,
clearRings()
public Ring getRing(int index)
Ring ring = polygon.getRing(0);
index
- the item in the collection.
addRing(com.esri.aims.mtier.model.acetate.Ring)
public void removeRing(int index)
polygon.removeRing(0);
index
- the item to remove.addRing(com.esri.aims.mtier.model.acetate.Ring)
,
clearRings()
public int getRingsCount()
int ringCount = polygon.getRingsCount();
public void clearRings()
polygon.clearRings();
removeRing(int)
,
addRing(com.esri.aims.mtier.model.acetate.Ring)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |