public class FeatureDependentLabeled extends java.lang.Object implements ILabelingMethod
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE_DEP_LABELED_PERSISTENCE_NAME |
| Constructor and Description |
|---|
FeatureDependentLabeled() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabelClass(ILabelClass lbl)
Adds a LabelClass to the set of LabelClass contained by this ILabelingMethod.
|
boolean |
allowsMultipleClass()
Returns true if this ILabelingMethod allos the definition of more
LabelClasses than just the default LabelClass.
|
void |
clearAllClasses() |
ILabelingMethod |
cloneMethod() |
boolean |
definesPriorities() |
void |
deleteLabelClass(ILabelClass lbl)
Removes the LabelClass from the set of LabelClasses contained by this
ILabelingMethod.
|
java.lang.String |
getClassName() |
FeatureSet |
getFeatureIteratorByLabelClass(FLyrVect layer,
ILabelClass lc,
ViewPort viewPort,
java.lang.String[] usedFields) |
ILabelClass |
getLabelClassByName(java.lang.String labelName)
Returns the LabelClass contained by this ILabelingMethod whose name matches
with the string passed in labelName.
|
ILabelClass[] |
getLabelClasses()
Returns all the labels defined by this Labeling Method
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
renameLabelClass(ILabelClass lbl,
java.lang.String newName)
Changes the mane of a given LabelClass
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDefinesPriorities(boolean flag) |
public static final java.lang.String FEATURE_DEP_LABELED_PERSISTENCE_NAME
public void addLabelClass(ILabelClass lbl) throws java.lang.IllegalArgumentException
ILabelingMethodaddLabelClass in interface ILabelingMethodjava.lang.IllegalArgumentExceptionpublic void deleteLabelClass(ILabelClass lbl)
ILabelingMethoddeleteLabelClass in interface ILabelingMethodpublic java.lang.String getClassName()
public ILabelClass[] getLabelClasses()
ILabelingMethodgetLabelClasses in interface ILabelingMethodpublic boolean allowsMultipleClass()
ILabelingMethodallowsMultipleClass in interface ILabelingMethodpublic void renameLabelClass(ILabelClass lbl, java.lang.String newName)
ILabelingMethodrenameLabelClass in interface ILabelingMethodpublic FeatureSet getFeatureIteratorByLabelClass(FLyrVect layer, ILabelClass lc, ViewPort viewPort, java.lang.String[] usedFields) throws DataException
getFeatureIteratorByLabelClass in interface ILabelingMethodDataExceptionpublic boolean definesPriorities()
definesPriorities in interface ILabelingMethodpublic void setDefinesPriorities(boolean flag)
setDefinesPriorities in interface ILabelingMethodpublic void clearAllClasses()
clearAllClasses in interface ILabelingMethodpublic ILabelClass getLabelClassByName(java.lang.String labelName)
ILabelingMethodgetLabelClassByName in interface ILabelingMethodpublic ILabelingMethod cloneMethod()
cloneMethod in interface ILabelingMethodpublic static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceException