Package lu.kbra.modelizer_next.domain
Class CommentModel
java.lang.Object
lu.kbra.modelizer_next.domain.CommentModel
- All Implemented Interfaces:
IdOwner,StyleOwner,VisibilityOwner
Persistent model of a text comment or annotation placed in a diagram.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a comment model instance.CommentModel(String txt) Creates a comment model instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the binding.getId()Returns the ID.getKind()Returns the kind.getStyle()Returns the style.getText()Returns the text.Returns the visibility.voidsetBackgroundColorLegacy(Color color) Deprecated.voidsetBinding(CommentBinding binding) Sets the binding.voidsetBorderColorLegacy(Color color) Deprecated.voidSets the ID.voidsetKind(CommentKind kind) Sets the kind.voidsetStyle(ElementStyle style) Sets the style.voidSets the text.voidsetTextColorLegacy(Color color) Deprecated.voidsetVisibility(LayerVisibility visibility) Sets the visibility.voidsetVisibleInConceptualLegacy(boolean visibleInConceptual) Deprecated.voidsetVisibleInLogicalLegacy(boolean visibleInLogical) Deprecated.voidsetVisibleInPhysicalLegacy(boolean visibleInPhysical) Deprecated.toString()Builds a debug string for this comment model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface lu.kbra.modelizer_next.domain.impl.StyleOwner
getBackgroundColor, getBorderColor, getTextColor, setBackgroundColor, setBorderColor, setTextColorMethods inherited from interface lu.kbra.modelizer_next.domain.impl.VisibilityOwner
clearVisibility, isVisible, isVisibleInConceptual, isVisibleInLogical, isVisibleInPhysical, setVisibility, setVisibility, setVisibleInConceptual, setVisibleInLogical, setVisibleInPhysical
-
Constructor Details
-
CommentModel
public CommentModel()Creates a comment model instance. -
CommentModel
Creates a comment model instance.- Parameters:
txt- text value for txt
-
-
Method Details
-
getBinding
Returns the binding.- Returns:
- the binding
-
getId
Returns the ID. -
getKind
Returns the kind.- Returns:
- the kind
-
getStyle
Returns the style.- Specified by:
getStylein interfaceStyleOwner- Returns:
- the style
-
getText
Returns the text.- Returns:
- the text
-
getVisibility
Returns the visibility.- Specified by:
getVisibilityin interfaceVisibilityOwner- Returns:
- the visibility
-
setBackgroundColorLegacy
Deprecated.Sets the background color legacy.- Parameters:
color- color value to use
-
setBinding
Sets the binding.- Parameters:
binding- binding value used by the operation
-
setBorderColorLegacy
Deprecated.Sets the border color legacy.- Parameters:
color- color value to use
-
setId
Sets the ID. -
setKind
Sets the kind.- Parameters:
kind- kind value used by the operation
-
setText
Sets the text.- Parameters:
text- text to display or edit
-
setTextColorLegacy
Deprecated.Sets the text color legacy.- Parameters:
color- color value to use
-
setVisibleInConceptualLegacy
Deprecated.Sets the visible in conceptual legacy.- Parameters:
visibleInConceptual- whether visible in conceptual is enabled
-
setVisibleInLogicalLegacy
Deprecated.Sets the visible in logical legacy.- Parameters:
visibleInLogical- whether visible in logical is enabled
-
setVisibleInPhysicalLegacy
Deprecated.Sets the visible in physical legacy.- Parameters:
visibleInPhysical- whether visible in physical is enabled
-
toString
Builds a debug string for this comment model.
-