Record Class LiveEditContext
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.LiveEditContext
- Record Components:
pos- pos value used by the operationsize- size value used by the operationvalue- value to processstyle- style value used by the operationvalueType- type value to useowner- parent window used for dialog ownership
public record LiveEditContext(Point2D pos, Point2D size, Object value, ElementStyle style, Class<?> valueType, Object owner, boolean fixedSize)
extends Record
Context for applying an inline rename to a specific model element.
-
Constructor Summary
ConstructorsConstructorDescriptionLiveEditContext(Point2D pos, Point2D size, Object value, ElementStyle style, Class<?> valueType, Object owner, boolean fixedSize) Creates an instance of aLiveEditContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefixedSizerecord component.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.pos()Returns the value of theposrecord component.size()Deprecated.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Class<?> Returns the value of thevalueTyperecord component.
-
Constructor Details
-
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 '=='. -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
size
Deprecated.Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
valueType
Returns the value of thevalueTyperecord component.- Returns:
- the value of the
valueTyperecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
fixedSize
public boolean fixedSize()Returns the value of thefixedSizerecord component.- Returns:
- the value of the
fixedSizerecord component
-