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(java.lang.String groupId,
org.gvsig.fmap.geom.Geometry geom,
int idsym)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphic(java.lang.String groupId,
org.gvsig.fmap.geom.Geometry geom,
int idsym,
java.lang.String label)
Adds a new
Geometry to be rendered into the layer. |
void |
addGraphic(java.lang.String groupId,
org.gvsig.fmap.geom.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)
Adds a new
ISymbol to the layer to be used to render the
Geometry objects. |
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(java.lang.String groupId)
Removes all previously registered
Geometry objects from the layer
with the given groupId. |
getFeatureStore
getDataStore
addError, addLayerListener, allowLinks, cloneLayer, draw, getCoordTrans, getDrawVersion, getError, getErrors, getExtendedProperties, getFLayerStatus, getFullEnvelope, getInfoString, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getProperty, getTocImageIcon, getTocStatusImage, isActive, isAvailable, isEditing, isInTOC, isOk, isVisible, isWithinScale, isWritable, load, newComposedLayer, print, reload, removeLayerListener, setActive, setAvailable, setCoordTrans, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setName, setParentLayer, setProjection, setProperty, setVisible, visibleRequired
getMetadataChildren, getMetadataID, getMetadataName
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
drawLabels, getLabelingStrategy, isLabeled, printLabels, setIsLabeled, setLabelingStrategy
getInfo
setLegend
addLegendListener, getGeometryType, getLegend, removeLegendListener
static final int DEFAULT_PRIORITY
static final java.lang.String FEATURE_ATTR_FEATUREID
static final java.lang.String FEATURE_ATTR_GEOMETRY
static final java.lang.String FEATURE_ATTR_GROUPID
static final java.lang.String FEATURE_ATTR_IDSYMBOL
static final java.lang.String FEATURE_ATTR_LABEL
static final java.lang.String FEATURE_ATTR_PRIORITY
static final java.lang.String FEATURE_ATTR_TAG
void addGraphic(java.lang.String groupId, org.gvsig.fmap.geom.Geometry geom, int idsym)
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
void addGraphic(java.lang.String groupId, org.gvsig.fmap.geom.Geometry geom, int idsym, java.lang.String label)
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.void addGraphic(java.lang.String groupId, org.gvsig.fmap.geom.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.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
void addGraphics(java.lang.String groupId, java.util.Iterator geoms, int idsym, java.lang.String label)
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.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.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 addvoid clearAllGraphics()
Geometry
objects.int clearAllSymbols()
ISymbol
objects.ISymbol getSymbol(int symbolId)
ISymbol
of the layer with the given identifier.symbolId
- the symbol identifierint getSymbolId(ISymbol symbol)
symbol
- the symbol to look forvoid removeGraphics(java.lang.String groupId)
Geometry
objects from the layer
with the given groupId.groupId
- of the geometries to removeCopyright © 2013 gvSIG Association. All rights reserved.