@OpenApiAll
public abstract class PresentationElementRenderer
extends java.lang.Object
ShapeRenderer
, and
PathElementRenderer
.
Renderers are registered by PresentationElementRendererManager
.Constructor and Description |
---|
PresentationElementRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(PresentationElement presentationElement)
Invoked right after presentation element update.
|
void |
beforeUpdate(PresentationElement presentationElement)
Invoked right before presentation element update.
|
java.awt.Point |
getCenterlinePoint(PresentationElement presentationElement)
Returns a point for centerline drawing.
|
java.awt.Color |
getColor(PresentationElement presentationElement,
PresentationElementColorEnum colorEnum)
Provides the color used to draw presentation element.
|
FontProvider |
getFontProvider(PresentationElement presentationElement)
Returns the font provider.
|
java.lang.String |
getText(PresentationElement presentationElement,
PresentationElementTextEnum textEnum)
Provides the displayable text for the given presentation element.
|
void |
propertiesChanged(PresentationElement presentationElement)
Invoked when presentation element properties were changed.
|
protected abstract void |
updateText(PresentationElement presentationElement)
Update the given presentation element text.
|
public void beforeUpdate(PresentationElement presentationElement)
presentationElement
- updating element.public void afterUpdate(PresentationElement presentationElement)
presentationElement
- updating element.public void propertiesChanged(PresentationElement presentationElement)
presentationElement
- properties of this element were updated.public java.lang.String getText(PresentationElement presentationElement, PresentationElementTextEnum textEnum)
presentationElement
- element to display text for.textEnum
- describes the displayable text purpose (text is displayed as name, stereotypes, tags, or constraints).PresentationElementTextEnum
public java.awt.Color getColor(PresentationElement presentationElement, PresentationElementColorEnum colorEnum)
presentationElement
- element to draw.colorEnum
- describes the color purpose (color is used to draw lines, text, or fill shape).PresentationElementColorEnum
public FontProvider getFontProvider(PresentationElement presentationElement)
presentationElement
- presentation element to use font for.FontProvider
public java.awt.Point getCenterlinePoint(PresentationElement presentationElement)
presentationElement
- - element for which centerline point has to be retrieved.protected abstract void updateText(PresentationElement presentationElement)
presentationElement
-