Package selector
Class SelectorApp
java.lang.Object
selector.SelectorApp
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
A graphical application for selecting and extracting regions of images.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the model of the selection tool currently in use.static void
Run an instance of SelectorApp.void
React to property changes in an observed model.void
setImage
(BufferedImage img) Start displaying and selecting from `img` instead of any previous image.void
setSelectionModel
(SelectionModel newModel) Use `newModel` as the selection tool and update our view to reflect its state.void
start()
Start the application by showing its window.
-
Constructor Details
-
Method Details
-
start
public void start()Start the application by showing its window. -
propertyChange
React to property changes in an observed model. Supported properties include: * "state": Update components to reflect the new selection state.- Specified by:
propertyChange
in interfacePropertyChangeListener
-
getSelectionModel
Return the model of the selection tool currently in use. -
setSelectionModel
Use `newModel` as the selection tool and update our view to reflect its state. This application will no longer respond to changes made to its previous selection model and will instead respond to property changes from `newModel`. -
setImage
Start displaying and selecting from `img` instead of any previous image. Argument may be null, in which case no image is displayed and the current selection is reset. -
main
Run an instance of SelectorApp. No program arguments are expected.
-