public class JMapServerProject extends JMapObject implements java.io.Serializable, java.lang.Comparable<JMapServerProject>, java.io.ObjectInputValidation, java.lang.Cloneable
| Constructor and Description |
|---|
JMapServerProject(Project project,
User owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeQueryGroup(AttributeQueryGroupInfo attributeQueryCategory) |
void |
addLayer(JMapServerLayer serverLayer)
Adds a layer at the top position of the list.
|
void |
addLayer(JMapServerLayer serverLayer,
int pos)
Adds a layer at the specified position in the list.
|
void |
addLayerInfo(JMapServerLayer serverLayer,
int pos)
Deprecated.
|
void |
addListener(JMapServerProjectListener listener) |
java.lang.Object |
clone() |
int |
compareTo(JMapServerProject serverProject)
Implementation of the interface Comparable
|
boolean |
contains(SpatialDataSourceInfo dataSourceInfo)
Tests if the current project contains a layer which was created with the
specified data source info.
|
boolean |
containsLayer(int layerId)
Tests if the current project contains a layer which has the specified id.
|
boolean |
deleteAttributeQueryGroup(AttributeQueryCategory attributeQueryGroup) |
boolean |
deleteAttributeQueryGroup(int attributeQueryCategoryId) |
boolean |
equals(java.lang.Object obj) |
AttributeQueryGroupInfo |
getAttributeQueryGroup(int id) |
AttributeQueryGroupInfo |
getAttributeQueryGroup(java.lang.String name) |
java.util.List<AttributeQueryGroupInfo> |
getAttributeQueryGroups() |
Rectangle |
getExtent() |
int |
getId() |
ImageProducerSettings |
getImageProducerSettings() |
JMapServerLayer |
getLayer(int layerId) |
JMapServerLayer |
getLayer(java.lang.String name) |
java.util.Vector<JMapServerLayer> |
getLayerInfo()
Deprecated.
use
getLayers() |
int |
getLayerPosition(int layerId) |
JMapServerLayer |
getLayerProjectInfo(int layerId)
Deprecated.
use
getLayer(int) |
JMapServerLayer |
getLayerProjectInfo(java.lang.String name)
Deprecated.
use
getLayer(String) |
java.util.List<JMapServerLayer> |
getLayers() |
LayerTreeGroup |
getLayerTreeGroup()
Returns the layer tree root group.
|
Project |
getProject() |
int |
hashCode() |
boolean |
removeLayer(int layerId)
Removes the layer corresponding to the specified id from the project.
|
boolean |
removeLayer(JMapServerLayer serverLayer)
Removes the specified layer from the project.
|
boolean |
removeLayer(SpatialDataSourceInfo dataSourceInfo)
Removes all layers which were created from the specified data source info.
|
void |
removeLayerInfo(int layerId)
Deprecated.
use
removeLayer(int) |
boolean |
removeLayerInfo(JMapServerLayer serverLayer)
Deprecated.
|
void |
removeLayerInfo(SpatialDataSourceInfo dataSourceInfo)
Deprecated.
|
void |
removeListener(JMapServerProjectListener listener) |
boolean |
replaceLayer(JMapServerLayer oldServerLayer,
JMapServerLayer newServerLayer)
Updates a layer in the project by another layer instance.
|
void |
setAttributeQueryGroups(java.util.List<AttributeQueryGroupInfo> attributeQueryGroups) |
void |
setId(int id) |
void |
setImageProducerSettings(ImageProducerSettings imageProducerSettings) |
void |
setLayerInfo(java.util.Vector<JMapServerLayer> layers)
Deprecated.
use
setLayers(List) |
void |
setLayers(java.util.List<JMapServerLayer> layers) |
void |
setLayerTreeGroup(LayerTreeGroup layerTreeGroup) |
void |
setProject(Project project) |
void |
swapLayer(int posSelect,
int posDestination) |
java.lang.String |
toString() |
void |
validateObject() |
clone, setAclgetAvailableLocales, getTranslation, isTranslationExists, removeTranslationsOtherThan, setTranslation, updateTranslationspublic void addListener(JMapServerProjectListener listener)
public void removeListener(JMapServerProjectListener listener)
public int compareTo(JMapServerProject serverProject)
compareTo in interface java.lang.Comparable<JMapServerProject>serverProject - the project to compare with.public boolean contains(SpatialDataSourceInfo dataSourceInfo)
dataSourceInfo - the data source info to search.public boolean containsLayer(int layerId)
layerId - the layer id to search.public void setLayers(java.util.List<JMapServerLayer> layers)
@Deprecated public void setLayerInfo(java.util.Vector<JMapServerLayer> layers)
setLayers(List)public java.util.List<JMapServerLayer> getLayers()
@Deprecated public java.util.Vector<JMapServerLayer> getLayerInfo()
getLayers()public Project getProject()
public void setProject(Project project)
public int getId()
public void setId(int id)
public void addLayer(JMapServerLayer serverLayer)
serverLayer - the new layer to add.public void addLayer(JMapServerLayer serverLayer, int pos)
serverLayer - the new layer to add.pos - the target position.@Deprecated public void addLayerInfo(JMapServerLayer serverLayer, int pos)
addLayer(JMapServerLayer, int)public boolean replaceLayer(JMapServerLayer oldServerLayer, JMapServerLayer newServerLayer)
oldServerLayer - the layer to be replaced.newServerLayer - the new layer to add.public boolean removeLayer(JMapServerLayer serverLayer)
serverLayer - the layer to remove.@Deprecated public boolean removeLayerInfo(JMapServerLayer serverLayer)
removeLayer(JMapServerLayer)public boolean removeLayer(SpatialDataSourceInfo dataSourceInfo)
dataSourceInfo - @Deprecated public void removeLayerInfo(SpatialDataSourceInfo dataSourceInfo)
removeLayer(SpatialDataSourceInfo)public boolean removeLayer(int layerId)
layerId - the layer id of the layer to remove.@Deprecated public void removeLayerInfo(int layerId)
removeLayer(int)public int getLayerPosition(int layerId)
public JMapServerLayer getLayer(int layerId)
layerId - @Deprecated public JMapServerLayer getLayerProjectInfo(int layerId)
getLayer(int)public JMapServerLayer getLayer(java.lang.String name)
name - @Deprecated public JMapServerLayer getLayerProjectInfo(java.lang.String name)
getLayer(String)public void swapLayer(int posSelect,
int posDestination)
public java.lang.String toString()
toString in class java.lang.Objectpublic ImageProducerSettings getImageProducerSettings()
public void setImageProducerSettings(ImageProducerSettings imageProducerSettings)
public Rectangle getExtent()
public LayerTreeGroup getLayerTreeGroup()
public void setLayerTreeGroup(LayerTreeGroup layerTreeGroup)
public void addAttributeQueryGroup(AttributeQueryGroupInfo attributeQueryCategory)
public boolean deleteAttributeQueryGroup(AttributeQueryCategory attributeQueryGroup)
public boolean deleteAttributeQueryGroup(int attributeQueryCategoryId)
public AttributeQueryGroupInfo getAttributeQueryGroup(java.lang.String name)
public AttributeQueryGroupInfo getAttributeQueryGroup(int id)
public java.util.List<AttributeQueryGroupInfo> getAttributeQueryGroups()
public void setAttributeQueryGroups(java.util.List<AttributeQueryGroupInfo> attributeQueryGroups)
public void validateObject()
validateObject in interface java.io.ObjectInputValidationpublic java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class JMapObjectpublic boolean equals(java.lang.Object obj)
equals in class JMapObject