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 String |
FEATURE_ATTR_FEATUREID |
static String |
FEATURE_ATTR_GEOMETRY |
static String |
FEATURE_ATTR_GROUPID |
static String |
FEATURE_ATTR_IDSYMBOL |
static String |
FEATURE_ATTR_LABEL |
static String |
FEATURE_ATTR_PRIORITY |
static 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,
String label)
Deprecated.
@see
{@link #addGraphic(String, Geometry, int, String, Object, int)
|
void |
addGraphic(String groupId,
Geometry geom,
int idsym)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphic(String groupId,
Geometry geom,
int idsym,
String label)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphic(String groupId,
Geometry geom,
int idsym,
String label,
Object tag,
int priority)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphics(String groupId,
Iterator geoms,
int idsym)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphics(String groupId,
Iterator geoms,
int idsym,
String label)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphics(String groupId,
Iterator geoms,
int idsym,
String label,
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.
|
void |
removeGraphics(String groupId)
Removes all previously registered
Geometry objects from the layer
with the given groupId. |
addBaseFilter, createFeatureQuery, getBaseQuery, getFeatureStore, setBaseQuerygetDataStore, setDataStoreaddError, addLayerListener, allowLinks, cloneLayer, draw, getCoordTrans, getDrawVersion, getError, getErrors, getFLayerStatus, getFullEnvelope, getInfoString, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getTocImageIcon, getTocStatusImage, 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, visibleRequiredgetProjection, reProjectloadFromState, saveToStategetMetadataChildren, getMetadataID, getMetadataNameclear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposegetExtendedProperties, getProperty, setPropertydrawLabels, getLabelingStrategy, isLabeled, printLabels, setIsLabeled, setLabelingStrategygetInfo, getInfo, getInfosetLegendaddLegendListener, getGeometryType, getLegend, getShapeType, removeLegendListenerstatic final int DEFAULT_PRIORITY
static final String FEATURE_ATTR_FEATUREID
static final String FEATURE_ATTR_GROUPID
static final String FEATURE_ATTR_GEOMETRY
static final String FEATURE_ATTR_IDSYMBOL
static final String FEATURE_ATTR_LABEL
static final String FEATURE_ATTR_TAG
static final 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, String label)
void addGraphic(String groupId, Geometry geom, int idsym)
Geometry to be rendered into the layer.void addGraphic(String groupId, Geometry geom, int idsym, String label)
Geometry to be rendered into the layer.void addGraphic(String groupId, Geometry geom, int idsym, String label, 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
Geometrylabel - 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 Geometrypriority - to apply while rendering the Geometry. Values with
lower priority will be rendered first.void addGraphics(String groupId, Iterator geoms, int idsym)
Geometry to be rendered into the layer.void addGraphics(String groupId, Iterator geoms, int idsym, String label)
Geometry to be rendered into the layer.void addGraphics(String groupId, Iterator geoms, int idsym, String label, 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 Geometrys to addidsym - the ISymbol identifier to apply to render the
Geometrylabel - 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 Geometrypriority - to apply while rendering the Geometry. Values with
lower priority will be rendered first.void removeGraphics(String groupId)
Geometry objects from the layer
with the given groupId.groupId - of the geometries to removevoid clearAllGraphics()
Geometry objects.int clearAllSymbols()
ISymbol objects.