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 operation
size - size value used by the operation
value - value to process
style - style value used by the operation
valueType - type value to use
owner - 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 Details

    • LiveEditContext

      public LiveEditContext(Point2D pos, @Deprecated Point2D size, Object value, ElementStyle style, Class<?> valueType, Object owner, boolean fixedSize)
      Creates an instance of a LiveEditContext record class.
      Parameters:
      pos - the value for the pos record component
      size - the value for the size record component
      value - the value for the value record component
      style - the value for the style record component
      valueType - the value for the valueType record component
      owner - the value for the owner record component
      fixedSize - the value for the fixedSize record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pos

      public Point2D pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • size

      @Deprecated public Point2D size()
      Deprecated.
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • value

      public Object value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • style

      public ElementStyle style()
      Returns the value of the style record component.
      Returns:
      the value of the style record component
    • valueType

      public Class<?> valueType()
      Returns the value of the valueType record component.
      Returns:
      the value of the valueType record component
    • owner

      public Object owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • fixedSize

      public boolean fixedSize()
      Returns the value of the fixedSize record component.
      Returns:
      the value of the fixedSize record component