Class PathRenderer
java.lang.Object
com.nomagic.magicdraw.uml.symbols.PresentationElementRenderer
com.nomagic.magicdraw.uml.symbols.paths.PathRenderer
Deprecated.
Path element renderer allows to customize (change) the default
view of
PathElement
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawPathAdornment
(Graphics g, PathElement pathElement) Deprecated.Draws the path adornment.protected int
getClientEndPreferredSize
(PathElement pathElement) Deprecated.The path client end preferred size.protected PathEndRenderer
getClientEndRenderer
(PathElement pathElement) Deprecated.Provides the path client end renderer.int
getLineWidth
(PresentationElement presentationElement) Deprecated.Returns path line width.protected BasicStroke
getPathStroke
(PathElement pathElement) Deprecated.Stroke used to draw path.protected int
getSupplierEndPreferredSize
(PathElement pathElement) Deprecated.The path supplier end preferred size.protected PathEndRenderer
getSupplierEndRenderer
(PathElement pathElement) Deprecated.Provides the path supplier end renderer.protected final void
updateText
(PresentationElement presentationElement) Deprecated.Update path text.Methods inherited from class com.nomagic.magicdraw.uml.symbols.PresentationElementRenderer
afterUpdate, beforeUpdate, getCenterlinePoint, getColor, getFontProvider, getText, propertiesChanged
-
Constructor Details
-
PathRenderer
public PathRenderer()Deprecated.
-
-
Method Details
-
getClientEndPreferredSize
Deprecated.The path client end preferred size. End size is used when drawing adornment on path end (e.g. arrow on the end). Override to change the client end size.- Parameters:
pathElement
- path element.- Returns:
- end size, or 0 to use default end size.
-
getSupplierEndPreferredSize
Deprecated.The path supplier end preferred size. End size is used when drawing adornment on path end (e.g. arrow on the end). Override to change the supplier end size.- Parameters:
pathElement
- path element.- Returns:
- end size, or 0 to use default end size.
-
getClientEndRenderer
Deprecated.Provides the path client end renderer. Override the method to return the custom path end renderer.- Parameters:
pathElement
- path element.- Returns:
- custom renderer, or null to use default end renderer.
- See Also:
-
getSupplierEndRenderer
Deprecated.Provides the path supplier end renderer. Override the method to return the custom path end renderer.- Parameters:
pathElement
- path element.- Returns:
- custom renderer, or null to use default end renderer.
- See Also:
-
getPathStroke
Deprecated.Stroke used to draw path. Override to change the stroke for path drawing.- Parameters:
pathElement
- drawing path.- Returns:
- custom stroke, or null to use the default stroke.
- See Also:
-
getLineWidth
Deprecated.Returns path line width. Override to use the custom line width.- Parameters:
presentationElement
- drawing path.- Returns:
- line width, or 0 to use default line width.
-
drawPathAdornment
Deprecated.Draws the path adornment. By default draws no adornment. Override the method to add the custom adornment drawing.- Parameters:
g
- graphics where path is drawn.pathElement
- path to draw adornment for.
-
updateText
Deprecated.Update path text.- Specified by:
updateText
in classPresentationElementRenderer
- Parameters:
presentationElement
- presentation element
-
PathElementRenderer
which also allows decorating the path while creating a new one, which is not yet connected in the model.