Class CanvasSelectionEvent

  • All Implemented Interfaces:
    Serializable

    public class CanvasSelectionEvent
    extends EventObject
    An event that characterizes a change in the current selection.
    Author:
    Kiyut
    See Also:
    Serialized Form
    • Constructor Detail

      • CanvasSelectionEvent

        public CanvasSelectionEvent​(Object source,
                                    List<org.w3c.dom.svg.SVGElement> selectionList)
        Construct a CanvasSelectionEvent object
        Parameters:
        source - the Object that originated the event
        selectionList - the selection list
    • Method Detail

      • getSelectionList

        public List<org.w3c.dom.svg.SVGElement> getSelectionList()
        Return the selection list
        Returns:
        selection list
      • isEmpty

        public boolean isEmpty()
        Test if the selection list has no elements.
        Returns:
        true if selections list has no elements; false otherwise.