public class FigureSelectionEvent
extends java.util.EventObject
EventObject
sent to FigureSelectionListener
s.
Observer
Selection changes of DrawingView
are observed by user interface
components which act on selected figures.
Subject: DrawingView
; Observer:
FigureSelectionListener
; Event: FigureSelectionEvent
.
Constructor and Description |
---|
FigureSelectionEvent(DrawingView source,
java.util.Set<Figure> oldValue,
java.util.Set<Figure> newValue)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Figure> |
getNewSelection() |
java.util.Set<Figure> |
getOldSelection() |
DrawingView |
getView() |
public FigureSelectionEvent(DrawingView source, java.util.Set<Figure> oldValue, java.util.Set<Figure> newValue)
public DrawingView getView()
public java.util.Set<Figure> getOldSelection()
public java.util.Set<Figure> getNewSelection()