com.teamdev.jxcapture.image.operation.positioners
Class DiagonalPositioner

java.lang.Object
  extended by com.teamdev.jxcapture.image.operation.positioners.DiagonalPositioner
All Implemented Interfaces:
Positioner

public class DiagonalPositioner
extends java.lang.Object
implements Positioner

Represents the implementation of the Positioner interface that allows moving the helper dialog diagonally.


Constructor Summary
DiagonalPositioner()
           
 
Method Summary
 java.awt.Point getPosition(PositionInfo positionInfo, java.awt.Point point)
          Returns the specified point that is used as a location to where the helper dialog can be moved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagonalPositioner

public DiagonalPositioner()
Method Detail

getPosition

public java.awt.Point getPosition(PositionInfo positionInfo,
                                  java.awt.Point point)
Description copied from interface: Positioner
Returns the specified point that is used as a location to where the helper dialog can be moved.

Specified by:
getPosition in interface Positioner
Parameters:
positionInfo - the information about the bounds of the components, like screen and helper dialog
point - the current position of the mouse pointer
Returns:
the specified point that is used as a location to where the helper dialog can be moved