Interface LegendEvent
- All Superinterfaces:
FMapEvent
- All Known Subinterfaces:
RasterLegendEvent,VectorLegendEvent
- All Known Implementing Classes:
ChangeColorInterpretationEvent,ChangeOperationListEvent,ChangePaletteBandEvent,ChangePaletteEvent,ClassificationLegendEvent,IntervalLegendEvent,LabelLegendEvent,LegendChangedEvent,LegendClearEvent,LegendEventBase,RasterLegendEventBase,SymbolLegendEvent,ValueLegendEvent,VectorLegendEventBase
LegendEvent represents an event produced at a legend in a layer.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifies this event as a changed of a legend.static final intIdentifies this event as a change on the classification of a legend.static final intIdentifies this event as a clear of a legend.static final intIdentifies this event as a legend interval change.static final intIdentifies this event as a change of the symbol of a legend.static final intIdentifies this event as a change of the value of a legend. -
Method Summary
Modifier and TypeMethodDescriptionintGets the subtype of this event.getLayer()Returns the layer of the legend where the event was produced, as a classifiable and vector layer.voidsetEventSubtype(int eventSubtype) Sets the subtype of the event.voidsetLayer(ClassifiableVectorial layer) Sets the layer of the legend where the event was produced, as a classifiable and vector layer.Methods inherited from interface org.gvsig.fmap.mapcontext.events.FMapEvent
getEventType, setEventType
-
Field Details
-
LEGEND_CHANGED
static final int LEGEND_CHANGEDIdentifies this event as a changed of a legend.
- See Also:
-
LEGEND_VALUE_CHANGED
static final int LEGEND_VALUE_CHANGEDIdentifies this event as a change of the value of a legend.
- See Also:
-
LEGEND_SYMBOL_CHANGED
static final int LEGEND_SYMBOL_CHANGEDIdentifies this event as a change of the symbol of a legend.
- See Also:
-
LEGEND_INTERVAL_CHANGED
static final int LEGEND_INTERVAL_CHANGEDIdentifies this event as a legend interval change.
- See Also:
-
LEGEND_CLEARED
static final int LEGEND_CLEAREDIdentifies this event as a clear of a legend.
- See Also:
-
LEGEND_CLASSIFICATION_CHANGED
static final int LEGEND_CLASSIFICATION_CHANGEDIdentifies this event as a change on the classification of a legend.
- See Also:
-
-
Method Details
-
getLayer
ClassifiableVectorial getLayer()Returns the layer of the legend where the event was produced, as a classifiable and vector layer.
- Returns:
- the layer where the event was produced, as classifiable vector
-
setLayer
Sets the layer of the legend where the event was produced, as a classifiable and vector layer.
- Parameters:
layer- the layer where the event was produced, as classifiable vector
-
getEventSubtype
int getEventSubtype()Gets the subtype of this event.
- Returns:
- the subtype of this event
-
setEventSubtype
void setEventSubtype(int eventSubtype) Sets the subtype of the event.
- Parameters:
eventSubtype- the number that identifies this event's type
-