Class UMLConnectionLine
java.lang.Object
com.xxrjun.components.uml.UMLObject
com.xxrjun.components.uml.connectionlines.UMLConnectionLine
- Direct Known Subclasses:
AssociationLine
,CompositionLine
,GeneralizationLine
The type Uml connection line.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The enum End point type. -
Constructor Summary
ModifierConstructorDescriptionprotected
UMLConnectionLine
(int x1, int y1, int x2, int y2, UMLObjectTypes objectTypes) Instantiates a new Uml connection line. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Contains boolean.Gets current end point type.void
Highlight selection.void
Initialize ports.void
Reset end point.void
Reset location.void
setDestinationPort
(UMLPort umlPort) Sets destination port.void
setEndPointType
(UMLConnectionLine.EndPointTypes endPointType) Sets end point type.void
setSourcePort
(UMLPort umlPort) Sets source port.Methods inherited from class com.xxrjun.components.uml.UMLObject
draw, getBounds, getObjectType, getX1, getX2, getY1, getY2, isGroupSelected, isNameChangeable, setGroupSelected, setNameChangeable, setObjectType, setX1, setX2, setY1, setY2, updateLocation
-
Constructor Details
-
UMLConnectionLine
Instantiates a new Uml connection line.- Parameters:
x1
- the x 1y1
- the y 1x2
- the x 2y2
- the y 2objectTypes
- the object types
-
-
Method Details
-
initializePorts
public void initializePorts()Description copied from class:UMLObject
Initialize ports.- Specified by:
initializePorts
in classUMLObject
-
contains
Description copied from class:UMLObject
Contains boolean. -
highlightSelection
Description copied from class:UMLObject
Highlight selection.- Specified by:
highlightSelection
in classUMLObject
- Parameters:
g
- the g
-
resetLocation
public void resetLocation()Reset location. -
resetEndPoint
Reset end point.- Parameters:
p
- the p
-
setSourcePort
Sets source port.- Parameters:
umlPort
- the uml port
-
setDestinationPort
Sets destination port.- Parameters:
umlPort
- the uml port
-
getCurrentEndPointType
Gets current end point type.- Returns:
- the current end point type
-
setEndPointType
Sets end point type.- Parameters:
endPointType
- the end point type
-