public interface GraphicLayer extends VectorLayer
MapContext
. Those
graphics won't be stored and will be rendered on top of all the other
MapContext's layers.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRIORITY |
static java.lang.String |
FEATURE_ATTR_FEATUREID |
static java.lang.String |
FEATURE_ATTR_GEOMETRY |
static java.lang.String |
FEATURE_ATTR_GROUPID |
static java.lang.String |
FEATURE_ATTR_IDSYMBOL |
static java.lang.String |
FEATURE_ATTR_LABEL |
static java.lang.String |
FEATURE_ATTR_PRIORITY |
static java.lang.String |
FEATURE_ATTR_TAG |
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME
Modifier and Type | Method and Description |
---|---|
void |
addGraphic(Geometry geom,
int idsym)
Deprecated.
@see
{@link #addGraphic(String, Geometry, int, String, Object, int)
|
void |
addGraphic(Geometry geom,
int idsym,
java.lang.String label)
Deprecated.
@see
{@link #addGraphic(String, Geometry, int, String, Object, int)
|
void |
addGraphic(java.lang.String groupId,
Geometry geom,
int idsym)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphic(java.lang.String groupId,
Geometry geom,
int idsym,
java.lang.String label)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphic(java.lang.String groupId,
Geometry geom,
int idsym,
java.lang.String label,
java.lang.Object tag,
int priority)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphics(java.lang.String groupId,
java.util.Iterator geoms,
int idsym)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphics(java.lang.String groupId,
java.util.Iterator geoms,
int idsym,
java.lang.String label)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphics(java.lang.String groupId,
java.util.Iterator geoms,
int idsym,
java.lang.String label,
java.lang.Object tag,
int priority)
Adds a new
Geometry to be rendered into the layer. |
int |
addSymbol(ISymbol newSymbol)
|
void |
clearAllGraphics()
Removes all registered
Geometry objects. |
int |
clearAllSymbols()
Removes all registered
ISymbol objects. |
ISymbol |
getSymbol(int symbolId)
Returns the
ISymbol of the layer with the given identifier. |
int |
getSymbolId(ISymbol symbol)
Returns the identifier of the symbol into the layer.
|
boolean |
removeGraphics(java.lang.String groupId)
Removes all previously registered
Geometry objects from the layer
with the given groupId. |
addBaseFilter, addBaseFilter, createFeatureQuery, getBaseQuery, getFeatureStore, setBaseQuery
getDataStore, setDataStore
addError, addLayerListener, allowLinks, cloneLayer, draw, getCoordTrans, getDefaultTolerance, getDrawVersion, getError, getErrors, getFLayerStatus, getFullEnvelope, getInfoString, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getTocImageIcon, getTocStatusImage, invalidate, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, load, newComposedLayer, print, reload, removeLayerListener, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setName, setParentLayer, setProjection, setTemporary, setVisible, visibleRequired
getProjection, reProject
loadFromState, saveToState
getMetadataChildren, getMetadataID, getMetadataName
clear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
getExtendedProperties, getProperty, setProperty
drawLabels, getLabelingStrategy, isLabeled, printLabels, setIsLabeled, setLabelingStrategy
getInfo, getInfo, getInfo
setLegend
addLegendListener, getGeometryType, getLegend, getShapeType, removeLegendListener
static final int DEFAULT_PRIORITY
static final java.lang.String FEATURE_ATTR_FEATUREID
static final java.lang.String FEATURE_ATTR_GROUPID
static final java.lang.String FEATURE_ATTR_GEOMETRY
static final java.lang.String FEATURE_ATTR_IDSYMBOL
static final java.lang.String FEATURE_ATTR_LABEL
static final java.lang.String FEATURE_ATTR_TAG
static final java.lang.String FEATURE_ATTR_PRIORITY
int addSymbol(ISymbol newSymbol)
ISymbol
to the layer to be used to render the
Geometry
objects. The symbol will be added to the legend of the
layer.newSymbol
- the ISymbol
to addISymbol getSymbol(int symbolId)
ISymbol
of the layer with the given identifier.symbolId
- the symbol identifierint getSymbolId(ISymbol symbol)
symbol
- the symbol to look forvoid addGraphic(Geometry geom, int idsym)
void addGraphic(Geometry geom, int idsym, java.lang.String label)
void addGraphic(java.lang.String groupId, Geometry geom, int idsym)
Geometry
to be rendered into the layer.void addGraphic(java.lang.String groupId, Geometry geom, int idsym, java.lang.String label)
Geometry
to be rendered into the layer.void addGraphic(java.lang.String groupId, Geometry geom, int idsym, java.lang.String label, java.lang.Object tag, int priority)
Geometry
to be rendered into the layer.groupId
- group identifier. Allows to identify a group of
Geometry
added to the layergeom
- the Geometry
to addidsym
- the ISymbol
identifier to apply to render the
Geometry
label
- the text to show if the ISymbol
is a
ITextSymbol
. Set null otherwise.tag
- an object to classify, identify or add related information to
the Geometry
priority
- to apply while rendering the Geometry
. Values with
lower priority will be rendered first.void addGraphics(java.lang.String groupId, java.util.Iterator geoms, int idsym)
Geometry
to be rendered into the layer.void addGraphics(java.lang.String groupId, java.util.Iterator geoms, int idsym, java.lang.String label)
Geometry
to be rendered into the layer.void addGraphics(java.lang.String groupId, java.util.Iterator geoms, int idsym, java.lang.String label, java.lang.Object tag, int priority)
Geometry
to be rendered into the layer.groupId
- group identifier. Allows to identify a group of
Geometry
added to the layergeoms
- the Geometry
s to addidsym
- the ISymbol
identifier to apply to render the
Geometry
label
- the text to show if the ISymbol
is a
ITextSymbol
. Set null otherwise.tag
- an object to classify, identify or add related information to
the Geometry
priority
- to apply while rendering the Geometry
. Values with
lower priority will be rendered first.boolean removeGraphics(java.lang.String groupId)
Geometry
objects from the layer
with the given groupId.groupId
- of the geometries to removevoid clearAllGraphics()
Geometry
objects.int clearAllSymbols()
ISymbol
objects.