public class DefaultDynamicVectorLegend extends AbstractVectorialLegend implements DynamicVectorLegend
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultDynamicVectorLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DYNAMIC_VECTOR_PERSISTENCE_DEFINITION_NAME |
static Expression |
expFillColor |
static Expression |
expOutlineColor |
static Expression |
expRotation |
static Expression |
expSize |
static java.lang.String[] |
requiredAttributes |
VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSortLEGEND_PERSISTENCE_DEFINITION_NAMENAME| Constructor and Description |
|---|
DefaultDynamicVectorLegend()
Constructor method, needed by persistence.
|
DefaultDynamicVectorLegend(ISymbol style)
Convenience fast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
java.lang.String |
getClassName() |
ISymbol |
getDefaultSymbol()
Obtains the default symbol of the legend.
|
protected java.lang.String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore)
|
int |
getShapeType()
Returns the type of the shape.
|
ISymbol |
getSymbol(int recordIndex) |
ISymbol |
getSymbolByFeature(Feature feat)
Returns a symbol starting from an IFeature.
|
java.lang.String[] |
getUsedFields() |
boolean |
isSuitableForShapeType(int shapeType) |
boolean |
isUseDefaultSymbol()
Returns true or false depending on if the rest of values are used.
|
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.
|
static void |
selfRegister() |
void |
setDefaultSymbol(ISymbol s)
Establishes the default symbol of a legend.
|
void |
setFeatureStore(FeatureStore fs) |
void |
setFillColor(Expression expression) |
void |
setOutlineColor(Expression expression) |
void |
setRotation(Expression expression) |
void |
setShapeType(int shapeType)
Defines the type of the shape.
|
void |
setSize(Expression expression) |
void |
useDefaultSymbol(boolean b) |
draw, draw, draw, drawFeatures, getZSort, internalDraw, isDrawSymbolInEeachPrimitive, print, print, setDrawSymbolInEeachPrimitive, 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, waitdraw, draw, print, printaddLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenercloneQuietly, cloneQuietlyaddDrawingObserver, deleteDrawingObserver, deleteDrawingObserverspublic static final java.lang.String DYNAMIC_VECTOR_PERSISTENCE_DEFINITION_NAME
public static Expression expOutlineColor
public static Expression expFillColor
public static Expression expSize
public static Expression expRotation
public static java.lang.String[] requiredAttributes
public DefaultDynamicVectorLegend()
public DefaultDynamicVectorLegend(ISymbol style)
style - Símbolo.public void setDefaultSymbol(ISymbol s)
IVectorLegendsetDefaultSymbol in interface IVectorLegends - default symbol.public ISymbol getSymbol(int recordIndex)
public ISymbol getDefaultSymbol()
IVectorLegendgetDefaultSymbol in interface ILegendgetDefaultSymbol in interface IVectorLegendpublic int getShapeType()
IVectorLegendgetShapeType in interface IVectorLegendpublic void setShapeType(int shapeType)
IVectorLegendsetShapeType in interface IVectorLegendshapeType - type of the shape.public void setOutlineColor(Expression expression)
public void setFillColor(Expression expression)
public void setSize(Expression expression)
public void setRotation(Expression expression)
public ISymbol getSymbolByFeature(Feature feat)
IVectorLegendgetSymbolByFeature in interface IVectorLegendfeat - IFeature.public void useDefaultSymbol(boolean b)
useDefaultSymbol in interface IVectorLegendpublic java.lang.String[] getUsedFields()
public boolean isUseDefaultSymbol()
IVectorLegendisUseDefaultSymbol in interface IVectorLegendpublic java.lang.String getClassName()
public boolean isSuitableForShapeType(int shapeType)
isSuitableForShapeType in interface IVectorLegendpublic void setFeatureStore(FeatureStore fs) throws DataException
DataExceptionprotected java.lang.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 java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractVectorialLegendjava.lang.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
PersistentloadFromState in interface PersistentloadFromState in class AbstractVectorialLegendPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractVectorialLegendPersistenceExceptionpublic static void selfRegister()