public class ColorTableLegend extends java.lang.Object implements IClassifiedLegend, ILegend
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLOR_TABLE_LEGEND_DYNCLASS_NAME |
| Constructor and Description |
|---|
ColorTableLegend()
Empty constructor used only for persistence purposes.
|
ColorTableLegend(ISymbol[] s,
java.lang.String[] d)
Leyenda para tablas de color raster.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLegendListener(LegendContentsChangedListener listener)
Adds a new listener to the legend.
|
java.lang.Object |
clone()
Creates a copy of the object.
|
ILegend |
cloneLegend()
Clones the legend.
|
static ColorTableLegend |
createLegend(ColorTable colorTable)
Crea una leyenda de tipo ColorTableLegend a partir de un objeto ColorTable
|
void |
fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
Executed when the default symbol of a legend is changed.
|
java.lang.String |
getClassName() |
ISymbol |
getDefaultSymbol()
Obtains the default symbol of the legend.
|
java.lang.String[] |
getDescriptions()
Obtains the descriptions of the classes that are in the classification
|
LegendContentsChangedListener[] |
getListeners()
Obtains the listeners of a legend.
|
java.lang.String |
getSLDString(java.lang.String layerName) |
ISymbol[] |
getSymbols()
Obtains the symbols of each class of the classification for the user.
|
java.lang.Object[] |
getValues()
Obtains the values in relation with each class of the classification
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
removeLegendListener(LegendContentsChangedListener listener)
Removes a listener from the legend.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlypublic static final java.lang.String COLOR_TABLE_LEGEND_DYNCLASS_NAME
public ColorTableLegend(ISymbol[] s, java.lang.String[] d)
s - Lista de simbolosd - Lista de descripciones de simbolospublic ColorTableLegend()
public static ColorTableLegend createLegend(ColorTable colorTable)
colorTable - public java.lang.String[] getDescriptions()
IClassifiedLegendgetDescriptions in interface IClassifiedLegendpublic ISymbol[] getSymbols()
IClassifiedLegendgetSymbols in interface IClassifiedLegendpublic java.lang.Object[] getValues()
IClassifiedLegendgetValues in interface IClassifiedLegendpublic ILegend cloneLegend()
ILegendcloneLegend in interface ILegendpublic ISymbol getDefaultSymbol()
ILegendgetDefaultSymbol in interface ILegendpublic java.lang.String getSLDString(java.lang.String layerName)
public java.lang.String getClassName()
public void addLegendListener(LegendContentsChangedListener listener)
ILegendaddLegendListener in interface ILegendlistener - to be addedpublic void fireDefaultSymbolChangedEvent(SymbolLegendEvent event)
ILegendfireDefaultSymbolChangedEvent in interface ILegendpublic LegendContentsChangedListener[] getListeners()
ILegendgetListeners in interface ILegendpublic void removeLegendListener(LegendContentsChangedListener listener)
ILegendremoveLegendListener in interface ILegendlistener - to be removedpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.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 PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic static void registerPersistence()