Package ptolemy.vergil.icon
Class ResizableAttributeControllerFactory.ResizeAttributeController
- java.lang.Object
-
- diva.graph.BasicNodeController
-
- ptolemy.vergil.basic.LocatableNodeController
-
- ptolemy.vergil.basic.NamedObjController
-
- ptolemy.vergil.basic.ParameterizedNodeController
-
- ptolemy.vergil.basic.IconController
-
- ptolemy.vergil.kernel.AttributeController
-
- 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
-
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
Constructors Constructor Description ResizeAttributeController(GraphController controller)
Create a controller associated with the specified graph controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setSnapResolution(double resolution)
Specify the snap resolution.-
Methods inherited from class ptolemy.vergil.kernel.AttributeController
_getComponentType, _moveToFirstDescription, _moveToLastDescription, addHotKeys, renderDecoratorHighlight, renderHighlight, 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
-
-
-
-
Constructor Detail
-
ResizeAttributeController
public 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 classLocatableNodeController
- Parameters:
resolution
- The snap resolution.
-
-