Class SketchGeometryChangedEvent

  • All Implemented Interfaces:
    Serializable

    public final class SketchGeometryChangedEvent
    extends EventObject
    An event representing a change of the geometry in the sketch editor.
    Since:
    100.1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • SketchGeometryChangedEvent

        public SketchGeometryChangedEvent​(SketchEditor source)
        Constructs a GeometryChangedEvent object.
        Parameters:
        source - a SketchEditor object
        Throws:
        IllegalArgumentException - if source is null
        Since:
        100.1.0
    • Method Detail

      • getSource

        public SketchEditor getSource()
        Returns the source firing the event.
        Overrides:
        getSource in class EventObject
        Returns:
        the SketchEditor instance that fired the event
        Since:
        100.1.0
      • getGeometry

        public Geometry getGeometry()
        Gets the current geometry if the sketch is valid, see SketchEditor.isSketchValid().
        Returns:
        the current geometry or null if the geometry is not valid
        Since:
        100.1.0