public class FeatureDependentLabeled extends Object implements ILabelingMethod
Modifier and Type | Field and Description |
---|---|
static 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.
|
String |
getClassName() |
FeatureSet |
getFeatureIteratorByLabelClass(FLyrVect layer,
ILabelClass lc,
ViewPort viewPort,
String[] usedFields) |
ILabelClass |
getLabelClassByName(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,
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 String FEATURE_DEP_LABELED_PERSISTENCE_NAME
public void addLabelClass(ILabelClass lbl) throws IllegalArgumentException
ILabelingMethod
addLabelClass
in interface ILabelingMethod
IllegalArgumentException
public void deleteLabelClass(ILabelClass lbl)
ILabelingMethod
deleteLabelClass
in interface ILabelingMethod
public String getClassName()
public ILabelClass[] getLabelClasses()
ILabelingMethod
getLabelClasses
in interface ILabelingMethod
public boolean allowsMultipleClass()
ILabelingMethod
allowsMultipleClass
in interface ILabelingMethod
public void renameLabelClass(ILabelClass lbl, String newName)
ILabelingMethod
renameLabelClass
in interface ILabelingMethod
public FeatureSet getFeatureIteratorByLabelClass(FLyrVect layer, ILabelClass lc, ViewPort viewPort, 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(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