Record Class CopiedComment
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.CopiedComment
- Record Components:
sourceId- id of the element to read or modifykind- kind value used by the operationtext- text to display or edittextColor- color value to usebackgroundColor- color value to useborderColor- color value to usevisibleInConceptual- whether visible in conceptual is enabledvisibleInLogical- whether visible in logical is enabledvisibleInPhysical- whether visible in physical is enabledbindingTargetType- type value to usebindingTargetId- id of the element to read or modifylayout- layout object to read or update
public record CopiedComment(String sourceId, CommentKind kind, String text, Color textColor, Color backgroundColor, Color borderColor, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical, BoundTargetType bindingTargetType, String bindingTargetId, CopiedNodeLayout layout)
extends Record
Comment model and layout data stored in the clipboard snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionCopiedComment(String sourceId, CommentKind kind, String text, Color textColor, Color backgroundColor, Color borderColor, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical, BoundTargetType bindingTargetType, String bindingTargetId, CopiedNodeLayout layout) Creates an instance of aCopiedCommentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.Returns the value of thebindingTargetIdrecord component.Returns the value of thebindingTargetTyperecord component.Returns the value of theborderColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.layout()Returns the value of thelayoutrecord component.sourceId()Returns the value of thesourceIdrecord component.text()Returns the value of thetextrecord component.Returns the value of thetextColorrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibleInConceptualrecord component.booleanReturns the value of thevisibleInLogicalrecord component.booleanReturns the value of thevisibleInPhysicalrecord component.
-
Constructor Details
-
CopiedComment
public CopiedComment(String sourceId, CommentKind kind, String text, Color textColor, Color backgroundColor, Color borderColor, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical, BoundTargetType bindingTargetType, String bindingTargetId, CopiedNodeLayout layout) Creates an instance of aCopiedCommentrecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentkind- the value for thekindrecord componenttext- the value for thetextrecord componenttextColor- the value for thetextColorrecord componentbackgroundColor- the value for thebackgroundColorrecord componentborderColor- the value for theborderColorrecord componentvisibleInConceptual- the value for thevisibleInConceptualrecord componentvisibleInLogical- the value for thevisibleInLogicalrecord componentvisibleInPhysical- the value for thevisibleInPhysicalrecord componentbindingTargetType- the value for thebindingTargetTyperecord componentbindingTargetId- the value for thebindingTargetIdrecord componentlayout- the value for thelayoutrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
borderColor
Returns the value of theborderColorrecord component.- Returns:
- the value of the
borderColorrecord component
-
visibleInConceptual
public boolean visibleInConceptual()Returns the value of thevisibleInConceptualrecord component.- Returns:
- the value of the
visibleInConceptualrecord component
-
visibleInLogical
public boolean visibleInLogical()Returns the value of thevisibleInLogicalrecord component.- Returns:
- the value of the
visibleInLogicalrecord component
-
visibleInPhysical
public boolean visibleInPhysical()Returns the value of thevisibleInPhysicalrecord component.- Returns:
- the value of the
visibleInPhysicalrecord component
-
bindingTargetType
Returns the value of thebindingTargetTyperecord component.- Returns:
- the value of the
bindingTargetTyperecord component
-
bindingTargetId
Returns the value of thebindingTargetIdrecord component.- Returns:
- the value of the
bindingTargetIdrecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-