public class Layer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Modifier | Constructor and Description |
|---|---|
protected |
Layer(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeStyle()
Presents a dialog for the user to update the style of rendering of the layer.
|
Layer |
clone() |
void |
delete() |
protected void |
finalize() |
CompositionMode |
getCompositionMode() |
protected static long |
getCPtr(Layer obj) |
java.lang.String |
getDataSetName() |
java.lang.String |
getDataSourceId() |
LayerVector |
getDescendants()
It returns a list with the descendants of this layer.
|
java.awt.geom.Rectangle2D.Double |
getExtent()
It returns the Layer extent (or minimum bounding box).
|
java.lang.String |
getGeomPropertyName()
Returns the name of the geometric property.
|
java.lang.String |
getId()
It returns the layer id.
|
boolean |
getLastValidatedValue() |
StrVector |
getObjectIdColsNames()
Returns the names of columns that compose the identifier of each feature.
|
int |
getSRID()
It returns the Spatial Reference System ID associated to the Layer.
|
java.lang.String |
getTitle()
It returns the layer title.
|
Visibility |
getVisibility()
It returns the layer visibility.
|
boolean |
isValid()
It returns true if the layer can be used for instance to draw, otherwise, it returns false.
|
void |
setCompositionMode(CompositionMode mode) |
void |
setDataSetName(java.lang.String name) |
void |
setDataSourceId(java.lang.String id) |
void |
setGeomPropertytName(java.lang.String name)
Updates the name of the geometric property.
|
void |
setOutOfDate() |
void |
setVisibility(Visibility v)
It sets the layer visibility.
|
java.lang.String |
toString()
Returns the title of the layer.
|
void |
updateGeometries(ObjectIdVector oIds,
java.util.List<java.awt.geom.GeneralPath> geoms)
Updates a set o geometries in the data source.
|
void |
updateGeometry(ObjectId oId,
java.awt.geom.GeneralPath geom)
Updates, in the data source, the geometry geom identified by oId.
|
protected static long getCPtr(Layer obj)
protected void finalize()
finalize in class java.lang.Objectpublic void delete()
public Layer clone()
clone in class java.lang.Objectpublic java.lang.String getId()
public java.lang.String getTitle()
public LayerVector getDescendants()
public Visibility getVisibility()
This information can be used, for instance, to know if the layer must be drawn.
public void setVisibility(Visibility v)
This information can be used, for instance, to know if the layer must be drawn.
v - The layer visibility.public java.awt.geom.Rectangle2D.Double getExtent()
public int getSRID()
public java.lang.String getGeomPropertyName()
public void setGeomPropertytName(java.lang.String name)
name - The new name.public boolean isValid()
This method can be used to check if the data referenced by the layer is available (accessible), or not.
public CompositionMode getCompositionMode()
public void setCompositionMode(CompositionMode mode)
public void setOutOfDate()
public java.lang.String getDataSetName()
public void setDataSetName(java.lang.String name)
public java.lang.String getDataSourceId()
public void setDataSourceId(java.lang.String id)
public boolean getLastValidatedValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic void changeStyle()
After the update, the layer will always be rendered with the new style.
public StrVector getObjectIdColsNames()
public void updateGeometry(ObjectId oId, java.awt.geom.GeneralPath geom)
oId - Idebtifier of the geometry.geom - The geometry to be updated.public void updateGeometries(ObjectIdVector oIds, java.util.List<java.awt.geom.GeneralPath> geoms) throws java.io.IOException
Note that the oIds set and geoms set MUST have the same size. Each element in oIds identifies a geometry in geoms set.
oIds - Set of identifiers.geoms - Set of geometries to be updated.java.io.IOException - If the data source could not update the geometries an exception will be raised.