|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsCalloutTextObject
Implementation of an callout text object which can be placed in an Acetate layer of a map.
| Field Summary |
| Constructor Summary | |
AimsCalloutTextObject()
Creates a new callout text object with no arguments. |
|
| 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. |
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". |
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 |
setArrowPosition(AimsPoint pt)
Sets the point associated with this object. |
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 |
setFontName(java.lang.String name)
Sets the font name. |
void |
setFontSize(int size)
Sets the font size. |
void |
setInset(double left,
double bottom,
double right,
double top)
Sets the spacing between the text and the sides of the box. |
void |
setLabel(java.lang.String label)
Sets the label for the callout text object. |
void |
setLabelColor(AimsColor color)
Sets the color of the label. |
void |
setLabelOffset(AimsPoint pt)
Sets the point associated with this object. |
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 |
setPolygonSymbol(AimsSimplePolygonSymbol symbol)
Sets the symbol used for drawing the callout box. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
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 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 AimsCalloutTextObject()
| Method Detail |
public void setInset(double left,
double bottom,
double right,
double top)
left - The left side spacing, in pixels.bottom - The bottom side spacing, in pixels.right - The right side spacing, in pixels.top - The top side spacing, in pixels.public void setLabel(java.lang.String label)
label - The text to appear in the callout.public void setLabelColor(AimsColor color)
color - An AimsColor object.public void setFontName(java.lang.String name)
name - The name of the font.public void setFontSize(int size)
size - The font size, in points.public void setPolygonSymbol(AimsSimplePolygonSymbol symbol)
symbol - The symbol used to draw the callout box.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 AimsAcetateObject
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 AimsPoint getPoint()
public AimsEnvelope getExtent()
getExtent in interface AimsAcetateObjectpublic void setArrowPosition(AimsPoint pt)
pt - The point.public void setLabelOffset(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.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 | |||||||||