Class UMLConnectionLine

java.lang.Object
com.xxrjun.components.uml.UMLObject
com.xxrjun.components.uml.connectionlines.UMLConnectionLine
Direct Known Subclasses:
AssociationLine, CompositionLine, GeneralizationLine

public abstract class UMLConnectionLine extends UMLObject
The type Uml connection line.
  • Constructor Details

    • UMLConnectionLine

      protected UMLConnectionLine(int x1, int y1, int x2, int y2, UMLObjectTypes objectTypes)
      Instantiates a new Uml connection line.
      Parameters:
      x1 - the x 1
      y1 - the y 1
      x2 - the x 2
      y2 - the y 2
      objectTypes - the object types
  • Method Details

    • initializePorts

      public void initializePorts()
      Description copied from class: UMLObject
      Initialize ports.
      Specified by:
      initializePorts in class UMLObject
    • contains

      public boolean contains(Point p)
      Description copied from class: UMLObject
      Contains boolean.
      Specified by:
      contains in class UMLObject
      Parameters:
      p - the p
      Returns:
      the boolean
    • highlightSelection

      public void highlightSelection(Graphics g)
      Description copied from class: UMLObject
      Highlight selection.
      Specified by:
      highlightSelection in class UMLObject
      Parameters:
      g - the g
    • resetLocation

      public void resetLocation()
      Reset location.
    • resetEndPoint

      public void resetEndPoint(Point p)
      Reset end point.
      Parameters:
      p - the p
    • setSourcePort

      public void setSourcePort(UMLPort umlPort)
      Sets source port.
      Parameters:
      umlPort - the uml port
    • setDestinationPort

      public void setDestinationPort(UMLPort umlPort)
      Sets destination port.
      Parameters:
      umlPort - the uml port
    • getCurrentEndPointType

      public UMLConnectionLine.EndPointTypes getCurrentEndPointType()
      Gets current end point type.
      Returns:
      the current end point type
    • setEndPointType

      public void setEndPointType(UMLConnectionLine.EndPointTypes endPointType)
      Sets end point type.
      Parameters:
      endPointType - the end point type