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, zSort
LEGEND_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, setZSort
addDrawingObserver, addLegendListener, addObserver, beginComplexNotification, cloneLegend, countObservers, deleteDrawingObserver, deleteDrawingObservers, deleteObserver, disableNotifications, enableNotifications, endComplexNotification, fireDefaultSymbolChangedEvent, getListeners, getManager, getSymbolManager, inComplex, isEnabledNotifications, notifyObservers, notifyObservers, removeLegendListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSymbol, clear, delSymbol, replace
getDescriptions, getSymbols, getValues
draw, draw, getShapeType, getSymbolByFeature, isUseDefaultSymbol, print, print, setDefaultSymbol, setShapeType, useDefaultSymbol
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getDefaultSymbol, getListeners, removeLegendListener
addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers
public static final String CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAME
public void fireClassifiedSymbolChangeEvent(SymbolLegendEvent event)
event
- public void fireLegendClearEvent(LegendClearEvent event)
event
- public String[] getClassifyingFieldNames()
IClassifiedVectorLegend
getClassifyingFieldNames
in interface IClassifiedVectorLegend
public void setClassifyingFieldNames(String[] fieldNames)
IClassifiedVectorLegend
setClassifyingFieldNames
in interface IClassifiedVectorLegend
fieldNames
- Names of the fields.
TODO refactor to allow more than one field namepublic int[] getClassifyingFieldTypes()
getClassifyingFieldTypes
in interface IClassifiedVectorLegend
public void setClassifyingFieldTypes(int[] fieldTypes)
setClassifyingFieldTypes
in interface IClassifiedVectorLegend
public boolean isSuitableForShapeType(int shapeType)
isSuitableForShapeType
in interface IVectorLegend
protected String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
AbstractVectorialLegend
getRequiredFeatureAttributeNames
in class AbstractVectorialLegend
featureStore
- the store where the Feature
s belong toFeature
attribute namesDataException
- if there is an error getting the attribute namespublic Object clone() throws CloneNotSupportedException
Cloneable
clone
in class AbstractVectorialLegend
CloneNotSupportedException
- 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
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractVectorialLegend
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractVectorialLegend
PersistenceException