|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.acetate.AcetateLayer
Implementation of a graphic layer for drawing on a map.
| Field Summary |
| Fields inherited from interface com.moximedia.ows.types.LayerType |
LAYER_TYPE_ACETATE, LAYER_TYPE_WFS, LAYER_TYPE_WMS |
| Fields inherited from interface com.moximedia.ows.types.GeometryType |
GEOMETRY_TYPE_COLLECTION, GEOMETRY_TYPE_ENVELOPE, GEOMETRY_TYPE_LINE, GEOMETRY_TYPE_MULTILINE, GEOMETRY_TYPE_MULTIPOINT, GEOMETRY_TYPE_MULTIPOLYGON, GEOMETRY_TYPE_POINT, GEOMETRY_TYPE_POLYGON, GEOMETRY_TYPE_UNKNOWN |
| Fields inherited from interface com.moximedia.ows.types.LayerIdentifyType |
LAYER_IDENTIFY_TYPE_DEFAULT, LAYER_IDENTIFY_TYPE_NONE, LAYER_IDENTIFY_TYPE_URL_APPEND_FIELD_VALUE, LAYER_IDENTIFY_TYPE_URL_FIELD_VALUES, LAYER_IDENTIFY_TYPE_URL_INSERT_FIELD_VALUE, LAYER_IDENTIFY_TYPE_URL_MULTIPLE_FIELD_VALUES |
| Constructor Summary | |
AcetateLayer()
Creates new AcetateLayer |
|
AcetateLayer(java.lang.String name)
Creates new AcetateLayer |
|
| Method Summary | |
void |
add(AcetateObject object)
|
void |
clear()
|
java.lang.Object |
clone()
|
void |
draw(java.awt.Graphics2D graphics,
java.awt.geom.AffineTransform pageTransform,
java.util.Locale locale)
|
boolean |
getCanClear()
Reports whether the user can clear the layer using the clear tool. |
boolean |
getCanCopy()
|
boolean |
getCanDrillIdentify()
Gets a boolean value indicating whether the layer can be identified using the drill down identify tool. |
boolean |
getCanEdit()
|
boolean |
getCanIdentify()
Returns an indicator of whether the layer can be identified. |
boolean |
getCanSetVisibility()
Gets a boolean value indicating whether the layer can be turned on and off by the user. |
boolean |
getCanSnapTo()
|
int |
getGeometryType()
Gets the geometry type enumerator, if one is set for this layer. |
java.lang.String |
getHighlightedLayerName()
|
java.lang.String |
getId()
Gets the user defined id for this layer. |
java.lang.String |
getIdentifyHandler()
Gets the identify handler script used for this layer. |
java.lang.String |
getIdentifySuffix()
Gets the suffix used in the append type of identify handler. |
int |
getIdentifyType()
Gets the identify type enumerator. |
boolean |
getIdentifyWindow()
Returns whether the identify report should open in a popup window. |
boolean |
getImmediateRefresh()
Returns an indicator of whether the map should immediately refresh when the layer's visibility is changed. |
LayerListLegends |
getLayerListLegends()
Gets the layer list legends object for this layer, or null if there are no layer list legends. |
int |
getLayerType()
Get the layer type enumerator. |
java.lang.String |
getLegendUrl()
Gets the URL to the legend for this layer. |
double |
getMaxScale()
Gets the maximum scale at which the layer will be displayed. |
java.lang.String |
getMetadataUrl()
Gets the URL for metadata associated with this layer. |
double |
getMinScale()
Gets the minimum scale at which the layer will be displayed. |
java.lang.String |
getName()
Gets the name of this layer. |
AcetateObject |
getObject(int index)
|
int |
getObjectId()
Returns the IMF internal id for this layer. |
java.util.ArrayList |
getObjects()
|
java.lang.Object |
getObjectTag()
Gets the object tag. |
java.lang.String |
getProperty(java.lang.String name)
Gets the value of a property set in the configuration XML using a <PROPERTY> element. |
Recordset |
getRecordset()
Gets this layer's recordset containing query results. |
Service |
getService()
Gets the service supporting this layer, |
java.lang.String |
getTitle()
Gets the user displayed title for this layer. |
int |
getTransparency()
Gets the transparency of this layer, as a percentage. |
boolean |
getTransparent()
Reports whether the layer should be drawn transparent. |
boolean |
getVisible()
Returns an indicator of whether this layer is visible. |
boolean |
hasGeometry()
|
boolean |
isHighlightLayer()
|
boolean |
isNamed(java.lang.String name)
Checks to see if the name of this layer is that specified. |
boolean |
isObjectId(int id)
Checks to see if the object id of this layer is that specified. |
boolean |
isTitled(java.lang.String title)
Checks to see if the title of this layer is that specified. |
boolean |
isWithinScaleThreshold(double scale)
Returns whether this layer is within threshold tolerance. |
void |
remove(int index)
Removes the objects with the specified index. |
void |
remove(java.lang.String name)
Removes all objects with the specified name. |
void |
removeProperty(java.lang.String name)
Removes the specified property. |
void |
setCanClear(boolean canClear)
Sets whether the user can clear the layer using the clear tool. |
void |
setCanDrillIdentify(boolean flag)
Sets whether the layer can be identified. |
void |
setCanIdentify(boolean flag)
Sets whether the layer can be identified. |
void |
setHighlightedLayerName(java.lang.String name)
|
void |
setId(java.lang.String id)
Sets the user defined id for this layer. |
void |
setLayerListLegends(LayerListLegends legends)
Sets the layer list legends object for this layer. |
void |
setMaxScale(double scale)
Sets the maximum scale that this layer is visible. |
void |
setMinScale(double scale)
Sets the minimum scale that this layer is visible. |
void |
setName(java.lang.String name)
|
void |
setObjectTag(java.lang.Object tag)
Sets an object tag for this object. |
void |
setProjection(Projection projection)
Sets the projection for this layer. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a property (programmer defined). |
void |
setSrs(java.lang.String srs)
Sets the spatial reference system SRS of this layer. |
void |
setTransparency(int percentTransparent)
Sets the transparency of this layer, as a percentage. |
void |
setTransparent(boolean isTransparent)
Sets whether the layer should be drawn transparent. |
void |
setVisible(boolean isVisible)
Returns an indicator of whether the acetate layer is visible |
void |
setXmlAttribute(Map map,
java.lang.String element,
java.lang.String name,
java.lang.String value,
java.lang.String frameworkPath,
java.lang.String mapConfigPath)
Sets one of the attributes of this object using a string value. |
int |
size()
Returns the number of objects in the layer. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AcetateLayer()
public AcetateLayer(java.lang.String name)
name - The name of the acetate layer.| Method Detail |
public java.lang.Object clone()
public java.lang.String getHighlightedLayerName()
public void setHighlightedLayerName(java.lang.String name)
public void add(AcetateObject object)
public void clear()
public java.lang.String getId()
getId in interface Layerpublic void setId(java.lang.String id)
setId in interface Layerid - The user defined id.public LayerListLegends getLayerListLegends()
getLayerListLegends in interface Layerpublic void setLayerListLegends(LayerListLegends legends)
setLayerListLegends in interface Layerlegends - The layer list legends object to set for this layer.public void setObjectTag(java.lang.Object tag)
setObjectTag in interface Layertag - A programmer defined element to associate with this object.public java.lang.Object getObjectTag()
getObjectTag in interface Layerpublic java.lang.String getProperty(java.lang.String name)
getProperty in interface Layername - The property name
public void removeProperty(java.lang.String name)
removeProperty in interface Layername - The name of the property.
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface Layername - The property namevalue - The property value.public void remove(java.lang.String name)
name - The name of the objects that you want to remove.public void remove(int index)
public void draw(java.awt.Graphics2D graphics,
java.awt.geom.AffineTransform pageTransform,
java.util.Locale locale)
public boolean getCanClear()
public void setCanClear(boolean canClear)
canClear - True if the user can clear it, otherwize false.public boolean getCanCopy()
public boolean getCanEdit()
public boolean getCanDrillIdentify()
getCanDrillIdentify in interface Layerpublic void setCanDrillIdentify(boolean flag)
flag - True if the layer can be identified, otherwise false.public boolean getCanIdentify()
getCanIdentify in interface Layerpublic void setCanIdentify(boolean flag)
flag - True if the layer can be identified, otherwise false.public boolean getCanSetVisibility()
getCanSetVisibility in interface Layerpublic boolean getCanSnapTo()
public int getGeometryType()
Layer
getGeometryType in interface Layerpublic java.lang.String getIdentifyHandler()
Layer
getIdentifyHandler in interface Layerpublic java.lang.String getIdentifySuffix()
Layer
getIdentifySuffix in interface Layerpublic int getIdentifyType()
Layer
getIdentifyType in interface Layerpublic boolean getIdentifyWindow()
Layer
getIdentifyWindow in interface Layerpublic boolean getImmediateRefresh()
Layer
getImmediateRefresh in interface Layerpublic double getMaxScale()
getMaxScale in interface Layerpublic java.lang.String getMetadataUrl()
Layer
getMetadataUrl in interface Layerpublic double getMinScale()
getMinScale in interface Layerpublic int getObjectId()
Layer
getObjectId in interface Layerpublic AcetateObject getObject(int index)
public java.util.ArrayList getObjects()
public int getLayerType()
Layer
getLayerType in interface Layerpublic java.lang.String getLegendUrl()
Layer
getLegendUrl in interface Layerpublic java.lang.String getName()
Layer
getName in interface Layerpublic void setName(java.lang.String name)
public Recordset getRecordset()
Layer
getRecordset in interface Layerpublic Service getService()
Layer
getService in interface Layerpublic java.lang.String getTitle()
Layer
getTitle in interface Layerpublic boolean getVisible()
Layer
getVisible in interface Layerpublic boolean hasGeometry()
public boolean isWithinScaleThreshold(double scale)
isWithinScaleThreshold in interface Layerscale - The scale threshold.
public void setMaxScale(double scale)
Layer
setMaxScale in interface Layerscale - The maximum scale.public void setMinScale(double scale)
Layer
setMinScale in interface Layerscale - The minimum scale.public boolean isHighlightLayer()
public boolean isObjectId(int id)
Layer
isObjectId in interface Layerid - The id to check.
public boolean isNamed(java.lang.String name)
Layer
isNamed in interface Layername - The name to check.
public void setProjection(Projection projection)
Layer
setProjection in interface Layerprojection - The projection.public void setSrs(java.lang.String srs)
Layer
setSrs in interface Layersrs - The SRS code.public boolean isTitled(java.lang.String title)
Layer
isTitled in interface Layertitle - The title to check.
public void setTransparent(boolean isTransparent)
isTransparent - True if the layer should be drawn transparent, otherwise false.public boolean getTransparent()
getTransparent in interface Layerpublic void setVisible(boolean isVisible)
setVisible in interface LayerisVisible - True if the layer is visible, otherwise false.
public void setXmlAttribute(Map map,
java.lang.String element,
java.lang.String name,
java.lang.String value,
java.lang.String frameworkPath,
java.lang.String mapConfigPath)
Layer
setXmlAttribute in interface Layermap - The map that contains this layer.element - The XML element tag containing this attribute.name - The XML attribute name.value - The XML attribute value.frameworkPath - The URL path to the IMF.mapConfigPath - The URL path to the location of the map configuration file.public int size()
public void setTransparency(int percentTransparent)
setTransparency in interface Layerpublic int getTransparency()
getTransparency in interface Layer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||