Documentation of 'CH.ifa.draw.standard.AbstractConnector' Java class
AbstractConnector
CH.ifa.draw.standard

Class AbstractConnector

    • Constructor Summary

      Constructors 
      Constructor and Description
      AbstractConnector()
      Constructs a connector that has no owner.
      AbstractConnector(Figure owner)
      Constructs a connector with the given owner figure.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean containsPoint(int x, int y)
      Tests if a point is contained in the connector.
      java.awt.Rectangle displayBox()
      Gets the display box of the connector.
      void draw(java.awt.Graphics g)
      Draws this connector.
      java.awt.Point findEnd(ConnectionFigure connection)
      Finds the end point for the connection.
      java.awt.Point findStart(ConnectionFigure connection)
      Finds the start point for the connection.
      Figure owner()
      Gets the connector's owner.
      void read(StorableInput dr)
      Reads the connector and its owner from a StorableInput.
      void write(StorableOutput dw)
      Stores the connector and its owner to a StorableOutput.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractConnector

        public AbstractConnector()
        Constructs a connector that has no owner. It is only used internally to resurrect a connectors from a StorableOutput. It should never be called directly.
      • AbstractConnector

        public AbstractConnector(Figure owner)
        Constructs a connector with the given owner figure.
    • Method Detail

      • owner

        public Figure owner()
        Gets the connector's owner.
        Specified by:
        owner in interface Connector
      • displayBox

        public java.awt.Rectangle displayBox()
        Gets the display box of the connector.
        Specified by:
        displayBox in interface Connector
      • containsPoint

        public boolean containsPoint(int x,
                                     int y)
        Tests if a point is contained in the connector.
        Specified by:
        containsPoint in interface Connector
      • draw

        public void draw(java.awt.Graphics g)
        Draws this connector. By default connectors are invisible.
        Specified by:
        draw in interface Connector
      • write

        public void write(StorableOutput dw)
        Stores the connector and its owner to a StorableOutput.
        Specified by:
        write in interface Storable
      • read

        public void read(StorableInput dr)
                  throws java.io.IOException
        Reads the connector and its owner from a StorableInput.
        Specified by:
        read in interface Storable
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.