|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsScalebarObject
Implementation of an ArcIMS scalebar object which can be placed in an Acetate layer of a map.
| Field Summary |
| Constructor Summary | |
AimsScalebarObject()
Creates new AimsScalebar |
|
AimsScalebarObject(AimsMap map)
Creates new AimsScalebar with a map object. |
|
| Method Summary | |
java.lang.Object |
clone()
|
int |
getAcetateObjectType()
Gets the acetate object type. |
AimsEnvelope |
getExtent()
Always returns null. |
java.lang.Object |
getObjectTag()
Gets the object tag. |
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. |
int |
getUnits()
|
java.lang.String |
getUnitsString()
|
boolean |
hasProperties()
Returns an indicator of whether the object has programmer defined properties. |
void |
setAntialiasing(boolean antialiasing)
Sets the value of attribute antialising. |
void |
setBarColor(AimsColor barColor)
Sets the color of the scalebar. |
void |
setBarTransparency(double barTransparency)
Sets the value of the scale bar's transparency. |
void |
setBarWidth(int barWidth)
Sets the width of the scale bar. |
void |
setBestPrecision(double mapUnitsPerPixel)
|
void |
setCoordsys(AimsCoordsys coordsys)
Sets the coordsys for this object. |
void |
setDistance(double distance)
Sets the value of attribute distance. |
void |
setFont(java.lang.String font)
Sets the value of attribute font. |
void |
setFontColor(AimsColor color)
Sets the value of attribute fontColor. |
void |
setFontSize(int fontSize)
Sets the value of attribute fontSize. |
void |
setFontStyle(java.lang.String fontStyle)
Sets the value of attribute fontStyle. |
void |
setLocation(double x,
double y)
Sets the location of the scalebar. |
void |
setMapUnits(java.lang.String mapUnits)
Sets the mapunits. |
void |
setMaxScale(double scale,
AimsMap map)
|
void |
setMaxScaleFactor(double unitsPerPixel)
|
void |
setMinScale(double scale,
AimsMap map)
|
void |
setMinScaleFactor(double unitsPerPixel)
|
void |
setMode(java.lang.String mode)
|
void |
setObjectTag(java.lang.Object tag)
Sets an object tag for this object. |
void |
setOutline(AimsColor color)
Sets the value of attribute outline. |
void |
setOverlap(boolean overlap)
Sets the value of attribute overlap. |
void |
setPrecision(int precision)
Sets the value of attribute precision. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setRound(double round)
Sets the value of attribute round. |
void |
setScaleUnits(java.lang.String scaleUnits)
Sets the value of attribute scaleUnits. |
void |
setScreenLength(int screenLength)
Sets the value of attribute screenLength. |
void |
setTextTransparency(double transparency)
Sets the value of this object's transparency. |
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 string containing a text description of this object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AimsScalebarObject()
public AimsScalebarObject(AimsMap map)
map - The map to scale the output.| 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 java.lang.Object clone()
clone in interface AimsAcetateObjectpublic void setBestPrecision(double mapUnitsPerPixel)
public void setCoordsys(AimsCoordsys coordsys)
coordsys - The coordsys for this object.
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 void setMode(java.lang.String mode)
public void setLocation(double x,
double y)
x - The x location of the scalebar.y - The y location of the scalebar.public void setAntialiasing(boolean antialiasing)
antialiasing - The attribute value.public void setBarColor(AimsColor barColor)
barColor - The color of the scalebar.public void setBarTransparency(double barTransparency)
public void setBarWidth(int barWidth)
barWidth - The width of the scale bar (default = 5).public void setFont(java.lang.String font)
font - The attribute value.public void setFontColor(AimsColor color)
color - The attribute value.public void setFontSize(int fontSize)
fontSize - The attribute value.public void setFontStyle(java.lang.String fontStyle)
fontStyle - The attribute value.public void setMapUnits(java.lang.String mapUnits)
mapUnits - The map units for the map (degrees, meters, or feet).public void setOutline(AimsColor color)
color - The attribute value.public void setOverlap(boolean overlap)
overlap - The attribute value.public void setPrecision(int precision)
precision - The attribute value.public void setRound(double round)
round - The attribute value.public void setScaleUnits(java.lang.String scaleUnits)
scaleUnits - The attribute value (miles | feet | meters | kilometers).public void setScreenLength(int screenLength)
screenLength - The length of the scalebar object in pixels.public void setDistance(double distance)
distance - The distance of the scalebar object in mapunits.public void setTextTransparency(double transparency)
transparency - The transparency value (0.0 - 1.0).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 AimsEnvelope getExtent()
getExtent in interface AimsAcetateObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||