ptolemy.vergil.icon
Class ResizableAttributeControllerFactory.ResizeAttributeController

java.lang.Object
  extended by diva.graph.BasicNodeController
      extended by ptolemy.vergil.basic.LocatableNodeController
          extended by ptolemy.vergil.basic.NamedObjController
              extended by ptolemy.vergil.basic.ParameterizedNodeController
                  extended by ptolemy.vergil.basic.IconController
                      extended by ptolemy.vergil.kernel.AttributeController
                          extended by ptolemy.vergil.icon.ResizableAttributeControllerFactory.ResizeAttributeController
All Implemented Interfaces:
NodeController
Enclosing class:
ResizableAttributeControllerFactory

public class ResizableAttributeControllerFactory.ResizeAttributeController
extends AttributeController

Custom controller that uses a bounds manipulator to allow the user to resize the image.


Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.vergil.kernel.AttributeController
AttributeController.Access
 
Nested classes/interfaces inherited from class ptolemy.vergil.basic.IconController
IconController.IconRenderer
 
Field Summary
private  AttributeBoundsManipulator _manipulator
           
 
Fields inherited from class ptolemy.vergil.kernel.AttributeController
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL
 
Fields inherited from class ptolemy.vergil.basic.ParameterizedNodeController
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
 
Fields inherited from class ptolemy.vergil.basic.NamedObjController
_configuration
 
Fields inherited from class ptolemy.vergil.basic.LocatableNodeController
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
 
Constructor Summary
ResizableAttributeControllerFactory.ResizeAttributeController(GraphController controller)
          Create a controller associated with the specified graph controller.
 
Method Summary
 void setSnapResolution(double resolution)
          Specify the snap resolution.
 
Methods inherited from class ptolemy.vergil.kernel.AttributeController
_getComponentType, addHotKeys, setConfiguration
 
Methods inherited from class ptolemy.vergil.basic.ParameterizedNodeController
getConfigureMenuFactory
 
Methods inherited from class ptolemy.vergil.basic.LocatableNodeController
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation
 
Methods inherited from class diva.graph.BasicNodeController
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_manipulator

private AttributeBoundsManipulator _manipulator
Constructor Detail

ResizableAttributeControllerFactory.ResizeAttributeController

public ResizableAttributeControllerFactory.ResizeAttributeController(GraphController controller)
Create a controller associated with the specified graph controller. The attribute controller is given full access.

Parameters:
controller - The associated graph controller.
Method Detail

setSnapResolution

public void setSnapResolution(double resolution)
Specify the snap resolution. The default snap resolution is 5.0. This overrides the base class to set the snap resolution on the bounds manipulator as well as the drag interactor.

Overrides:
setSnapResolution in class LocatableNodeController
Parameters:
resolution - The snap resolution.