public abstract class LayerInfo extends LocalizedObject implements ILayer, java.io.Serializable, java.lang.Cloneable, LayerConstants
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
description
The description of the layer.
|
protected int |
dynamicRefresh |
protected K2DElementFactory |
elementFactory |
protected int |
elementType
The type of elements this layer contains.
|
protected Rectangle |
extent |
protected int |
id
The id of the layer.
|
protected JMapClientInfoReportConfig |
infoReportConfig |
protected long |
lastUpdateTime |
protected long |
layerProperties
Layer properties are stored as bitwise values in this property.
|
protected double |
maximumVisibleScale |
protected java.lang.String |
metadataUrl |
protected double |
minimumVisibleScale |
protected java.lang.String |
name
The name of the layer.
|
protected long |
readOnlyMask |
protected StyleManager |
styleManager |
DEFAULT_MAXIMUM_SCALE, DEFAULT_MINIMUM_SCALE, PERSONAL_LAYER_BASE_ID, PERSONAL_LAYER_MAX_ID, PROJECT_LAYER_BASE_ID, PROJECT_LAYER_MAX_ID, PROPERTY_ALL_SETTINGS, PROPERTY_ALWAYS_DRAW_SELECTION, PROPERTY_DRAW_GRID, PROPERTY_EDITABLE, PROPERTY_EDITING, PROPERTY_INCLUDE_IN_CONTEXT, PROPERTY_INDEX, PROPERTY_LISTED, PROPERTY_LOCAL, PROPERTY_MAX_SCALE, PROPERTY_MIN_SCALE, PROPERTY_PUBLISHED, PROPERTY_QUERIABLE, PROPERTY_SELECTABLE, PROPERTY_USE_CLIENT_CACHE, PROPERTY_VISIBLE, REQUEST_MODE_BY_REGION, REQUEST_MODE_BY_TILE, RESERVED_LAYER_BASE_ID, RESERVED_LAYER_MAX_ID, SYSTEM_LAYER_BASE_AUTO_ID, SYSTEM_LAYER_BASE_ID, SYSTEM_LAYER_MAX_ID, TILING_MODE_AUTO, TILING_MODE_MANUAL, USER_LAYER_BASE_AUTO_ID, USER_LAYER_BASE_ID, USER_LAYER_MAX_ID| Constructor and Description |
|---|
LayerInfo() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
clone()
Returns a deep clone of the current LayerInfo instance.
|
protected void |
clone(LayerInfo layerInfo)
Clones all properties from this LayerInfo into the specified LayerInfo instance.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the description of this layer for a specific locale.
|
abstract java.lang.String |
getLayerClassName() |
java.lang.String |
getName(java.util.Locale locale)
Returns the name of this layer for a specific locale.
|
long |
getReadOnlyProperties()
Returns the a mask which contains all read-only properties for this layer.
|
boolean |
isDynamic() |
boolean |
isIndex()
Returns whether or not this layer should be drawn in the client overview.
|
boolean |
isListed()
Returns the current listed state of the layer.
|
boolean |
isLocal()
Returns the current local state of the layer.
|
boolean |
isSelectable()
Returns the current selectable state of the layer.
|
boolean |
isVisible()
Returns the current visibility state of the layer
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the description of this layer for the specified Locale.
|
void |
setElementType(int elementType) |
void |
setIndex(boolean flag)
Sets whether or not this layer should be drawn in the client overview.
|
void |
setListed(boolean listed)
Sets the listed state of the layer.
|
void |
setLocal(boolean flag)
Sets the local state of the layer.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the name of this layer for the specified Locale.
|
void |
setProperty(long property,
boolean enabled)
Sets the state for the specified property.
|
void |
setReadOnlyProperties(long value)
Sets all read-only properties for the layer.
|
void |
setReadOnlyProperty(long property,
boolean isReadOnly)
Sets the read-only state for the specified property.
|
void |
setSelectable(boolean flag)
Sets the selectable state of the layer.
|
void |
setVisible(boolean flag)
Sets the visibility state of the layer.
|
getAvailableLocales, getTranslation, isTranslationExists, removeTranslationsOtherThan, setTranslation, updateTranslationsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getDynamicRefresh, getElementFactory, getElementType, getExtent, getId, getInfoReportConfig, getLastUpdateTime, getLayerProperties, getMaximumVisibleScale, getMetadataUrl, getMinimumVisibleScale, getName, getStyleManager, setDescription, setDynamicRefresh, setElementFactory, setId, setInfoReportConfig, setLastUpdateTime, setLayerProperties, setMaximumVisibleScale, setMetadataUrl, setMinimumVisibleScale, setName, setStyleManagerprotected int id
protected java.lang.String name
protected java.lang.String description
protected int elementType
protected long lastUpdateTime
protected double maximumVisibleScale
protected double minimumVisibleScale
protected StyleManager styleManager
protected Rectangle extent
protected long readOnlyMask
protected int dynamicRefresh
protected long layerProperties
protected JMapClientInfoReportConfig infoReportConfig
protected K2DElementFactory elementFactory
protected java.lang.String metadataUrl
public java.lang.String getDescription(java.util.Locale locale)
getDescription in interface ILayerpublic void setDescription(java.lang.String description,
java.util.Locale locale)
setDescription in interface ILayerdescription - the new given description.locale - the locale for this descriptionpublic java.lang.String getName(java.util.Locale locale)
public void setName(java.lang.String name,
java.util.Locale locale)
public void setElementType(int elementType)
setElementType in interface ILayerelementType - The elementType to set.public boolean isIndex()
public void setIndex(boolean flag)
public void setSelectable(boolean flag)
setSelectable in interface ILayerflag - if true, the layer will be selectable otherwise not selectablepublic boolean isSelectable()
isSelectable in interface ILayerpublic void setListed(boolean listed)
public boolean isListed()
public void setVisible(boolean flag)
setVisible in interface ILayerflag - if true, the layer will be visible otherwise invisiblepublic boolean isVisible()
public void setLocal(boolean flag)
public boolean isLocal()
public abstract java.lang.String getLayerClassName()
public abstract java.lang.Object clone()
protected void clone(LayerInfo layerInfo)
layerInfo - the instance that will receive cloned properties.public final void setReadOnlyProperty(long property,
boolean isReadOnly)
setReadOnlyProperty in interface ILayerproperty - the property to set.isReadOnly - the read-only state.public final void setProperty(long property,
boolean enabled)
setProperty in interface ILayerproperty - the property to set.enabled - the property state.public long getReadOnlyProperties()
getReadOnlyProperties in interface ILayerpublic void setReadOnlyProperties(long value)
setReadOnlyProperties in interface ILayervalue - a bitwise value that contains all read-only layer properties.