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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enum End point type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUMLConnectionLine(int x1, int y1, int x2, int y2, UMLObjectTypes objectTypes) Instantiates a new Uml connection line. -
Method Summary
Modifier and TypeMethodDescriptionbooleanContains boolean.Gets current end point type.voidHighlight selection.voidInitialize ports.voidReset end point.voidReset location.voidsetDestinationPort(UMLPort umlPort) Sets destination port.voidsetEndPointType(UMLConnectionLine.EndPointTypes endPointType) Sets end point type.voidsetSourcePort(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:UMLObjectInitialize ports.- Specified by:
initializePortsin classUMLObject
-
contains
Description copied from class:UMLObjectContains boolean. -
highlightSelection
Description copied from class:UMLObjectHighlight selection.- Specified by:
highlightSelectionin 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
-