public abstract class AbstractClassifiedVectorLegend extends AbstractVectorialLegend implements IClassifiedVectorLegend
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractClassifiedVectorLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAME |
VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSortLEGEND_PERSISTENCE_DEFINITION_NAME| Constructor and Description |
|---|
AbstractClassifiedVectorLegend() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a copy of the object.
|
void |
fireClassifiedSymbolChangeEvent(SymbolLegendEvent event)
Looks for a change in a classified symbol of a legend.
|
void |
fireLegendClearEvent(LegendClearEvent event)
Looks for a change in a legend of classified symbols.
|
String[] |
getClassifyingFieldNames()
Returns the name of the field
|
int[] |
getClassifyingFieldTypes() |
protected String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore)
|
boolean |
isSuitableForShapeType(int shapeType) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setClassifyingFieldNames(String[] fieldNames)
Inserts the name of the field
|
void |
setClassifyingFieldTypes(int[] fieldTypes) |
draw, draw, draw, getZSort, internalDraw, print, print, setZSortaddDrawingObserver, addLegendListener, addObserver, beginComplexNotification, cloneLegend, countObservers, deleteDrawingObserver, deleteDrawingObservers, deleteObserver, disableNotifications, enableNotifications, endComplexNotification, fireDefaultSymbolChangedEvent, getListeners, getManager, getSymbolManager, inComplex, isEnabledNotifications, notifyObservers, notifyObservers, removeLegendListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSymbol, clear, delSymbol, replacegetDescriptions, getSymbols, getValuesdraw, draw, getShapeType, getSymbolByFeature, isUseDefaultSymbol, print, print, setDefaultSymbol, setShapeType, useDefaultSymboladdLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getDefaultSymbol, getListeners, removeLegendListeneraddDrawingObserver, deleteDrawingObserver, deleteDrawingObserverspublic static final String CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAME
public void fireClassifiedSymbolChangeEvent(SymbolLegendEvent event)
event - public void fireLegendClearEvent(LegendClearEvent event)
event - public String[] getClassifyingFieldNames()
IClassifiedVectorLegendgetClassifyingFieldNames in interface IClassifiedVectorLegendpublic void setClassifyingFieldNames(String[] fieldNames)
IClassifiedVectorLegendsetClassifyingFieldNames in interface IClassifiedVectorLegendfieldNames - Names of the fields.
TODO refactor to allow more than one field namepublic int[] getClassifyingFieldTypes()
getClassifyingFieldTypes in interface IClassifiedVectorLegendpublic void setClassifyingFieldTypes(int[] fieldTypes)
setClassifyingFieldTypes in interface IClassifiedVectorLegendpublic boolean isSuitableForShapeType(int shapeType)
isSuitableForShapeType in interface IVectorLegendprotected String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
AbstractVectorialLegendgetRequiredFeatureAttributeNames in class AbstractVectorialLegendfeatureStore - the store where the Features belong toFeature attribute namesDataException - if there is an error getting the attribute namespublic Object clone() throws CloneNotSupportedException
Cloneableclone in class AbstractVectorialLegendCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractVectorialLegendPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractVectorialLegendPersistenceException