Class MoveHandle

    • Constructor Detail

      • MoveHandle

        public MoveHandle​(Site s)
        Construct a new grab handle attached to the given site.
    • Method Detail

      • getSite

        public Site getSite()
        Get the site that this handle is attached to
        Specified by:
        getSite in interface GrabHandle
      • getSize

        public float getSize()
        Get the "size" of the grab-handle. The size is half the length of each side. The default is 4.0.
        Specified by:
        getSize in interface GrabHandle
      • relocate

        public void relocate()
        Reposition the grab-handle if necessary
        Specified by:
        relocate in interface GrabHandle
      • setSite

        public void setSite​(Site s)
        Set the set to which this grab-handle is attached.
        Specified by:
        setSite in interface GrabHandle
      • setSize

        public void setSize​(float size)
        Set the "size" of the grab-handle. The size is half the length of each side.
        Specified by:
        setSize in interface GrabHandle
      • translate

        public void translate​(double x,
                              double y)
        Translating a grab-handle moves its parent object, but _doesn't_ move the grab-handle itself.
        Specified by:
        translate in interface Figure
        Overrides:
        translate in class BasicRectangle
        Parameters:
        x - The x value to be moved.
        y - The y value to be moved.