|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsAcetateLayer
Implementation of an ArcIMS acetate layer which is used to mark up a map with text, scalebar, north arrow, and other objects.
| Field Summary |
| Fields inherited from interface com.moximedia.aims.AimsObject |
OBJECT_TYPE_ACETATE_LAYER, OBJECT_TYPE_FEATURE_LAYER, OBJECT_TYPE_FOLDER, OBJECT_TYPE_FOLDERS, OBJECT_TYPE_GROUP, OBJECT_TYPE_GROUPS, OBJECT_TYPE_IMAGE_LAYER, OBJECT_TYPE_WMS_LAYER |
| Fields inherited from interface com.moximedia.aims.AimsLayer |
LAYER_TYPE_ACETATE, LAYER_TYPE_FEATURE, LAYER_TYPE_IMAGE, LAYER_TYPE_WMS |
| Constructor Summary | |
AimsAcetateLayer()
Creates a new AimsAcetateLayer with no arguments. |
|
AimsAcetateLayer(java.lang.String layerName)
Creates a new AimsAcetateLayer with a specified name. |
|
AimsAcetateLayer(java.lang.String id,
java.lang.String layerName)
Creates a new AimsAcetateLayer with a specified name and ID. |
|
| Method Summary | |
void |
addLayerListLegend(AimsLayerListLegend legend)
Adds a layer list legend. |
void |
addObject(AimsAcetateObject obj)
Adds an acetate object (AimsNorthArrowObject, AimsPointObject, etc.) to the AimsAcetateLayer. |
void |
adjustScaleFactors(double multiplier)
Adjusts the scale factors for this layer. |
void |
adjustScaleFactors(java.lang.String inUnits,
java.lang.String outUnits)
Adjusts the scale factors for this layer. |
boolean |
canEdit()
Gets a boolean value indicating whether a layer can be edited. |
boolean |
canFindByAttribute()
Gets a boolean value indicating whether a layer can be queried using the find location by attribute tool. |
boolean |
canHideLabels()
Returns a boolean value indicating whether labels can be hidden. |
boolean |
canHideLayerListLegend()
Gets and indicator of whether the legend could be shown, true regardless of whether or not it is turned off. |
boolean |
canSelectByAttribute()
Gets a boolean value indicating whether a layer can be queried using the select location by attribute tool. |
boolean |
canShowLayerListLegend()
Gets and indicator of whether the legend could be shown, true regardless of whether or not it is turned off. |
void |
clearObjects()
Removes all objects from the acetate layer. |
java.lang.Object |
clone()
Creates a copy of this object. |
boolean |
getAddToDefaultFolder()
Returns whether the acetate layer should be added to the default All Layers folder when no other folders have been defined. |
java.lang.String |
getAlias()
Get the alias of the acetate layer |
boolean |
getCanClear()
Reports whether the user can clear the layer using the clear tool. |
boolean |
getCanDrillIdentify()
Gets a boolean value indicating whether the layer can be identified using the drill down identify tool. |
boolean |
getCanIdentify()
Returns a boolean value indicating whether the acetate layer can be queried using the identify tools. |
boolean |
getCanSelect()
Returns true if the layer is selectable. |
boolean |
getCanSetVisibility()
Gets a boolean value indicating whether the layer can be turned on and off by the user. |
boolean |
getCanSetVisibilityBeyondScale()
Gets a boolean value indicating whether the layer can be turned on and off by the user when the layer is beyond scale. |
boolean |
getCanSymbolize()
Gets an indicator of whether the layer can be symbolized. |
boolean |
getCanZoomToLayer()
Returns a boolean indicator of whether the zoom to layer extent function should be enabled for this layer. |
AimsEnvelope |
getExtent()
Returns the extent of the layer. |
java.lang.String |
getId()
Gets the ID of the acetate layer |
boolean |
getImmediateRefresh()
Returns whether the map should immediately refresh when the map layer visibility is changed. |
AimsLayerListLegend |
getLayerListLegend()
Gets and indicator of whether a layer list legend exists at this scale. |
AimsLayerListLegends |
getLayerListLegends()
Gets the array of layer list legends for this layer. |
int |
getLayerType()
Gets the layer type, AimsLayer.LAYER_TYPE_ACETATE |
boolean |
getLegendVisible()
Returns whether the layer should be visible in the legend. |
AimsMap |
getMap()
Gets the parent map for this layer |
double |
getMaxScale()
Gets the maximum scale at which the acetate layer will be visible. |
java.lang.String |
getMetadataHandler()
Returns the URL of the metadata handler page for this layer, or null if no metatata handler is defined. |
java.lang.String |
getMetadataUrl()
Returns the URL to the metadata page for this layer, or null if no metatata URL is defined. |
double |
getMinScale()
Gets the minimum scale at which the acetate layer will be visible. |
java.lang.String |
getName()
Gets the name of the acetate layer |
AimsAcetateObject |
getObject(int index)
Returns the acetate object at the specified index. |
int |
getObjectCount()
Returns the number of objects contained in the acetate layer. |
int |
getObjectId()
Returns the IMF internal id for this layer. |
int |
getObjectType()
Gets the type of object this is. |
java.lang.String |
getProperty(java.lang.String name)
Gets the value of a property set in the configuration XML using a <property> element. |
AimsRecordset |
getRecordset()
Gets the recordset for the layer. |
AimsRenderer |
getRenderer()
Gets the renderer used for the layer. |
boolean |
getShowSymbolizeIcon()
Gets an indicator of whether the symbolize icon shows up in the layer list. |
java.lang.Object |
getTag()
Gets the user defined object tag assosciated with this object. |
java.lang.String |
getType()
Gets the layer type. |
boolean |
getVisible()
Returns a boolean value indicating whether the acetate layer visibility is set. |
boolean |
hasLayerListLegend()
Gets and indicator of whether a layer list legend exists at this scale. |
boolean |
hasObjectsVisible()
Returns an indicator of whether objects are visible in the current map extent. |
boolean |
insertObject(AimsAcetateObject obj,
int index)
Adds an acetate object (AimsNorthArrowObject, AimsPointObject, etc.) to the AimsAcetateLayer. |
boolean |
isBufferLayer()
Returns an indicator of whether the layer is a buffer layer. |
boolean |
isClone()
Returns a boolean flag indicating that the layer is a clone. |
boolean |
isDynamic()
Returns a boolean flag indicating whether the layer has been dynamically added. |
boolean |
isHighlightLayer()
Returns true if the layer is a highlight layer. |
boolean |
isLayerWithinThreshold()
Returns whether this layer is within threshold tolerance. |
boolean |
isServiceLayer()
Returns true if this layer exists in the map service, or false if it was added after. |
boolean |
isUploadedLayer()
Gets an indicator of whether the layer is a layer uploaded by the upload routines. |
boolean |
labelsHidden()
Returns a boolean value indicating whether labels are currently hidden. |
boolean |
removeObject(int index)
Removes the object at the specified index. |
void |
setAddToDefaultFolder(boolean flag)
Sets whether the acetate layer should be added to the default All Layers folder when no other folders have been defined. |
void |
setAlias(java.lang.String alias)
Sets the alias of the acetate layer. |
void |
setCanClear(boolean canClear)
Sets whether the user can clear the layer using the clear tool. |
void |
setCanIdentify(boolean flag)
Sets the layer to identifiable. |
void |
setCanSetVisibility(boolean canSetVisibility)
Sets whether the layer can be turned on and off by the user. |
void |
setCanSetVisibilityBeyondScale(boolean canSetVisibility)
Sets whether the layer can be turned on and off by the user. |
void |
setCanSymbolize(boolean canSymbolize)
Sets whether the layer can be symbolized. |
void |
setCanZoomToLayer(boolean canZoom)
Sets whether the zoom to layer extent function should be enabled for this layer. |
void |
setCoordsys(AimsCoordsys coordsys)
Sets the coordsys for the layer for on-the-fly projection. |
void |
setExtent(AimsEnvelope envelope)
Sets the envelope (extent) of the layer. |
void |
setId(java.lang.String id)
Sets the ID of the acetate layer. |
void |
setLegendVisible(boolean isVisible)
Sets the visibility of the layer in the legend. |
void |
setMap(AimsMap map)
Sets the map object that this layer belongs to. |
void |
setMaxScale(double scale)
Sets the maximum scale that the acetate layer will be displayed. |
void |
setMinScale(double scale)
Sets the minimum scale that the acetate layer will be displayed. |
void |
setModified(boolean isModified)
Sets the modified flag to control how much AXL is written to the application server. |
void |
setName(java.lang.String name)
Sets the name of the acetate layer. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setShowSymbolizeIcon(boolean showSymbolizeIcon)
Sets whether the symbolize icon is displayed in the layer list. |
void |
setTag(java.lang.Object tag)
Sets the user defined object associated to this object. |
void |
setUploadedLayer(boolean flag)
Sets whether the layer is a layer uploaded by the upload routines. |
void |
setVisible(boolean isVisible)
Sets the layer visibility. |
void |
showLabels(boolean showLabels)
Sets a layer to show without labels. |
java.lang.String |
toAxlString(java.lang.String requestType)
Returns the AXL string to refresh this object. |
java.lang.String |
toAxlString(java.lang.String requestType,
boolean forceVisible)
Returns the AXL string to refresh this object. |
java.lang.String |
toString()
Returns 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 AimsAcetateLayer()
public AimsAcetateLayer(java.lang.String layerName)
layerName - The name of the new layer.
public AimsAcetateLayer(java.lang.String id,
java.lang.String layerName)
id - The id of the layer.layerName - The name for the layer.| Method Detail |
public void addLayerListLegend(AimsLayerListLegend legend)
addLayerListLegend in interface AimsLayerlegend - The legend to add.public boolean hasLayerListLegend()
hasLayerListLegend in interface AimsLayerpublic AimsLayerListLegend getLayerListLegend()
getLayerListLegend in interface AimsLayerpublic AimsLayerListLegends getLayerListLegends()
getLayerListLegends in interface AimsLayerpublic boolean getCanClear()
public void setCanClear(boolean canClear)
canClear - True if the user can clear it, otherwize false.public boolean canHideLayerListLegend()
canHideLayerListLegend in interface AimsLayerpublic boolean canShowLayerListLegend()
canShowLayerListLegend in interface AimsLayerpublic java.lang.Object clone()
clone in interface AimsLayerpublic void setCoordsys(AimsCoordsys coordsys)
coordsys - The coordsys of the layer.public int getLayerType()
getLayerType in interface AimsLayerpublic boolean getImmediateRefresh()
getImmediateRefresh in interface AimsLayerpublic boolean getLegendVisible()
getLegendVisible in interface AimsLayerpublic void setLegendVisible(boolean isVisible)
setLegendVisible in interface AimsLayerisVisible - A boolean value indicating whether the layer should be
visible in the legend.public int getObjectId()
getObjectId in interface AimsLayerpublic boolean isServiceLayer()
isServiceLayer in interface AimsLayerpublic void clearObjects()
public int getObjectCount()
public boolean removeObject(int index)
index - The zero based index of the object.
public AimsAcetateObject getObject(int index)
index - The zero based index for the desired object.
public void addObject(AimsAcetateObject obj)
obj - An acetate object to add to the acetate layer.
public boolean insertObject(AimsAcetateObject obj,
int index)
obj - An acetate object to add to the acetate layer.index - The position in the object list to insert the object.
public boolean getCanIdentify()
getCanIdentify in interface AimsLayerpublic void setCanIdentify(boolean flag)
flag - An indicator of whether the layer is identifiable.public boolean getVisible()
getVisible in interface AimsLayerpublic void setVisible(boolean isVisible)
setVisible in interface AimsLayerisVisible - True if the layer should display, otherwise false.public java.lang.String getType()
getType in interface AimsLayerpublic void setMinScale(double scale)
setMinScale in interface AimsLayerscale - The minimum scale that the acetate layer will be displayed.public void setMaxScale(double scale)
setMaxScale in interface AimsLayerscale - The maximum scale that the acetate layer will be displayed.public AimsRenderer getRenderer()
getRenderer in interface AimsLayerpublic AimsRecordset getRecordset()
getRecordset in interface AimsLayerpublic double getMinScale()
getMinScale in interface AimsLayerpublic double getMaxScale()
getMaxScale in interface AimsLayerpublic java.lang.String getId()
getId in interface AimsLayerpublic void setId(java.lang.String id)
id - The ID to assign to the acetate layer.public java.lang.String getName()
getName in interface AimsLayerpublic void setName(java.lang.String name)
name - The name to assign to the acetate layer.public java.lang.String getAlias()
getAlias in interface AimsLayerpublic void setAlias(java.lang.String alias)
alias - The alias to assign to the acetate layer.public java.lang.String toString()
toString in interface AimsLayerpublic java.lang.String toAxlString(java.lang.String requestType)
toAxlString in interface AimsLayerrequestType - The type of request for which AXL should be written.
valid values are "LAYERDEF" and "LAYER".
public java.lang.String toAxlString(java.lang.String requestType,
boolean forceVisible)
toAxlString in interface AimsLayerrequestType - The type of AXL requested. Valid values are "LAYER" and "LAYERDEF".forceVisible - A flag to indicate that the layer should be drawn even if not visible.
public boolean isHighlightLayer()
isHighlightLayer in interface AimsLayerpublic boolean getCanSelect()
getCanSelect in interface AimsLayerpublic java.lang.String getMetadataHandler()
getMetadataHandler in interface AimsLayerpublic java.lang.String getMetadataUrl()
getMetadataUrl in interface AimsLayerpublic void setModified(boolean isModified)
setModified in interface AimsLayerisModified - True to force a full AXL string.public boolean getCanSetVisibility()
getCanSetVisibility in interface AimsLayerpublic void setCanSetVisibility(boolean canSetVisibility)
canSetVisibility - True if the layer visibility can be controlled by the user, otherwise false.public boolean getCanSetVisibilityBeyondScale()
getCanSetVisibilityBeyondScale in interface AimsLayerpublic void setCanSetVisibilityBeyondScale(boolean canSetVisibility)
canSetVisibility - True if the layer can be identified, otherwise false.public void setMap(AimsMap map)
setMap in interface AimsLayermap - The map object containing this layer.public boolean isClone()
isClone in interface AimsLayerpublic boolean isDynamic()
isDynamic in interface AimsLayerpublic boolean canFindByAttribute()
canFindByAttribute in interface AimsLayerpublic boolean canSelectByAttribute()
canSelectByAttribute in interface AimsLayerpublic boolean canEdit()
canEdit in interface AimsLayerpublic void showLabels(boolean showLabels)
showLabels in interface AimsLayershowLabels - Has no effect on acetate layers.public boolean canHideLabels()
canHideLabels in interface AimsLayerpublic boolean labelsHidden()
labelsHidden in interface AimsLayerpublic void setExtent(AimsEnvelope envelope)
setExtent in interface AimsLayerenvelope - The envelope (extent) of the layer.public AimsEnvelope getExtent()
getExtent in interface AimsLayerpublic AimsMap getMap()
getMap in interface AimsLayerpublic boolean isLayerWithinThreshold()
isLayerWithinThreshold in interface AimsLayerpublic boolean isBufferLayer()
isBufferLayer in interface AimsLayerpublic boolean getCanDrillIdentify()
getCanDrillIdentify in interface AimsLayerpublic java.lang.String getProperty(java.lang.String name)
getProperty in interface AimsLayername - The property name
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface AimsLayername - The property namevalue - The property value.public boolean getCanZoomToLayer()
getCanZoomToLayer in interface AimsLayerpublic void setCanZoomToLayer(boolean canZoom)
canZoom - True if the user can zoom to this layer, otherwise false.public java.lang.Object getTag()
getTag in interface AimsLayerpublic void setTag(java.lang.Object tag)
setTag in interface AimsLayertag - Any Object.public boolean getAddToDefaultFolder()
public void setAddToDefaultFolder(boolean flag)
flag - True if the layer should be added, otherwise false.public boolean getCanSymbolize()
getCanSymbolize in interface AimsLayerpublic void setCanSymbolize(boolean canSymbolize)
canSymbolize - True if the layer can be symbolized, otherwise false;public boolean getShowSymbolizeIcon()
getShowSymbolizeIcon in interface AimsLayerpublic void setShowSymbolizeIcon(boolean showSymbolizeIcon)
showSymbolizeIcon - True if the icon is displayed, otherwise false;public boolean isUploadedLayer()
public void setUploadedLayer(boolean flag)
flag - True if the layer is an upload layer, otherwise false
public void adjustScaleFactors(java.lang.String inUnits,
java.lang.String outUnits)
adjustScaleFactors in interface AimsLayerinUnits - The original units, "METERS", FEET" or "DECIMAL_DEGREES".outUnits - The target units, "METERS", FEET" or "DECIMAL_DEGREES".public void adjustScaleFactors(double multiplier)
adjustScaleFactors in interface AimsLayermultiplier - The multiplication factor for
adjusting scale factors.public int getObjectType()
getObjectType in interface AimsObjectpublic boolean hasObjectsVisible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||