Documentation of 'CH.ifa.draw.framework.ConnectionFigure' Java class
ConnectionFigure
CH.ifa.draw.framework

Interface ConnectionFigure

    • Method Detail

      • connectStart

        void connectStart(Connector start)
        Sets the start Connector of the connection.
        Parameters:
        figure - the start figure of the connection
      • connectEnd

        void connectEnd(Connector end)
        Sets the end Connector of the connection.
        Parameters:
        figure - the end figure of the connection
      • updateConnection

        void updateConnection()
        Updates the connection
      • disconnectStart

        void disconnectStart()
        Disconnects the start figure from the dependent figure
      • disconnectEnd

        void disconnectEnd()
        Disconnects the end figure from the dependent figure
      • start

        Connector start()
        Gets the start Connector
      • end

        Connector end()
        Gets the end Connector.
      • canConnect

        boolean canConnect(Figure start,
                           Figure end)
        Checks if two figures can be connected. Implement this method to constrain the allowed connections between figures.
      • connectsSame

        boolean connectsSame(ConnectionFigure other)
        Checks if the ConnectionFigure connects the same figures.
      • startPoint

        void startPoint(int x,
                        int y)
        Sets the start point.
      • endPoint

        void endPoint(int x,
                      int y)
        Sets the end point.
      • startPoint

        java.awt.Point startPoint()
        Gets the start point.
      • endPoint

        java.awt.Point endPoint()
        Gets the end point.
      • setPointAt

        void setPointAt(java.awt.Point p,
                        int index)
        Sets the position of the point at the given position
      • pointAt

        java.awt.Point pointAt(int index)
        Gets the Point at the given position
      • pointCount

        int pointCount()
        Gets the number of points or nodes of the connection
      • splitSegment

        int splitSegment(int x,
                         int y)
        Splits the hit segment.
        Parameters:
        x, - y the position where the figure should be split
        Returns:
        the index of the splitting point
      • joinSegments

        boolean joinSegments(int x,
                             int y)
        Joins the hit segments.
        Parameters:
        x, - y the position where the figure should be joined.
        Returns:
        whether the segment was joined

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.