|
|||||||||
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.Points
public class Points
Contains a collection of Point objects. Points are used to generate Polygon, Line, and a group of points as an acetate layer. Points can also be used in a FeatureLayer's Filter object. The Points object extends the Object class in the Acetate package.
Constructor Summary | |
---|---|
Points()
Constructs an instance of a Points object. |
Method Summary | |
---|---|
boolean |
addPointObject(Point object)
Adds the given Point to this Points collection. |
void |
clearPointObjects()
Clears all Point objects from this Points collection. |
int |
getCount()
Returns the count of Point objects in this Points collection. |
Point |
getPointObject(int index)
Returns the Point object at given index from this Points collection. |
Symbol |
getSymbol()
Returns the symbol object associated with this Points object. |
String |
getType()
Returns the type of acetate object, 'Points'. |
void |
insertPoints(Point object,
int index)
Inserts a Point object into the Points collection at the specified index. |
Object |
removePointObject(int index)
Removes the Point at given index from this Points object. |
void |
setSymbol(Object obj)
Assigns a symbol to this Points object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Points()
Example: Points points = new Points();
Method Detail |
---|
public String getType()
getType
in interface Shape
getType
in class Object
public boolean addPointObject(Point object)
Example:
Point pnt = new Point();
pnt.setX(-125.0);
pnt.setY(45.0);
points.addPointObject(pnt);
object
- the PointObject
getPointObject(int)
public void clearPointObjects()
Example: points.clearPointObjects();
public Object removePointObject(int index)
Example: Point point = points.removePointObject(0);
index
- the index value.
insertPoints(com.esri.aims.mtier.model.acetate.Point, int)
public void insertPoints(Point object, int index)
Example:
Point point = new Point();
point.setX(-125.0);
point.setY(45.0);
points.insertPoints(point, 2);
object
- the PointObject.index
- the index value.removePointObject(int)
public Point getPointObject(int index)
Example:
Point point = points.getPointObject(2);
index
- the index value.
addPointObject(com.esri.aims.mtier.model.acetate.Point)
public int getCount()
Example: int count = points.getCount();
public void setSymbol(Object obj)
Example:
SimpleMarkerSymbol simpleMarker = new SimpleMarkerSymbol();
simpleMarker.setWidth(15);
points.setSymbol(simpleMarker);
obj
- the symbol objectgetSymbol()
public Symbol getSymbol()
Example:
if(points.getSymbol().getType().equals("SimpleMarker")){
SimpleMarkerSymbol simpleMarker = (SimpleMarkerSymbol)points.getSymbol();
}
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |