Class UMLConnector
java.lang.Object
- All Implemented Interfaces:
AllowsConditionalProcessingAttributes, AllowsDocumentElementEventAttributes, AllowsDocumentEventAttributes, AllowsGlobalEventAttributes, AllowsGraphicalEventAttributes, AllowsPresentationAttributes, AllowsStyleAttributes, AllowsXLinkAttributes, SVGClipPath, SVGElement, SVGElementWithChildren, SVGGroup, SVGLine, SVGMarker, SVGPath, SVGPositionedMarker, SVGRectangle, SVGStyle, SVGSymbol, SVGText, SVGTSpan, SVGUse, Element, XMLElement
@ClassVersion(sourceVersion="$Id: UMLConnector.java 1133 2024-05-10 21:43:08Z tquadrat $")
@API(status=INTERNAL,
since="0.0.5")
public final class UMLConnector
extends SVGElementAdapter
The representation of the lines that connects the type elements in a UML
diagram.
Instances of this class are used as if they are an instance of
Instances of this class are used as if they are an instance of
SVGPath.- Author:
- Thomas Thrien - thomas.thrien@tquadrat.org
- Version:
- $Id: UMLConnector.java 1133 2024-05-10 21:43:08Z tquadrat $
- Since:
- 0.0.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface XMLElement
XMLElement.Flags -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeSymbolThe type symbol for the child (where the connector starts).private final UMLConnectorTypeThe type for this connector.private PointThe end point for the path representing this connector.private final TypeSymbolThe type symbol for the parent (where the connector ends).private PointThe start point for the path representing this connector.Fields inherited from interface AllowsConditionalProcessingAttributes
CONDITIONALPROCESSING_ATTRIBUTESFields inherited from interface AllowsDocumentElementEventAttributes
DOCUMENTELEMENTEVENT_ATTRIBUTESFields inherited from interface AllowsDocumentEventAttributes
DOCUMENTEVENT_ATTRIBUTESFields inherited from interface AllowsGlobalEventAttributes
GLOBALEVENT_ATTRIBUTESFields inherited from interface AllowsGraphicalEventAttributes
GRAPHICALEVENT_ATTRIBUTESFields inherited from interface AllowsPresentationAttributes
PRESENTATION_ATTRIBUTESFields inherited from interface AllowsStyleAttributes
STYLE_ATTRIBUTESFields inherited from interface AllowsXLinkAttributes
XLINK_ATTRIBUTESFields inherited from interface SVGElement
CORE_ATTRIBUTESFields inherited from interface XMLElement
NO_APPEND -
Constructor Summary
ConstructorsConstructorDescriptionUMLConnector(UMLConnectorType type, TypeSymbol parent, TypeSymbol child) Creates a newUMLConnectorinstance. -
Method Summary
Modifier and TypeMethodDescriptionfinal SVGPathReturns thisUMLConnectorinstance as an instance ofSVGPath.private final SVGPathElement[]Composes the path that represents this UML connector.Provides read access to the attributes.final TypeSymbolReturns the type symbol where the connector starts.final TypeSymbolReturns the type symbol where the connector ends.final voidsetEndPoint(double x, double y) Sets the end point for the path representing this connector.final voidsetMarkerEnd(URI ignored) The markers for the path representing this UML connector are set internally, so this method will do nothing.final voidsetMarkerMid(URI ignored) The markers for the path representing this UML connector are set internally, so this method will do nothing.final voidsetMarkerStart(URI ignored) The markers for the path representing this UML connector are set internally, so this method will do nothing.final voidsetPathDefinition(SVGPathElement... ignored) The definition of the path for this UML connector is done internally, so calling this method does not have any effect.final voidsetPathLength(SVGNumber.SVGUserUnitValue ignored) The definition of the path for this UML connector is done internally, so calling this method does not have any effect.final voidsetStartPoint(double x, double y) Sets the start point for the path representing this connector.Methods inherited from class SVGElementAdapter
addStyle, defineLine, getStyleSheet, merge, setClipPathUnits, setDx, setDy, setLengthAdjust, setMarkerHeight, setMarkerUnits, setMarkerWidth, setOrientation, setOrientation, setPathLength, setPathLength, setPosition, setReferenceX, setReferenceY, setRotate, setTextLength, setX, setX1, setX2, setY, setY1, setY2, toStringMethods inherited from class SVGElementImpl
addChild, setAbortHandler, setActivationHandler, setAlignmentBaseline, setAttribute, setBaselineShift, setCancelHandler, setCanPlayHandler, setCanPlayThroughHandler, setChangeHandler, setClass, setClickHandler, setClip, setClipPath, setClipRule, setCloseHandler, setColor, setColorInterpolation, setColorInterpolationFilters, setColorProfile, setColorRendering, setCopyHandler, setCueChangeHandler, setCursor, setCutHandler, setDblClickHandler, setDescription, setDirection, setDisplay, setDominantBaseline, setDragEndHandler, setDragEnterHandler, setDragExitHandler, setDragHandler, setDragLeaveHandler, setDragOverHandler, setDragStartHandler, setDropHandler, setDurationChangeHandler, setEmptiedHandler, setEnableBackground, setEndedHandler, setErrorHandler, setExternalResourcesRequired, setFill, setFillOpacity, setFillRule, setFilter, setFloodColor, setFloodOpacity, setFocusHandler, setFocusInHandler, setFocusOutHandler, setFontFamily, setFontSize, setFontSizeAdjust, setFontStretch, setFontStyle, setFontVariant, setFontWeight, setGlyphOrientationHorizontal, setGlyphOrientationVertical, setHeight, setId, setImageRendering, setInputHandler, setInvalidHandler, setKerning, setKeyDownHandler, setKeyPressHandler, setKeyUpHandler, setLang, setLetterSpacing, setLightingColor, setLoadedDataHandler, setLoadedMetadataHandler, setLoadHandler, setLoadStartHandler, setMask, setMouseDownHandler, setMouseEnterHandler, setMouseLeaveHandler, setMouseMoveHandler, setMouseOutHandler, setMouseOverHandler, setMouseUpHandler, setMouseWheelHandler, setOpacity, setOverflow, setPasteHandler, setPauseHandler, setPlayHandler, setPlayingHandler, setPointerEvents, setPreserveAspectRatio, setPreserveSpace, setProgressHandler, setRateChangeHandler, setReference, setRequiredExtensions, setRequiredFeatures, setResetHandler, setResizeHandler, setRx, setRy, setScrollHandler, setSeekedHandler, setSeekingHandler, setSelectHandler, setShapeRendering, setShowHandler, setStalledHandler, setStopColor, setStopOpacity, setStroke, setStrokeDashArray, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeOpacity, setStrokeWidth, setStyle, setSubmitHandler, setSuspendHandler, setSystemLanguage, setTabIndex, setTextAnchor, setTextDecoration, setTextRendering, setTimeUpdateHandler, setTitle, setToggleHandler, setTransform, setUnicodeBidi, setUnloadHandler, setVectorEffect, setViewBox, setVisibility, setVolumeChangeHandler, setWaitHandler, setWidth, setWordSpacing, setWritingMode, setX, setXlinkActuate, setXLinkArcRole, setXLinkReference, setXLinkRole, setXLinkShow, setXLinkTitle, setXLinkType, setXMLBase, setXMLId, setXMLLang, setY, updateRegistriesMethods inherited from class XMLElementImpl
addCDATA, addChild, addComment, addPredefinedMarkup, addText, getAttribute, getChildren, getElementName, getFlags, getNamespaces, getParent, getSortOrder, hasChildren, registerAttributeSequence, registerAttributeSequence, registerValidAttributes, registerValidChildren, retrieveValidAttributes, retrieveValidChildren, setAttribute, setNamespace, setNamespace, setNamespace, setNamespace, setNamespace, setParent, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AllowsConditionalProcessingAttributes
setExternalResourcesRequired, setRequiredExtensions, setRequiredFeatures, setSystemLanguageMethods inherited from interface AllowsDocumentElementEventAttributes
setCopyHandler, setCutHandler, setPasteHandlerMethods inherited from interface AllowsDocumentEventAttributes
setAbortHandler, setErrorHandler, setResizeHandler, setScrollHandler, setUnloadHandlerMethods inherited from interface AllowsGlobalEventAttributes
setCancelHandler, setCanPlayHandler, setCanPlayThroughHandler, setChangeHandler, setClickHandler, setCloseHandler, setCueChangeHandler, setDblClickHandler, setDragEndHandler, setDragEnterHandler, setDragExitHandler, setDragHandler, setDragLeaveHandler, setDragOverHandler, setDragStartHandler, setDropHandler, setDurationChangeHandler, setEmptiedHandler, setEndedHandler, setErrorHandler, setFocusHandler, setInputHandler, setInvalidHandler, setKeyDownHandler, setKeyPressHandler, setKeyUpHandler, setLoadedDataHandler, setLoadedMetadataHandler, setLoadHandler, setLoadStartHandler, setMouseDownHandler, setMouseEnterHandler, setMouseLeaveHandler, setMouseMoveHandler, setMouseOutHandler, setMouseOverHandler, setMouseUpHandler, setMouseWheelHandler, setPauseHandler, setPlayHandler, setPlayingHandler, setProgressHandler, setRateChangeHandler, setResetHandler, setResizeHandler, setScrollHandler, setSeekedHandler, setSeekingHandler, setSelectHandler, setShowHandler, setStalledHandler, setSubmitHandler, setSuspendHandler, setTimeUpdateHandler, setToggleHandler, setVolumeChangeHandler, setWaitHandlerMethods inherited from interface AllowsGraphicalEventAttributes
setActivationHandler, setFocusInHandler, setFocusOutHandlerMethods inherited from interface AllowsPresentationAttributes
setAlignmentBaseline, setBaselineShift, setClip, setClipPath, setClipRule, setColor, setColorInterpolation, setColorInterpolationFilters, setColorProfile, setColorRendering, setCursor, setDirection, setDisplay, setDominantBaseline, setEnableBackground, setFill, setFillOpacity, setFillRule, setFilter, setFloodColor, setFloodOpacity, setFontFamily, setFontSize, setFontSizeAdjust, setFontStretch, setFontStyle, setFontVariant, setFontWeight, setGlyphOrientationHorizontal, setGlyphOrientationVertical, setImageRendering, setKerning, setLetterSpacing, setLightingColor, setMask, setOpacity, setOverflow, setPointerEvents, setShapeRendering, setStopColor, setStopOpacity, setStroke, setStrokeDashArray, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeOpacity, setStrokeWidth, setTextAnchor, setTextDecoration, setTextRendering, setUnicodeBidi, setVectorEffect, setVisibility, setWordSpacing, setWritingModeMethods inherited from interface AllowsStyleAttributes
setClass, setStyleMethods inherited from interface AllowsXLinkAttributes
setXlinkActuate, setXLinkArcRole, setXLinkReference, setXLinkRole, setXLinkShow, setXLinkTitle, setXLinkTypeMethods inherited from interface Element
getAttribute, getChildren, getElementName, getNamespaces, getParent, hasChildren, isBlockMethods inherited from interface SVGElement
addComment, getSVGElementCategory, setId, setLang, setPreserveSpace, setTabIndex, setTitle, setXMLBase, setXMLId, setXMLLangMethods inherited from interface SVGElementWithChildren
addChild, setDescriptionMethods inherited from interface SVGLine
setEndPoint, setStartPointMethods inherited from interface SVGMarker
setExternalResourcesRequired, setMarkerDimensions, setPreserveAspectRatio, setReferencePoint, setTransform, setViewBoxMethods inherited from interface SVGRectangle
defineRectangle, setHeight, setRx, setRy, setWidth, setX, setYMethods inherited from interface SVGSymbol
setExternalResourcesRequired, setPreserveAspectRatio, setViewBoxMethods inherited from interface XMLElement
addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeIfNotEmpty, setAttributeIfNotEmpty
-
Field Details
-
m_ConnectorType
The type for this connector. -
m_Child
The type symbol for the child (where the connector starts). -
m_EndPoint
The end point for the path representing this connector. -
m_Parent
The type symbol for the parent (where the connector ends). -
m_StartPoint
The start point for the path representing this connector.
-
-
Constructor Details
-
UMLConnector
Creates a newUMLConnectorinstance.- Parameters:
type- The type for this connector.parent- The type symbol for the parent (where the connector ends).child- The type symbol for the child (where the connector starts).
-
-
Method Details
-
asSVGPath
-
composePath
Composes the path that represents this UML connector.- Returns:
- The path definition.
-
getAttributes
Provides read access to the attributes.- Specified by:
getAttributesin interfaceElement- Overrides:
getAttributesin classXMLElementImpl- Returns:
- A reference to the attributes.
-
getChildTypeSymbol
Returns the type symbol where the connector starts.- Returns:
- The child's type symbol.
-
getParentTypeSymbol
Returns the type symbol where the connector ends.- Returns:
- The parent's type symbol.
-
setEndPoint
Sets the end point for the path representing this connector.- Parameters:
x- The x coordinate.y- The y coordinate.
-
setMarkerEnd
The markers for the path representing this UML connector are set internally, so this method will do nothing.- Specified by:
setMarkerEndin interfaceAllowsPresentationAttributes- Overrides:
setMarkerEndin classSVGElementImpl- Parameters:
ignored- Ignored!- See Also:
-
setMarkerMid
The markers for the path representing this UML connector are set internally, so this method will do nothing.- Specified by:
setMarkerMidin interfaceAllowsPresentationAttributes- Overrides:
setMarkerMidin classSVGElementImpl- Parameters:
ignored- Ignored!- See Also:
-
setMarkerStart
The markers for the path representing this UML connector are set internally, so this method will do nothing.- Specified by:
setMarkerStartin interfaceAllowsPresentationAttributes- Overrides:
setMarkerStartin classSVGElementImpl- Parameters:
ignored- Ignored!- See Also:
-
setPathDefinition
The definition of the path for this UML connector is done internally, so calling this method does not have any effect.- Specified by:
setPathDefinitionin interfaceSVGPath- Overrides:
setPathDefinitionin classSVGElementAdapter- Parameters:
ignored- Ignored!
-
setPathLength
The definition of the path for this UML connector is done internally, so calling this method does not have any effect.- Specified by:
setPathLengthin interfaceSVGLine- Specified by:
setPathLengthin interfaceSVGPath- Specified by:
setPathLengthin interfaceSVGRectangle- Overrides:
setPathLengthin classSVGElementImpl- Parameters:
ignored- Ignored!
-
setStartPoint
Sets the start point for the path representing this connector.- Parameters:
x- The x coordinate.y- The y coordinate.
-
