Class CircleManipulator

    • Constructor Detail

      • CircleManipulator

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

        public CircleManipulator​(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. This adjusts the bounds of the geometry to match the bounds of the child figure.
        Specified by:
        refresh in class Manipulator
      • setChild

        public void setChild​(Figure child)
        Set the child figure. If we have a grab-handle, lose it. Then get a rectangle geometry object and create a grab-handle on one of its sites.
        Overrides:
        setChild in class FigureDecorator
        Parameters:
        child - The child figure.
      • setDragInteractor

        public void setDragInteractor​(Interactor dragger)
        Set the drag interactor for figures wrapped by this manipulator. If set, the manipulator displays an additional handle that can be used to drag the figure. This is useful for certain types of figure that are outlines only.