Interface ILegend
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,Legend,org.gvsig.tools.persistence.Persistent
- All Known Subinterfaces:
IClassifiedLegend,IClassifiedRasterLegend,IClassifiedVectorLegend,IRasterLegend,ISingleSymbolLegend,IVectorialIntervalLegend,IVectorialUniqueValueLegend,IVectorLegend,RasterLegend
Information about the legend to be represented in the interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new listener to the legend.Clones the legend.voidExecuted when the default symbol of a legend is changed.Obtains the default symbol of the legend.Obtains the listeners of a legend.voidRemoves a listener from the legend.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Method Details
-
getDefaultSymbol
ISymbol getDefaultSymbol()Obtains the default symbol of the legend.- Returns:
- default symbol.
-
cloneLegend
ILegend cloneLegend()Clones the legend.- Returns:
- Cloned legend.
-
addLegendListener
Adds a new listener to the legend.- Parameters:
listener- to be added
-
removeLegendListener
Removes a listener from the legend.- Parameters:
listener- to be removed
-
fireDefaultSymbolChangedEvent
Executed when the default symbol of a legend is changed.- Parameters:
event-
-
getListeners
LegendContentsChangedListener[] getListeners()Obtains the listeners of a legend.- Returns:
- LegendListener[] array composed by the listeners of a legend.
-