|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsImageLayer
The AimsImageLayer class represents an image based layer. There is no recordset associated with an image layer.
| Field Summary | |
java.util.HashMap |
m_properties
|
| 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 | |
AimsImageLayer()
Do not use. |
|
AimsImageLayer(AimsMap map)
Creates an image layer object and associates it to a map. |
|
| Method Summary | |
void |
addLayerListLegend(AimsLayerListLegend legend)
Adds a layer list legend. |
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. |
java.lang.Object |
clone()
|
java.lang.String |
getAlias()
get alias of the layer |
AimsBands |
getBands()
Gets the image pixel information received from a GET_RASTER_INFO request. |
boolean |
getCanDrillIdentify()
Gets a boolean value indicating whether the layer can be identified using the drill down identify tool. |
boolean |
getCanIdentify()
Gets a boolean value indicating whether the layer can be identified. |
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()
get ID of the layer |
java.lang.String |
getIdentifyHandler()
Gets the identify handler URL for the layer. |
boolean |
getIdentifyWindow()
Gets whether a separate identify window is used for the 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 group. |
AimsImageLayer |
getLayerManagerCopy(AimsMap map)
Creates a copy of this layer for use in another map. |
int |
getLayerType()
Gets the layer type, AimsLayer.LAYER_TYPE_IMAGE |
boolean |
getLegendVisible()
Returns whether the layer should be visible in the legend. |
AimsMap |
getMap()
Gets the map object containing this layer. |
double |
getMaxScale()
Get the maximum scale that the layer is 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()
Get the minimum scale that the layer is visible |
java.lang.String |
getName()
get name of the 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()
|
AimsRenderer |
getRenderer()
|
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()
Returns the layer type. |
boolean |
getVisible()
Determine if the layer is visible |
boolean |
hasLayerListLegend()
Gets and indicator of whether a layer list legend exists at this scale. |
boolean |
isBufferLayer()
|
boolean |
isClone()
|
boolean |
isDynamic()
returns an indicator of whether a layer is dynamic. |
boolean |
isHighlightLayer()
Returns true if the layer is a highlight layer. |
boolean |
isLayerWithinThreshold()
Returns whether this layer is within threshold tolerance. |
boolean |
isServiceLayer()
Returns a flag indicating whether this layer was loaded from a map service. |
boolean |
isVisible()
Determine if the layer is visible |
boolean |
labelsHidden()
Returns a boolean value indicating whether labels are currently hidden. |
boolean |
query(AimsPoint pt)
Queries an image layer, returning the image pixel information for the specified location. |
boolean |
query(double x,
double y)
Queries an image layer, returning the image pixel information for the specified location |
void |
setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
|
void |
setCanDrillIdentify(boolean canDrillIdentify)
Sets whether the layer can be identified using the drill down identify tool. |
void |
setCanIdentify(boolean canIdentify)
Sets whether the layer can be identified. |
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 |
setCanZoomToLayer(boolean canZoom)
Sets whether the zoom to layer extent function should be enabled for this layer. |
void |
setDataset(AimsDataset ds)
Sets the dataset, for use with dynamic layers. |
void |
setExtent(AimsEnvelope envelope)
Sets the envelope (extent) of the layer. |
protected void |
setId(java.lang.String id)
Sets the id for the layer. |
void |
setLegendVisible(boolean isVisible)
Sets the visibility of the layer in the legend. |
void |
setMap(AimsMap map)
Sets the map that this layer belongs to if it isn't null, |
void |
setMaxScale(double scale)
|
void |
setMinScale(double scale)
|
void |
setModified(boolean isModified)
|
void |
setName(java.lang.String name)
Sets the name of the layer. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setTag(java.lang.Object tag)
Sets the user defined object associated to this object. |
void |
setTransparency(double value)
Sets the opaqueness for the image layer. |
void |
setTransparencyColor(AimsColor color)
Sets the transparency color for the image layer. |
void |
setVisible(boolean visible)
turn on/off the layer |
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 |
toString()
Returns a text representation of of this class. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.util.HashMap m_properties
| Constructor Detail |
public AimsImageLayer()
public AimsImageLayer(AimsMap map)
map - The map object containing this layer.| Method Detail |
public void addLayerListLegend(AimsLayerListLegend legend)
addLayerListLegend in interface AimsLayerlegend - The legend to add.public void setDataset(AimsDataset ds)
public boolean isDynamic()
isDynamic in interface AimsLayerpublic boolean hasLayerListLegend()
hasLayerListLegend in interface AimsLayerpublic AimsLayerListLegend getLayerListLegend()
getLayerListLegend in interface AimsLayerpublic AimsLayerListLegends getLayerListLegends()
getLayerListLegends in interface AimsLayerpublic boolean canHideLayerListLegend()
canHideLayerListLegend in interface AimsLayerpublic boolean canShowLayerListLegend()
canShowLayerListLegend in interface AimsLayerpublic AimsImageLayer getLayerManagerCopy(AimsMap map)
map - The map where this layer will be copied to.
public int getObjectId()
getObjectId in interface AimsLayerpublic int getLayerType()
getLayerType in interface AimsLayerpublic AimsMap getMap()
getMap in interface AimsLayerpublic boolean query(AimsPoint pt)
pt - The location.
public boolean query(double x,
double y)
x - The X coordinate value.y - The Y coordinate value.
public AimsBands getBands()
public 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 java.lang.String getType()
getType in interface AimsLayerpublic java.lang.String getId()
getId in interface AimsLayerpublic boolean isLayerWithinThreshold()
isLayerWithinThreshold in interface AimsLayerpublic boolean isServiceLayer()
isServiceLayer in interface AimsLayerprotected void setId(java.lang.String id)
id - The id for the layer. Should be numeric.public java.lang.String getName()
getName in interface AimsLayerpublic java.lang.String getAlias()
getAlias in interface AimsLayerpublic boolean getCanSetVisibility()
getCanSetVisibility in interface AimsLayerpublic void setCanSetVisibility(boolean canSetVisibility)
canSetVisibility - True if the layer can be identified, otherwise false.public boolean getCanSetVisibilityBeyondScale()
getCanSetVisibilityBeyondScale in interface AimsLayerpublic void setCanSetVisibilityBeyondScale(boolean canSetVisibility)
public void setName(java.lang.String name)
name - The layer name.public void setMinScale(double scale)
setMinScale in interface AimsLayerpublic void setMaxScale(double scale)
setMaxScale in interface AimsLayerpublic AimsRenderer getRenderer()
getRenderer in interface AimsLayerpublic AimsRecordset getRecordset()
getRecordset in interface AimsLayerpublic double getMaxScale()
getMaxScale in interface AimsLayerpublic double getMinScale()
getMinScale in interface AimsLayerpublic boolean getVisible()
getVisible in interface AimsLayerpublic boolean isVisible()
public void setVisible(boolean visible)
setVisible in interface AimsLayervisible - true if turn on
public void setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
public java.lang.String toString()
toString in interface AimsLayerpublic java.lang.String toAxlString(java.lang.String requestType)
toAxlString in interface AimsLayerrequestType - The type of AXL requested. Valid values are "LAYER" and "LAYERDEF".
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 AimsLayerpublic void setMap(AimsMap map)
setMap in interface AimsLayermap - The map that this layer is part of.public boolean isClone()
isClone in interface AimsLayerpublic java.lang.Object clone()
clone 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 image 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 java.lang.String getIdentifyHandler()
public boolean getIdentifyWindow()
public boolean getCanIdentify()
getCanIdentify in interface AimsLayerpublic void setCanIdentify(boolean canIdentify)
public boolean isBufferLayer()
isBufferLayer in interface AimsLayerpublic boolean getCanDrillIdentify()
getCanDrillIdentify in interface AimsLayerpublic void setCanDrillIdentify(boolean canDrillIdentify)
public 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 getCanSymbolize()
getCanSymbolize in interface AimsLayerpublic boolean getShowSymbolizeIcon()
getShowSymbolizeIcon in interface AimsLayer
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 void setTransparency(double value)
value - Value to set percentage of transparency.
1.0 is 0 percent transparent. 0.0 is 100
percent transparent.public void setTransparencyColor(AimsColor color)
color - The transparent color.public int getObjectType()
getObjectType in interface AimsObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||