JHotDraw 6.0b1

org.jhotdraw.contrib
Interface PopupMenuFigureSelection


public interface PopupMenuFigureSelection

An interface which allows a popup menu to interact with its Figure to which it is associated.


Method Summary
 Figure getSelectedFigure()
          Get the figure which was selected when the popup menu was invoked.
 void setSelectedFigure(Figure newSelectedFigure)
          Set the figure which was selected when the popup menu was invoked.
 

Method Detail

setSelectedFigure

void setSelectedFigure(Figure newSelectedFigure)
Set the figure which was selected when the popup menu was invoked.

Parameters:
newSelectedFigure - figure which is selected (typically be a SelectionTool)

getSelectedFigure

Figure getSelectedFigure()
Get the figure which was selected when the popup menu was invoked.

Returns:
figure which is selected (typically be a SelectionTool)

JHotDraw 6.0b1