ptolemy.vergil.toolbox
Class AttributeBoundsManipulator.Resizer

java.lang.Object
  extended by diva.canvas.interactor.AbstractInteractor
      extended by diva.canvas.interactor.DragInteractor
          extended by ptolemy.vergil.toolbox.AttributeBoundsManipulator.Resizer
All Implemented Interfaces:
LayerListener, LayerMotionListener, Interactor, java.util.EventListener
Enclosing class:
AttributeBoundsManipulator

private class AttributeBoundsManipulator.Resizer
extends DragInteractor

An interactor class that changes the bounds of the child figure and triggers a repaint.


Field Summary
private  SnapConstraint _snapConstraint
           
 
Constructor Summary
AttributeBoundsManipulator.Resizer()
          Create a new resizer.
 
Method Summary
 void mouseReleased(LayerEvent e)
          Override the base class to notify the enclosing BoundsInteractor.
 void setSnapResolution(double resolution)
          Set the snap resolution.
 void translate(LayerEvent e, double x, double y)
          Translate the grab-handle.
 
Methods inherited from class diva.canvas.interactor.DragInteractor
addLayerListener, appendConstraint, constrainPoint, fireLayerEvent, getSelectiveEnabled, getTargetArray, getX, getY, mouseDragged, mousePressed, prependConstraint, removeLayerListener, setSelectiveEnabled, setTargetArray, setup, targets
 
Methods inherited from class diva.canvas.interactor.AbstractInteractor
accept, getMouseFilter, isConsuming, isEnabled, isMotionEnabled, mouseClicked, mouseEntered, mouseExited, mouseMoved, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_snapConstraint

private SnapConstraint _snapConstraint
Constructor Detail

AttributeBoundsManipulator.Resizer

public AttributeBoundsManipulator.Resizer()
Create a new resizer.

Method Detail

mouseReleased

public void mouseReleased(LayerEvent e)
Override the base class to notify the enclosing BoundsInteractor.

Specified by:
mouseReleased in interface LayerListener
Overrides:
mouseReleased in class DragInteractor
Parameters:
e - The mouse event.

setSnapResolution

public void setSnapResolution(double resolution)
Set the snap resolution.

Parameters:
resolution - The snap resolution.

translate

public void translate(LayerEvent e,
                      double x,
                      double y)
Translate the grab-handle.

Overrides:
translate in class DragInteractor