JHotDraw 7.4.1

org.jhotdraw.draw.event
Class FigureSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jhotdraw.draw.event.FigureSelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class FigureSelectionEvent
extends java.util.EventObject

An EventObject sent to FigureSelectionListeners.


Design Patterns

Observer
Selection changes of DrawingView are observed by user interface components which act on selected figures.
Subject: DrawingView; Observer: FigureSelectionListener; Event: FigureSelectionEvent.


Version:
$Id: FigureSelectionEvent.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FigureSelectionEvent(DrawingView source, java.util.Set<Figure> oldValue, java.util.Set<Figure> newValue)
          Creates a new instance.
 
Method Summary
 java.util.Set<Figure> getNewSelection()
           
 java.util.Set<Figure> getOldSelection()
           
 DrawingView getView()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FigureSelectionEvent

public FigureSelectionEvent(DrawingView source,
                            java.util.Set<Figure> oldValue,
                            java.util.Set<Figure> newValue)
Creates a new instance.

Method Detail

getView

public DrawingView getView()

getOldSelection

public java.util.Set<Figure> getOldSelection()

getNewSelection

public java.util.Set<Figure> getNewSelection()

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.