|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsEnvelope
An AimsEnvelope represents an ArcIms rectangular shape. An AimsEnvelope is used to store map extents and similar settings. If you want to put a rectangle on an AimsAcetateLayer, use an AimsEnvelopeObject instead, because it contains settings for symbolization.
| Field Summary |
| Fields inherited from interface com.moximedia.aims.AimsShapeObject |
SHAPE_TYPE_ENVELOPE, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE |
| Constructor Summary | |
AimsEnvelope()
Creates a new AimsEnvelope object with no height or width. |
|
AimsEnvelope(AimsEnvelope env)
Creates a copy of the envelope passed. |
|
AimsEnvelope(double x,
double y,
double offset)
Creates an square AimsEnvelope object based on centre and offset. |
|
AimsEnvelope(double xmin,
double ymin,
double xmax,
double ymax)
Creates an AimsEnvelope object using the minimum and maximum coordinates. |
|
AimsEnvelope(java.lang.String str)
Creates an AimsEnvelope object from a string containing the minimum and maximum coordinate values in the form "x,y,x,y". |
|
| Method Summary | |
void |
alignBottom(double y)
Sets the bottom side of the envelope to the value specified. |
void |
alignLeft(double x)
Sets the left side of the envelope to the value specified. |
void |
alignRight(double x)
Sets the right side of the envelope to the value specified. |
void |
alignTop(double y)
Sets the top side of the envelope to the value specified. |
java.lang.Object |
clone()
Creates a copy of this envelope. |
boolean |
contains(AimsEnvelope env)
Compares two AimsEnvelopes, and returns true if this envelope completely contains the envelope in the argument. |
boolean |
contains(AimsPoint pt)
Returns true if this envelope contains the point in the argument. |
boolean |
contains(AimsPolygon poly)
Returns true if this envelope contains the polygon in the argument. |
void |
expandBy(double expandDist)
Enlarges the rectangle by the specified distance on all sides. |
double |
getBottom()
Get the minimum Y coordinate of the rectangle |
AimsPoint |
getCenter()
Returns the center point of the envelope. |
double |
getHeight()
Gets the envelope height |
double |
getLeft()
Get the minimum X coordinate of the rectangle |
java.lang.String |
getName()
|
double |
getRight()
Get the maximum X coordinate of the rectangle |
int |
getShapeType()
|
double |
getTop()
Get the maximum Y coordinate of the rectangle |
double |
getWidth()
Gets the envelope width |
double |
getXmax()
Get the maximum X coordinate of the rectangle |
double |
getXmin()
Get the minimum X coordinate of the rectangle |
double |
getYmax()
Get the maximum Y coordinate of the rectangle |
double |
getYmin()
Get the minimum Y coordinate of the rectangle |
AimsEnvelope |
intersect(AimsEnvelope env)
Gets the intersection of two AimsEnvelopes. |
boolean |
intersects(AimsEnvelope env)
Compares two AimsEnvelopes, and returns true if they intersect. |
boolean |
isEmpty()
Returns a boolean value indicating that the envelope has not been initialized (minimum and maximum values are zero). |
boolean |
isValid()
Returns a boolean indicator of whether this shape is valid. |
void |
offsetBy(AimsPoint offset)
Offsets the rectangle by the x and y in a point. |
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 |
setCenter(AimsPoint pt)
Sets the center of the rectangle to the point specified. |
void |
setCenter(double x,
double y)
Sets the center of the rectangle to the point specified. |
void |
setEnvelope(double xmin,
double ymin,
double xmax,
double ymax)
Resets the parameters of the envelope using coordinates. |
void |
setName(java.lang.String name)
|
java.lang.String |
toAxlString()
Returns the AXL string to refresh this object. |
java.lang.String |
toAxlString(AimsEnvironment env)
Returns the AXL string to refresh this object. |
java.lang.String |
toCommaSeparatedString()
|
java.lang.String |
toGmlString()
|
java.lang.String |
toString()
Returns a text representation of of this object. |
AimsEnvelope |
union(AimsEnvelope env)
Union with another envelope, used in getting the envelope for an AimsRecordset. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AimsEnvelope()
public AimsEnvelope(double xmin,
double ymin,
double xmax,
double ymax)
xmin - The minimum X coordinate valueymin - The minimum Y coordinate valuexmax - The maximum X coordinate valueymax - The maximum Y coordinate valuepublic AimsEnvelope(java.lang.String str)
str - The extent coordinates in a comma delimited string.
public AimsEnvelope(double x,
double y,
double offset)
x - The centre X coordinate valuey - The centre Y coordinate valueoffset - The square half-width value. Each side of the square will
be created this distance away from the centre.public AimsEnvelope(AimsEnvelope env)
env - An envelope to copy| Method Detail |
public java.lang.Object clone()
clone in interface AimsShapeObjectpublic void offsetBy(AimsPoint offset)
offset - An AimsPoint object containing the offset.public void setName(java.lang.String name)
public java.lang.String getName()
public AimsEnvelope union(AimsEnvelope env)
env - The second envelope
public AimsEnvelope intersect(AimsEnvelope env)
env - The second envelope.
public boolean contains(AimsEnvelope env)
env - second envelope
public boolean contains(AimsPoint pt)
pt - A point
public boolean contains(AimsPolygon poly)
poly - A polygon
public boolean intersects(AimsEnvelope env)
env - second envelope
public void setEnvelope(double xmin,
double ymin,
double xmax,
double ymax)
xmin - the X minimum coordinate.ymin - the Y minimum coordinate.xmax - the X maximum coordinate.ymax - the Y maximum coordinate.
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 double getXmin()
public double getLeft()
public double getYmin()
public double getBottom()
public double getXmax()
public double getRight()
public double getYmax()
public double getTop()
public double getWidth()
public double getHeight()
public AimsPoint getCenter()
public void setCenter(AimsPoint pt)
pt - The new center point.
public void setCenter(double x,
double y)
x - The new center point x coordinate.y - The new center point y coordinate.public void expandBy(double expandDist)
expandDist - The expand distance.public void alignBottom(double y)
y - The value to align to.public void alignLeft(double x)
x - The value to align to.public void alignRight(double x)
x - The value to align to.public void alignTop(double y)
y - The value to align to.public boolean isEmpty()
public java.lang.String toString()
public java.lang.String toAxlString()
toAxlString in interface AimsShapeObjectpublic java.lang.String toAxlString(AimsEnvironment env)
toAxlString in interface AimsShapeObjectenv - The environment object containing coordinate separators and
other information about the version of AXL to produce.
public java.lang.String toGmlString()
toGmlString in interface AimsShapeObjectpublic java.lang.String toCommaSeparatedString()
public int getShapeType()
getShapeType in interface AimsShapeObjectpublic boolean isValid()
isValid in interface AimsShapeObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||