|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsPolygonObject
Implementation of an ArcIMS polygon object which can be placed in an Acetate layer of a map.
| Field Summary |
| Constructor Summary | |
AimsPolygonObject()
Creates a new polygon object with no arguments. |
|
AimsPolygonObject(AimsPoints points)
Creates a new polygon object with a points list. |
|
AimsPolygonObject(AimsPolygon polygon)
Creates a new polygon object with a polygon. |
|
| Method Summary | |
java.lang.Object |
clone()
Creates a copy of this object. |
int |
getAcetateObjectType()
Gets the acetate object type. |
AimsEnvelope |
getExtent()
Gets the extent of the object. |
java.lang.Object |
getObjectTag()
Gets the object tag. |
AimsPoints |
getPoints()
Gets the points of the polygon object. |
java.lang.String |
getProperty(java.lang.String name)
Gets the value of a property. |
java.util.Set |
getPropertyNames()
Returns a Set containing the property names. |
AimsPolygon |
getShape()
Returns the polygon shape associated with the polygon object. |
int |
getUnits()
|
java.lang.String |
getUnitsString()
|
boolean |
hasProperties()
Returns an indicator of whether the object has programmer defined properties. |
boolean |
intersects(AimsShapeObject shape)
Returns an indicator whether this object intersects the specified geometry. |
void |
setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
Sets one of the attributes of this object using a string value. |
void |
setCoordsys(AimsCoordsys coordsys)
Sets the coordsys for this object. |
void |
setMaxScale(double scale,
AimsMap map)
|
void |
setMaxScaleFactor(double unitsPerPixel)
|
void |
setMinScale(double scale,
AimsMap map)
|
void |
setMinScaleFactor(double unitsPerPixel)
|
void |
setObjectTag(java.lang.Object tag)
Sets an object tag for this object. |
void |
setPoints(AimsPoints points)
Sets the points of the polygon object. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setShape(AimsPolygon shape)
Sets the polygon shape associated with the polygon object. |
void |
setSymbol(AimsGradientFillSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsHashLineSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsRasterFillSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsRasterMarkerSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsSimpleLineSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsSimpleMarkerSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsSimplePolygonSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsTrueTypeMarkerSymbol sym)
Sets the symbol for the object. |
void |
setUnits(int units)
Sets the units of the acetate object. |
void |
setUnits(java.lang.String units)
Sets the units of the acetate object. |
java.lang.String |
toAxlString()
Returns the AXL string to refresh this object, using the default environment coordinate separators. |
java.lang.String |
toAxlString(AimsEnvironment env)
Returns the AXL string to refresh this object, using the coordinate separators in the specified environnment setting. |
java.lang.String |
toString()
Returns a text representation of of this object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AimsPolygonObject()
public AimsPolygonObject(AimsPolygon polygon)
polygon - an AimsPolygon to set the object to.public AimsPolygonObject(AimsPoints points)
points - an AimsPoints object representing the outer boundary.| Method Detail |
public java.lang.String getProperty(java.lang.String name)
getProperty in interface AimsAcetateObjectname - The property name
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface AimsAcetateObjectname - The property namevalue - The property value.public java.util.Set getPropertyNames()
getPropertyNames in interface AimsAcetateObjectpublic boolean hasProperties()
hasProperties in interface AimsAcetateObjectpublic void setObjectTag(java.lang.Object tag)
setObjectTag in interface AimsAcetateObjectpublic java.lang.Object getObjectTag()
getObjectTag in interface AimsAcetateObjectpublic AimsPolygon getShape()
public void setShape(AimsPolygon shape)
shape - The polygon shape.public java.lang.Object clone()
clone in interface AimsAcetateObjectpublic void setCoordsys(AimsCoordsys coordsys)
coordsys - The coordsys for this object.public AimsEnvelope getExtent()
getExtent in interface AimsAcetateObject
public void setMinScale(double scale,
AimsMap map)
public void setMinScaleFactor(double unitsPerPixel)
public void setMaxScale(double scale,
AimsMap map)
public void setMaxScaleFactor(double unitsPerPixel)
public AimsPoints getPoints()
public void setPoints(AimsPoints points)
points - An AimsPoints object containing the polygon points.public void setSymbol(AimsGradientFillSymbol sym)
public void setSymbol(AimsHashLineSymbol sym)
public void setSymbol(AimsRasterFillSymbol sym)
public void setSymbol(AimsRasterMarkerSymbol sym)
public void setSymbol(AimsSimpleLineSymbol sym)
public void setSymbol(AimsSimpleMarkerSymbol sym)
public void setSymbol(AimsSimplePolygonSymbol sym)
public void setSymbol(AimsTrueTypeMarkerSymbol sym)
public java.lang.String toString()
public java.lang.String toAxlString()
toAxlString in interface AimsAcetateObjectpublic java.lang.String toAxlString(AimsEnvironment env)
toAxlString in interface AimsAcetateObjectenv - The environment object containing coordinate separators.
public int getAcetateObjectType()
getAcetateObjectType in interface AimsAcetateObjectpublic void setUnits(java.lang.String units)
units - The units of the acetate object. Valid values are
"pixel" and "database".public void setUnits(int units)
setUnits in interface AimsAcetateObjectunits - The units of the acetate object. Valid values are
AimsAcetateObject.ACETATE_OBJECT_UNITS_DATABASE or
AimsAcetateObject.ACETATE_OBJECT_UNITS_PIXEL.public int getUnits()
getUnits in interface AimsAcetateObjectpublic java.lang.String getUnitsString()
public void setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
tag - The AXL element tag containing this attribute.name - The AXL attribute name.value - The AXL attribute value.public boolean intersects(AimsShapeObject shape)
intersects in interface AimsAcetateObjectshape - The geometry to test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||