public class DefaultFeatureCollection extends Object implements FeatureCollection, MapListener
| Modifier and Type | Field and Description |
|---|---|
protected List<Feature> |
features |
protected boolean |
holdAll |
protected LinkedHashSet<Feature> |
holdFeatures |
protected Set<FeatureCollectionListener> |
listeners |
protected Set<Feature> |
selectedFeatures |
LAYER_DISABLED_INVISIBLE, LAYER_DISABLED_VISIBLE, LAYER_ENABLED_INVISIBLE, LAYER_ENABLED_VISIBLE| Constructor and Description |
|---|
DefaultFeatureCollection()
Creates a new instance of DefaultFeatureCollection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Feature f)
DOCUMENT ME!
|
void |
addFeatureCollectionListener(FeatureCollectionListener l)
DOCUMENT ME!
|
void |
addFeatures(Collection<? extends Feature> cf)
DOCUMENT ME!
|
void |
addToSelection(Collection<Feature> cf)
DOCUMENT ME!
|
void |
addToSelection(Feature f)
DOCUMENT ME!
|
void |
addVetoableSelectionListener(de.cismet.veto.VetoListener vetoListener)
DOCUMENT ME!
|
boolean |
areFeaturesEditable()
DOCUMENT ME!
|
boolean |
canBeDisabled()
DOCUMENT ME!
|
void |
checkForAndCorrectDoubleNaming(Feature feature)
DOCUMENT ME!
|
void |
clear()
DOCUMENT ME!
|
boolean |
contains(Feature feature)
DOCUMENT ME!
|
void |
featuresAddedToMap(Collection<Feature> cf)
DOCUMENT ME!
|
void |
fireAllFeaturesRemoved(Collection<Feature> cf)
DOCUMENT ME!
|
void |
fireFeaturesAdded(Collection<Feature> cf)
DOCUMENT ME!
|
void |
fireFeaturesChanged(Collection<Feature> cf)
DOCUMENT ME!
|
void |
fireFeaturesRemoved(Collection<Feature> cf)
DOCUMENT ME!
|
void |
fireSelectionChanged()
DOCUMENT ME!
|
void |
fireSelectionChanged(Collection<Feature> cf)
DOCUMENT ME!
|
void |
fireSelectionChanged(Feature f)
DOCUMENT ME!
|
List<Feature> |
getAllFeatures()
DOCUMENT ME!
|
Feature |
getFeature(int index)
DOCUMENT ME!
|
int |
getFeatureCount()
DOCUMENT ME!
|
Collection<Feature> |
getHoldFeatures()
DOCUMENT ME!
|
int |
getLayerPosition()
DOCUMENT ME!
|
String |
getName()
DOCUMENT ME!
|
Collection |
getSelectedFeatures()
DOCUMENT ME!
|
float |
getTranslucency()
Getter for the translucency of this layer.
|
void |
holdFeature(Feature f)
DOCUMENT ME!
|
boolean |
isEnabled()
DOCUMENT ME!
|
boolean |
isHoldFeature(Feature f)
DOCUMENT ME!
|
boolean |
isSelected(Feature f)
DOCUMENT ME!
|
boolean |
isSingleSelection()
DOCUMENT ME!
|
void |
reconsiderFeature(Feature f)
DOCUMENT ME!
|
void |
removeAllFeatures()
DOCUMENT ME!
|
void |
removeFeature(Feature f)
DOCUMENT ME!
|
void |
removeFeatureCollectionListener(FeatureCollectionListener l)
DOCUMENT ME!
|
void |
removeFeatures(Collection<Feature> cf)
DOCUMENT ME!
|
void |
removeFeaturesByInstance(Class c)
DOCUMENT ME!
|
void |
removeVetoableSelectionListener(de.cismet.veto.VetoListener vetoListener)
DOCUMENT ME!
|
void |
select(Collection<Feature> cf)
DOCUMENT ME!
|
void |
select(Feature f)
DOCUMENT ME!
|
void |
setEnabled(boolean enabled)
DOCUMENT ME!
|
void |
setFeatureAt(Feature feature,
int index)
Wird eigentlich nicht mehr benoetigt.
|
void |
setHoldAll(boolean holdAll)
DOCUMENT ME!
|
void |
setLayerPosition(int layerPosition)
DOCUMENT ME!
|
void |
setName(String name)
DOCUMENT ME!
|
void |
setSingleSelection(boolean singleSelection)
DOCUMENT ME!
|
void |
setTranslucency(float t)
Setter for the translucency of this layer.
|
void |
substituteFeatures(Collection<Feature> cf)
DOCUMENT ME!
|
void |
unholdFeature(Feature f)
DOCUMENT ME!
|
void |
unselect(Collection<Feature> cf)
DOCUMENT ME!
|
void |
unselect(Feature f)
DOCUMENT ME!
|
void |
unselectAll()
DOCUMENT ME!
|
void |
unselectAll(boolean quiet)
DOCUMENT ME!
|
protected final Set<FeatureCollectionListener> listeners
protected LinkedHashSet<Feature> holdFeatures
protected boolean holdAll
public DefaultFeatureCollection()
public void setFeatureAt(Feature feature, int index)
feature - DOCUMENT ME!index - DOCUMENT ME!public Feature getFeature(int index)
FeatureCollectiongetFeature in interface FeatureCollectionindex - DOCUMENT ME!public void addVetoableSelectionListener(de.cismet.veto.VetoListener vetoListener)
vetoListener - DOCUMENT ME!public void removeVetoableSelectionListener(de.cismet.veto.VetoListener vetoListener)
vetoListener - DOCUMENT ME!public void setEnabled(boolean enabled)
ServiceLayersetEnabled in interface ServiceLayerenabled - DOCUMENT ME!public void addFeatureCollectionListener(FeatureCollectionListener l)
FeatureCollectionaddFeatureCollectionListener in interface FeatureCollectionl - DOCUMENT ME!public void removeFeatureCollectionListener(FeatureCollectionListener l)
FeatureCollectionremoveFeatureCollectionListener in interface FeatureCollectionl - DOCUMENT ME!public void setTranslucency(float t)
ServiceLayer1.0 as a parameter the layer will become
fully opaque and not transparent.setTranslucency in interface ServiceLayert - the opacity percentage (0.0 <= translucency <= 1.0)public boolean canBeDisabled()
ServiceLayercanBeDisabled in interface ServiceLayerpublic List<Feature> getAllFeatures()
FeatureCollectiongetAllFeatures in interface FeatureCollectionpublic int getFeatureCount()
FeatureCollectiongetFeatureCount in interface FeatureCollectionpublic void setLayerPosition(int layerPosition)
ServiceLayersetLayerPosition in interface ServiceLayerlayerPosition - DOCUMENT ME!public int getLayerPosition()
ServiceLayergetLayerPosition in interface ServiceLayerpublic String getName()
ServiceLayergetName in interface ServiceLayerpublic float getTranslucency()
ServiceLayer1.0 the layer is fully opaque and not
transparent.getTranslucency in interface ServiceLayerpublic boolean isEnabled()
ServiceLayerisEnabled in interface ServiceLayerpublic boolean areFeaturesEditable()
FeatureCollectionareFeaturesEditable in interface FeatureCollectionpublic void unholdFeature(Feature f)
FeatureCollectionunholdFeature in interface FeatureCollectionf - DOCUMENT ME!public void holdFeature(Feature f)
FeatureCollectionholdFeature in interface FeatureCollectionf - DOCUMENT ME!public boolean isHoldFeature(Feature f)
FeatureCollectionisHoldFeature in interface FeatureCollectionf - DOCUMENT ME!public void setHoldAll(boolean holdAll)
FeatureCollectionsetHoldAll in interface FeatureCollectionholdAll - DOCUMENT ME!public void select(Feature f)
FeatureCollectionselect in interface FeatureCollectionf - DOCUMENT ME!public void select(Collection<Feature> cf)
FeatureCollectionselect in interface FeatureCollectioncf - DOCUMENT ME!public void addToSelection(Feature f)
FeatureCollectionaddToSelection in interface FeatureCollectionf - DOCUMENT ME!public void addToSelection(Collection<Feature> cf)
FeatureCollectionaddToSelection in interface FeatureCollectioncf - DOCUMENT ME!public void unselect(Feature f)
FeatureCollectionunselect in interface FeatureCollectionf - DOCUMENT ME!public void unselectAll()
FeatureCollectionunselectAll in interface FeatureCollectionpublic void unselectAll(boolean quiet)
FeatureCollectionunselectAll in interface FeatureCollectionquiet - DOCUMENT ME!public void unselect(Collection<Feature> cf)
FeatureCollectionunselect in interface FeatureCollectioncf - DOCUMENT ME!public Collection getSelectedFeatures()
FeatureCollectiongetSelectedFeatures in interface FeatureCollectionpublic boolean isSelected(Feature f)
FeatureCollectionisSelected in interface FeatureCollectionf - DOCUMENT ME!public void removeFeature(Feature f)
FeatureCollectionremoveFeature in interface FeatureCollectionf - DOCUMENT ME!public void removeFeatures(Collection<Feature> cf)
FeatureCollectionremoveFeatures in interface FeatureCollectioncf - DOCUMENT ME!public void addFeature(Feature f)
FeatureCollectionaddFeature in interface FeatureCollectionf - DOCUMENT ME!public void addFeatures(Collection<? extends Feature> cf)
FeatureCollectionaddFeatures in interface FeatureCollectioncf - DOCUMENT ME!public void substituteFeatures(Collection<Feature> cf)
FeatureCollectionsubstituteFeatures in interface FeatureCollectioncf - DOCUMENT ME!public void checkForAndCorrectDoubleNaming(Feature feature)
feature - DOCUMENT ME!public void clear()
public Collection<Feature> getHoldFeatures()
public void removeAllFeatures()
FeatureCollectionremoveAllFeatures in interface FeatureCollectionpublic void reconsiderFeature(Feature f)
FeatureCollectionreconsiderFeature in interface FeatureCollectionf - DOCUMENT ME!public void fireFeaturesAdded(Collection<Feature> cf)
cf - DOCUMENT ME!public void fireFeaturesRemoved(Collection<Feature> cf)
cf - DOCUMENT ME!public void fireAllFeaturesRemoved(Collection<Feature> cf)
cf - DOCUMENT ME!public void fireFeaturesChanged(Collection<Feature> cf)
cf - DOCUMENT ME!public void fireSelectionChanged()
public void fireSelectionChanged(Collection<Feature> cf)
cf - DOCUMENT ME!public void fireSelectionChanged(Feature f)
f - DOCUMENT ME!public void setName(String name)
ServiceLayersetName in interface ServiceLayername - DOCUMENT ME!public void removeFeaturesByInstance(Class c)
c - DOCUMENT ME!public boolean isSingleSelection()
public void setSingleSelection(boolean singleSelection)
singleSelection - DOCUMENT ME!public void featuresAddedToMap(Collection<Feature> cf)
MapListenerfeaturesAddedToMap in interface MapListenercf - DOCUMENT ME!public boolean contains(Feature feature)
FeatureCollectioncontains in interface FeatureCollectionfeature - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.