Class SketchGeometryChangedEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SketchGeometryChangedEvent
    extends java.util.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:
        java.lang.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 java.util.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