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
ILabelingMethod
addLabelClass
in interface ILabelingMethod
java.lang.IllegalArgumentException
public void deleteLabelClass(ILabelClass lbl)
ILabelingMethod
deleteLabelClass
in interface ILabelingMethod
public java.lang.String getClassName()
public ILabelClass[] getLabelClasses()
ILabelingMethod
getLabelClasses
in interface ILabelingMethod
public boolean allowsMultipleClass()
ILabelingMethod
allowsMultipleClass
in interface ILabelingMethod
public void renameLabelClass(ILabelClass lbl, java.lang.String newName)
ILabelingMethod
renameLabelClass
in interface ILabelingMethod
public FeatureSet getFeatureIteratorByLabelClass(FLyrVect layer, ILabelClass lc, ViewPort viewPort, java.lang.String[] usedFields) throws DataException
getFeatureIteratorByLabelClass
in interface ILabelingMethod
DataException
public boolean definesPriorities()
definesPriorities
in interface ILabelingMethod
public void setDefinesPriorities(boolean flag)
setDefinesPriorities
in interface ILabelingMethod
public void clearAllClasses()
clearAllClasses
in interface ILabelingMethod
public ILabelClass getLabelClassByName(java.lang.String labelName)
ILabelingMethod
getLabelClassByName
in interface ILabelingMethod
public ILabelingMethod cloneMethod()
cloneMethod
in interface ILabelingMethod
public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException