Class FigureChangeEvent

    • Field Detail

      • FIGURES_ADDED

        public static final FigureChangeEvent.Type FIGURES_ADDED
        Figures have been added to a (source-) figure.
      • FIGURES_REMOVED

        public static final FigureChangeEvent.Type FIGURES_REMOVED
        Figures have been removed from a (source-) figure.
    • Constructor Detail

      • FigureChangeEvent

        public FigureChangeEvent​(Figure sourceFigure,
                                 FigureChangeEvent.Type type,
                                 Figure[] figures)
        Constructor.
        Parameters:
        sourceFigure - The source figure which caused the event.
        type - The type of the event.
        figures - The figures added or removed. Should be null if the event type is FIGURE_CHANGED.
    • Method Detail

      • getSourceFigure

        public Figure getSourceFigure()
        Returns:
        The source figure which caused the event.
      • getFigures

        public Figure[] getFigures()
        Returns:
        The figures added or removed. Returns null if the event type is FIGURE_CHANGED.