Documentation of 'org.jhotdraw.draw.connector.StickyRectangleConnector' Java class
StickyRectangleConnector
org.jhotdraw.draw.connector

Class StickyRectangleConnector

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Connector, DOMStorable


    public class StickyRectangleConnector
    extends ChopRectangleConnector
    A StickyRectangleConnector locates connection points by choping the connection between the centers of the two figures at the display box.

    The location of the connection point is computed once, when the user connects the figure. Moving the figure around will not change the location.

    See Also:
    Serialized Form
    • Constructor Detail

      • StickyRectangleConnector

        public StickyRectangleConnector()
        Creates a new instance. Only used for storable.
      • StickyRectangleConnector

        public StickyRectangleConnector(Figure owner)
      • StickyRectangleConnector

        public StickyRectangleConnector(Figure owner,
                                        java.awt.geom.Point2D.Double p)
    • Method Detail

      • setAngle

        public void setAngle(float angle)
      • getAngle

        public double getAngle()
      • updateAnchor

        public void updateAnchor(java.awt.geom.Point2D.Double p)
        Description copied from interface: Connector
        Updates the anchor of the connector. This method is called when the user manually changes the end point of the ConnectionFigure. The Connector uses this as a hint for choosing a new anchor position.
        Specified by:
        updateAnchor in interface Connector
        Overrides:
        updateAnchor in class AbstractConnector
      • getAnchor

        public java.awt.geom.Point2D.Double getAnchor()
        Description copied from interface: Connector
        Gets the anchor of the connector. This is a point at the center or at the bounds of the figure, where the start or the end point will most likely be attached. The purpose of this method is to give the user a hint, where the connector will most likely be attached to the owner of the connector.
        Specified by:
        getAnchor in interface Connector
        Overrides:
        getAnchor in class AbstractConnector
      • getParameters

        public java.lang.String getParameters()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.