com.teamdev.jxcapture.image.operation.controllers
Class RegionController

java.lang.Object
  extended by com.teamdev.jxcapture.image.operation.controllers.SelectionController
      extended by com.teamdev.jxcapture.image.operation.controllers.RegionController

public class RegionController
extends SelectionController

The specified controller for processing the mouse and key events during the capture of the region.


Field Summary
 
Fields inherited from class com.teamdev.jxcapture.image.operation.controllers.SelectionController
captureListener
 
Constructor Summary
RegionController(SelectionPainter selectionPainter)
           
 
Method Summary
 SelectionPainter getSelectionPainter()
          Returns a SelectionPainter object.
 boolean onKeyAction(java.awt.event.KeyEvent event)
          Invoked when a key action has occurred.
 boolean onMouseAction(java.awt.event.MouseEvent event)
          Invoked when a mouse action has occurred.
 
Methods inherited from class com.teamdev.jxcapture.image.operation.controllers.SelectionController
activate, fireCancelAction, fireCompleteAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionController

public RegionController(SelectionPainter selectionPainter)
Method Detail

onKeyAction

public boolean onKeyAction(java.awt.event.KeyEvent event)
Description copied from class: SelectionController
Invoked when a key action has occurred.

Specified by:
onKeyAction in class SelectionController
Returns:
If need repaint returns true, otherwise - false

onMouseAction

public boolean onMouseAction(java.awt.event.MouseEvent event)
Description copied from class: SelectionController
Invoked when a mouse action has occurred.

Specified by:
onMouseAction in class SelectionController
Returns:
If need repaint returns true, otherwise - false

getSelectionPainter

public SelectionPainter getSelectionPainter()
Description copied from class: SelectionController
Returns a SelectionPainter object.

Specified by:
getSelectionPainter in class SelectionController