|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsNorthArrowObject
Implementation of an ArcIMS north arrow acetate object which can be placed in an Acetate layer of a map. Note that custom arrow objects cannot be defined with this object, but you can use a point object to add custom north arrows instead, and set the angle of the symbol using the static method getMapAngle(AimsMap map).
| Field Summary |
| Constructor Summary | |
AimsNorthArrowObject()
Creates new AimsNorthArrowObject |
|
AimsNorthArrowObject(AimsMap map)
Creates new AimsNorthArrowObject for a specified map. |
|
AimsNorthArrowObject(AimsMap map,
int size)
Creates new AimsNorthArrowObject for a specified map. |
|
AimsNorthArrowObject(AimsMap map,
Projection prj,
int size)
|
|
| Method Summary | |
java.lang.Object |
clone()
Creates a copy of this object. |
int |
getAcetateObjectType()
Gets the acetate object type. |
AimsEnvelope |
getExtent()
Always returns null. |
static double |
getMapAngle(AimsMap map)
Gets the map angle of the specified map centre. |
static double |
getMapAngle(AimsMap map,
Projection prj)
Gets the map angle of the specified map centre. |
double |
getMaxScale()
Returns the maximum scale that the object will be displayed. |
double |
getMinScale()
Returns the minimum scale that the object will be displayed. |
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 |
setAngle(double angle)
Sets the value of attribute angle. |
void |
setAntialiasing(boolean antialiasing)
Sets the value of attribute antialising. |
void |
setCoordsys(AimsCoordsys coordsys)
Sets the coordsys for this object. |
void |
setLocation(double x,
double y)
Sets the location of the north arrow. |
void |
setMapAngle(AimsMap map)
Sets the north arrow angle to the angle of the specified map centre. |
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 |
setOutline(AimsColor color)
Sets the value of attribute outline. |
void |
setOverlap(boolean overlap)
Sets the value of attribute overlap. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setShadow(AimsColor color)
Sets the value of attribute shadow. |
void |
setSize(int size)
Sets the size of the north arrow. |
void |
setTransparency(double transparency)
Sets the value of this object's transparency. |
void |
setType(int arrowType)
Sets the value of the north arrow's arrow type. |
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 AimsNorthArrowObject()
public AimsNorthArrowObject(AimsMap map)
map - The map to use to position the north arrow.
public AimsNorthArrowObject(AimsMap map,
int size)
map - The map to use to position the north arrow.size - The size of the north arrow
public AimsNorthArrowObject(AimsMap map,
Projection prj,
int size)
| 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 setCoordsys(AimsCoordsys coordsys)
coordsys - The coordsys for this object.public double getMaxScale()
public double getMinScale()
public static double getMapAngle(AimsMap map,
Projection prj)
map - An AimsMap object for which the angle is requested.prj - The projection of the map.Note that
public static double getMapAngle(AimsMap map)
map - An AimsMap object for which the angle is requested. Note that
this method should be used on BC Albers projection maps only.public void setMapAngle(AimsMap map)
map - An AimsMap object for which the angle should apply. Note that
this method should be used on BC Albers projection maps only
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 setLocation(double x,
double y)
x - The x location of the north arrow.y - The y location of the north arrow.public void setType(int arrowType)
arrowType - The arrow type (1 - 8).public void setAngle(double angle)
angle - The attribute value.public void setAntialiasing(boolean antialiasing)
antialiasing - The attribute value.public void setOutline(AimsColor color)
color - The attribute value.public void setOverlap(boolean overlap)
overlap - The attribute value.public void setShadow(AimsColor color)
color - The attribute value.public void setSize(int size)
size - The size of the north arrow.public void setTransparency(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 | |||||||||