com.supermap.mapping

Class GeometryEvent

  • java.lang.Object
    • java.util.EventObject
      • com.supermap.mapping.GeometryEvent
  • All Implemented Interfaces:
    java.io.Serializable


    public class GeometryEvent
    extends java.util.EventObject
    Indicates the event that the geometric object is edited.

    The geometry object edit events include: GeometryDeleting, GeometryAdded, GeometryModifying and GeometryModified.

    Occurs when a geometric object is edited in an interactive map editing.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getCancel()
      Returns the value incidents whether to cancel the event.
      int getID()
      Returns the ID of the geometric object to be edited currently.
      Layer getLayer()
      Returns the layer which the geometric object to be edited currently belongs to.
      void setCancel(boolean value)
      Sets the value incidents whether to cancel the event.
      java.lang.String toString()
      Returns the character string describing the object of the GeometryEventArgs class.
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getID

        public int getID()
        Returns the ID of the geometric object to be edited currently.
        Returns:
        The ID of the collection object to be edited currently.
      • setCancel

        public void setCancel(boolean value)
        Sets the value incidents whether to cancel the event.
        Parameters:
        value - The value incidents whether to cancel the event.true indicates that the event should be canceled.
      • getCancel

        public boolean getCancel()
        Returns the value incidents whether to cancel the event.
        Returns:
        A boolean, true means cancel the event;Otherwise false.
      • getLayer

        public Layer getLayer()
        Returns the layer which the geometric object to be edited currently belongs to.
        Returns:
        The layer which the geometric object to be edited currently belongs to.
      • toString

        public java.lang.String toString()
        Returns the character string describing the object of the GeometryEventArgs class. The format of the character string is {ID=,Cancel=,Layer="the name of the layer"}.
        Overrides:
        toString in class java.util.EventObject
        Returns:
        The string describing the object instance.