|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.map.layer.Layer
public abstract class Layer
Implements an abstract ArcIMS Layer.
Constructor Summary | |
---|---|
Layer()
Constructs an instance of Layer . |
|
Layer(String id,
String minScale,
String maxScale)
Constructs an instance of Layer with given values. |
Method Summary | |
---|---|
String |
getID()
Returns the ID asociated with this Layer object. |
String |
getMaxScale()
Returns the maximum scale value of the Layer object. |
String |
getMinScale()
Returns the minimum scale value of the Layer object. |
String |
getName()
Returns the name of the Layer object. |
abstract String |
getType()
|
boolean |
isVisible()
Returns "True", if the visibility property for this Layer is set. |
void |
setID(String value)
Sets the given string as ID for this Layer object. |
void |
setMaxScale(String value)
Sets the maximum scale of the Layer object and can be used only for adding dynamic layer. |
void |
setMinScale(String value)
Sets the minimum scale of the Layer object and can be used only for adding dynamic layer. |
void |
setName(String name)
Sets the name of the Layer object. |
void |
setVisible(boolean value)
Sets the visibility property for this Layer object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layer(String id, String minScale, String maxScale)
Layer
with given values.
Example: Layer layer = new Layer(1,"1:24000","1:100000");
id
- the layer id.minScale
- the minimum scale value.maxScale
- the maximum scale value.public Layer()
Layer
.
Example: Layer layer = new Layer();
Method Detail |
---|
public abstract String getType()
public void setID(String value)
layer.setID("1");
value
- the ID value.getID()
public void setMaxScale(String value)
layer.setMaxScale("1:200000");
value
- the maximum scale value.getMaxScale()
public void setMinScale(String value)
layer.setMinScale("1:24000");
value
- the minimum scale value.getMinScale()
public String getMaxScale()
String maxScale = layer.getMaxScale();
setMaxScale(java.lang.String)
public String getMinScale()
String minScale = layer.getMinScale();
setMinScale(java.lang.String)
public String getID()
Layer
object.
Example: String id = layer.getID();
setID(java.lang.String)
public void setName(String name)
Layer
object.
Example: >layer.setName("Lakes");
name
- the name string.getName()
public String getName()
Layer
object.
Example: String name = layer.getName();
setName(java.lang.String)
public void setVisible(boolean value)
Layer
object.
Example: layer.setVisible(true);
value
- a boolean value - True or False.isVisible()
public boolean isVisible()
Layer
is set.
Example:
if(layer.isVisible() == true){
layer.setVisible(false);
}
setVisible(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |