|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsLabelledPointObject
Implementation of an ArcIMS point object which can be placed in an Acetate layer of a map with a text label beside it.
| Field Summary |
| Constructor Summary | |
AimsLabelledPointObject()
Creates a new point object with no arguments. |
|
AimsLabelledPointObject(AimsPoint pt)
Creates a new point object with coordinate from an AimsPoint |
|
AimsLabelledPointObject(AimsPointObject pt)
Creates a new point object with coordinate from another AimsPointObject |
|
AimsLabelledPointObject(double x,
double y)
Creates a new point object with coordinate values. |
|
AimsLabelledPointObject(java.lang.String xy)
Creates a new point object with coordinate values contained in a String. |
|
| 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. |
AimsPoint |
getPoint()
Gets the point object associated with this 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. |
AimsPoint |
getShape()
Gets the shape geometry of the object. |
AimsSymbol |
getSymbol()
Gets the symbol for the object |
int |
getUnits()
Returns an enumerated value indicating the type of units, either AimsAcetateObject.ACETATE_OBJECT_UNITS_DATABASE or AimsAcetateObject.ACETATE_OBJECT_UNITS_PIXEL. |
java.lang.String |
getUnitsString()
Returns a string indicating the type of units, either "database" or "pixel". |
double |
getX()
Gets the X coordinate location of the point object. |
double |
getY()
Gets the Y coordinate location of the point object. |
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 |
offsetBy(AimsPoint offset)
Sets the position of the point by adjusting it by the X and Y values contained in another 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 |
setCoordsys(AimsCoordsys coordsys)
Sets the coordsys for this object. |
void |
setLabel(java.lang.String label)
Sets the label for the labelled point. |
void |
setLabelOffset(int xOffset,
int yOffset)
Sets the label offset from the point symbol in pixels. |
void |
setLabelSymbol(AimsTextMarkerSymbol symbol)
Sets the symbol used for drawing the label. |
void |
setLocation(AimsPoint pt)
Sets the location of the object using an AimsPoint. |
void |
setLocation(AimsPointObject pt)
Sets the location of the object using another AimsPointObject. |
void |
setLocation(double x,
double y)
Sets the location of the object using coordinates. |
void |
setMaxScale(double scale,
AimsMap map)
Sets the maximum scale that this object will be displayed. |
void |
setMaxScaleFactor(double unitsPerPixel)
Sets the maximum scale factor that this object will be displayed. |
void |
setMinScale(double scale,
AimsMap map)
Sets the minimum scale that this object will be displayed. |
void |
setMinScaleFactor(double unitsPerPixel)
Sets the minimum scale factor that this object will be displayed. |
void |
setObjectTag(java.lang.Object tag)
Sets an object tag for this object. |
void |
setPoint(AimsPoint pt)
Sets the point associated with this object. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setSymbol(AimsRasterMarkerSymbol sym)
Sets the symbol for the object. |
void |
setSymbol(AimsSimpleMarkerSymbol 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. |
void |
setX(double x)
Sets the X coordinate location of the point object. |
void |
setY(double y)
Sets the Y coordinate location of the point object. |
java.lang.String |
toAxlString()
Returns the AXL string to refresh this object, using the default environment setting. |
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 |
toAxlString(AimsEnvironment env,
AimsMap map)
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 AimsLabelledPointObject()
public AimsLabelledPointObject(double x,
double y)
x - The x location of the objecty - The y location of the object.public AimsLabelledPointObject(AimsPoint pt)
pt - The AimsPoint containing the location of the objectpublic AimsLabelledPointObject(java.lang.String xy)
xy - The xy location of the objectpublic AimsLabelledPointObject(AimsPointObject pt)
pt - The AimsPointObject containing the location of the object| Method Detail |
public void setLabel(java.lang.String label)
label - The text to appear beside the point symbol.
public void setLabelOffset(int xOffset,
int yOffset)
xOffset - The horizontal distance from the point in pixels.yOffset - The vertical distance from the point in pixels.public void setLabelSymbol(AimsTextMarkerSymbol symbol)
symbol - The symbol used to draw the label.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 AimsAcetateObjecttag - A programmer defined element to associate with this object.public java.lang.Object getObjectTag()
getObjectTag in interface AimsAcetateObjectpublic java.lang.Object clone()
clone in interface AimsAcetateObjectpublic void offsetBy(AimsPoint offset)
offset - A point containing the X and Y delta offsets.public void setCoordsys(AimsCoordsys coordsys)
coordsys - The coordsys for this object.
public void setMinScale(double scale,
AimsMap map)
scale - The scale.map - The map object to use to calculate scale.public void setMinScaleFactor(double unitsPerPixel)
unitsPerPixel - The scale factor.
public void setMaxScale(double scale,
AimsMap map)
scale - The scale.map - The map object to use to calculate scale.public void setMaxScaleFactor(double unitsPerPixel)
unitsPerPixel - The scale factor.public AimsSymbol getSymbol()
public void setSymbol(AimsSimpleMarkerSymbol sym)
sym - The the symbol for the object.public void setSymbol(AimsRasterMarkerSymbol sym)
sym - The the symbol for the object.public void setSymbol(AimsTrueTypeMarkerSymbol sym)
sym - The the symbol for the object.
public void setLocation(double x,
double y)
x - The x location of the objecty - The y location of the object.public void setLocation(AimsPointObject pt)
pt - The point object containing coordinates to use.public void setLocation(AimsPoint pt)
pt - The point containing coordinates to use.public void setX(double x)
x - The new X coordinate location for the point object.public void setY(double y)
y - The new Y coordinate location for the point object.public double getX()
public double getY()
public AimsPoint getPoint()
public AimsEnvelope getExtent()
getExtent in interface AimsAcetateObjectpublic void setPoint(AimsPoint pt)
pt - The point.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 java.lang.String toAxlString(AimsEnvironment env,
AimsMap map)
env - The environment object containing coordinate separators.map - The map object that this object belongs to.
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 AimsPoint getShape()
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 | |||||||||