Record Class DiagramCanvasActions

java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.DiagramCanvasActions
Record Components:
renameSelection - rename selection value used by the operation
renameSelectionAlt - rename selection alt value used by the operation
moveFieldSelection - move field selection value used by the operation
moveSelectedFieldInList - list to read or update
addTable - add table value used by the operation
addField - add field value used by the operation
addComment - add comment value used by the operation
deleteSelection - delete selection value used by the operation
duplicateSelection - duplicate selection value used by the operation
clearSelection - clear selection value used by the operation
addLink - add link value used by the operation
selectAll - select all value used by the operation
edit - edit value used by the operation
copySelection - copy selection value used by the operation
cutSelection - cut selection value used by the operation
pasteSelection - paste selection value used by the operation
undo - undo value used by the operation
redo - redo value used by the operation
editStyle - edit style value used by the operation
editStyleAlt - edit style alt value used by the operation
focusSelection - move the view to be centered around the selected element(s)
focusAll - move the view to contain all the elements in the current canvas

public record DiagramCanvasActions(Runnable renameSelection, Runnable renameSelectionAlt, IntConsumer moveFieldSelection, IntConsumer moveSelectedFieldInList, Runnable addTable, Runnable addField, Runnable addComment, Runnable deleteSelection, Runnable duplicateSelection, Runnable clearSelection, Runnable addLink, Runnable selectAll, Runnable edit, Runnable copySelection, Runnable cutSelection, Runnable pasteSelection, Runnable undo, Runnable redo, Runnable editStyle, Runnable editStyleAlt, Runnable focusSelection, Runnable focusAll) extends Record
Runnable actions registered as keyboard shortcuts on the canvas.
  • Constructor Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • renameSelection

      public Runnable renameSelection()
      Returns the value of the renameSelection record component.
      Returns:
      the value of the renameSelection record component
    • renameSelectionAlt

      public Runnable renameSelectionAlt()
      Returns the value of the renameSelectionAlt record component.
      Returns:
      the value of the renameSelectionAlt record component
    • moveFieldSelection

      public IntConsumer moveFieldSelection()
      Returns the value of the moveFieldSelection record component.
      Returns:
      the value of the moveFieldSelection record component
    • moveSelectedFieldInList

      public IntConsumer moveSelectedFieldInList()
      Returns the value of the moveSelectedFieldInList record component.
      Returns:
      the value of the moveSelectedFieldInList record component
    • addTable

      public Runnable addTable()
      Returns the value of the addTable record component.
      Returns:
      the value of the addTable record component
    • addField

      public Runnable addField()
      Returns the value of the addField record component.
      Returns:
      the value of the addField record component
    • addComment

      public Runnable addComment()
      Returns the value of the addComment record component.
      Returns:
      the value of the addComment record component
    • deleteSelection

      public Runnable deleteSelection()
      Returns the value of the deleteSelection record component.
      Returns:
      the value of the deleteSelection record component
    • duplicateSelection

      public Runnable duplicateSelection()
      Returns the value of the duplicateSelection record component.
      Returns:
      the value of the duplicateSelection record component
    • clearSelection

      public Runnable clearSelection()
      Returns the value of the clearSelection record component.
      Returns:
      the value of the clearSelection record component
    • addLink

      public Runnable addLink()
      Returns the value of the addLink record component.
      Returns:
      the value of the addLink record component
    • selectAll

      public Runnable selectAll()
      Returns the value of the selectAll record component.
      Returns:
      the value of the selectAll record component
    • edit

      public Runnable edit()
      Returns the value of the edit record component.
      Returns:
      the value of the edit record component
    • copySelection

      public Runnable copySelection()
      Returns the value of the copySelection record component.
      Returns:
      the value of the copySelection record component
    • cutSelection

      public Runnable cutSelection()
      Returns the value of the cutSelection record component.
      Returns:
      the value of the cutSelection record component
    • pasteSelection

      public Runnable pasteSelection()
      Returns the value of the pasteSelection record component.
      Returns:
      the value of the pasteSelection record component
    • undo

      public Runnable undo()
      Returns the value of the undo record component.
      Returns:
      the value of the undo record component
    • redo

      public Runnable redo()
      Returns the value of the redo record component.
      Returns:
      the value of the redo record component
    • editStyle

      public Runnable editStyle()
      Returns the value of the editStyle record component.
      Returns:
      the value of the editStyle record component
    • editStyleAlt

      public Runnable editStyleAlt()
      Returns the value of the editStyleAlt record component.
      Returns:
      the value of the editStyleAlt record component
    • focusSelection

      public Runnable focusSelection()
      Returns the value of the focusSelection record component.
      Returns:
      the value of the focusSelection record component
    • focusAll

      public Runnable focusAll()
      Returns the value of the focusAll record component.
      Returns:
      the value of the focusAll record component