public class SingleSymbolLegend extends AbstractVectorialLegend implements ISingleSymbolLegend
| Modifier and Type | Class and Description |
|---|---|
static class |
SingleSymbolLegend.RegisterLegend |
static class |
SingleSymbolLegend.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SINGLE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LOG, VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSortLEGEND_PERSISTENCE_DEFINITION_NAMELEGEND_NAME| Constructor and Description |
|---|
SingleSymbolLegend()
Constructor method, needed by persistence.
|
SingleSymbolLegend(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.
|
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.
|
void |
setDefaultSymbol(ISymbol s)
Establishes the default symbol of a legend.
|
void |
setFeatureStore(FeatureStore fs) |
void |
setShapeType(int shapeType)
Defines the type of the shape.
|
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, waitgetZSort, setZSortdraw, draw, print, printaddLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenercloneQuietly, cloneQuietlyaddDrawingObserver, deleteDrawingObserver, deleteDrawingObserverspublic static final java.lang.String SINGLE_SYMBOL_PERSISTENCE_DEFINITION_NAME
public SingleSymbolLegend()
public SingleSymbolLegend(ISymbol style)
style - Symbol.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 ISymbol getSymbolByFeature(Feature feat)
IVectorLegendgetSymbolByFeature in interface IVectorLegendfeat - IFeature.public void useDefaultSymbol(boolean b)
useDefaultSymbol in interface IVectorLegendpublic 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 AbstractVectorialLegendPersistenceException