Class PathManipulator

    • Constructor Detail

      • PathManipulator

        public PathManipulator()
        Construct a new manipulator that uses rectangular grab-handles.
      • PathManipulator

        public PathManipulator​(GrabHandleFactory f)
        Construct a new manipulator using the given grab-handle factory.
    • Method Detail

      • newInstance

        public FigureDecorator newInstance​(Figure f)
        Create a new instance of this manipulator. The new instance will have the same grab handle, and interactor for grab-handles, as this one.
        Specified by:
        newInstance in class FigureDecorator
        Parameters:
        f - The figure
        Returns:
        The new instance of the figure decorator.
      • refresh

        public void refresh()
        Refresh the geometry.
        Specified by:
        refresh in class Manipulator
      • setChild

        public void setChild​(Figure f)
        Set the child figure. If we have any grab-handles, lose them. Then get a path geometry object set on this figure (the manipulator, not the child) and create grab-handles on it.
        Overrides:
        setChild in class FigureDecorator
        Parameters:
        f - The child figure.