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

public interface LegendEvent extends FMapEvent

LegendEvent represents an event produced at a legend in a layer.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifies this event as a changed of a legend.
    static final int
    Identifies this event as a change on the classification of a legend.
    static final int
    Identifies this event as a clear of a legend.
    static final int
    Identifies this event as a legend interval change.
    static final int
    Identifies this event as a change of the symbol of a legend.
    static final int
    Identifies this event as a change of the value of a legend.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the subtype of this event.
    Returns the layer of the legend where the event was produced, as a classifiable and vector layer.
    void
    setEventSubtype(int eventSubtype)
    Sets the subtype of the event.
    void
    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_CHANGED

      Identifies this event as a changed of a legend.

      See Also:
    • LEGEND_VALUE_CHANGED

      static final int LEGEND_VALUE_CHANGED

      Identifies this event as a change of the value of a legend.

      See Also:
    • LEGEND_SYMBOL_CHANGED

      static final int LEGEND_SYMBOL_CHANGED

      Identifies this event as a change of the symbol of a legend.

      See Also:
    • LEGEND_INTERVAL_CHANGED

      static final int LEGEND_INTERVAL_CHANGED

      Identifies this event as a legend interval change.

      See Also:
    • LEGEND_CLEARED

      static final int LEGEND_CLEARED

      Identifies this event as a clear of a legend.

      See Also:
    • LEGEND_CLASSIFICATION_CHANGED

      static final int LEGEND_CLASSIFICATION_CHANGED

      Identifies this event as a change on the classification of a legend.

      See Also:
  • Method Details

    • 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

      void setLayer(ClassifiableVectorial layer)

      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