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 copySelectionSpecial, Runnable cutSelectionSpecial, Runnable pasteSelectionSpecial, Runnable duplicateSelectionSpecial, Runnable undo, Runnable redo, Runnable editStyle, Runnable editStyleAlt, Runnable focusSelection, Runnable focusAll, Runnable syncPositionPrevious, Runnable syncPositionConceptual, Runnable syncPositionLogical, Runnable syncPositionPhysical, Runnable syncSelectionPositionPrevious, Runnable syncSelectionPositionConceptual, Runnable syncSelectionPositionLogical, Runnable syncSelectionPositionPhysical, Runnable editFieldTags, Runnable toggleFieldPrimaryKey, Runnable toggleFieldUnique, Runnable toggleFieldNonNull) extends Record
Runnable actions registered as keyboard shortcuts on the canvas.
  • Constructor Details

    • DiagramCanvasActions

      public 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 copySelectionSpecial, Runnable cutSelectionSpecial, Runnable pasteSelectionSpecial, Runnable duplicateSelectionSpecial, Runnable undo, Runnable redo, Runnable editStyle, Runnable editStyleAlt, Runnable focusSelection, Runnable focusAll, Runnable syncPositionPrevious, Runnable syncPositionConceptual, Runnable syncPositionLogical, Runnable syncPositionPhysical, Runnable syncSelectionPositionPrevious, Runnable syncSelectionPositionConceptual, Runnable syncSelectionPositionLogical, Runnable syncSelectionPositionPhysical, Runnable editFieldTags, Runnable toggleFieldPrimaryKey, Runnable toggleFieldUnique, Runnable toggleFieldNonNull)
      Creates an instance of a DiagramCanvasActions record class.
      Parameters:
      renameSelection - the value for the renameSelection record component
      renameSelectionAlt - the value for the renameSelectionAlt record component
      moveFieldSelection - the value for the moveFieldSelection record component
      moveSelectedFieldInList - the value for the moveSelectedFieldInList record component
      addTable - the value for the addTable record component
      addField - the value for the addField record component
      addComment - the value for the addComment record component
      deleteSelection - the value for the deleteSelection record component
      duplicateSelection - the value for the duplicateSelection record component
      clearSelection - the value for the clearSelection record component
      addLink - the value for the addLink record component
      selectAll - the value for the selectAll record component
      edit - the value for the edit record component
      copySelection - the value for the copySelection record component
      cutSelection - the value for the cutSelection record component
      pasteSelection - the value for the pasteSelection record component
      copySelectionSpecial - the value for the copySelectionSpecial record component
      cutSelectionSpecial - the value for the cutSelectionSpecial record component
      pasteSelectionSpecial - the value for the pasteSelectionSpecial record component
      duplicateSelectionSpecial - the value for the duplicateSelectionSpecial record component
      undo - the value for the undo record component
      redo - the value for the redo record component
      editStyle - the value for the editStyle record component
      editStyleAlt - the value for the editStyleAlt record component
      focusSelection - the value for the focusSelection record component
      focusAll - the value for the focusAll record component
      syncPositionPrevious - the value for the syncPositionPrevious record component
      syncPositionConceptual - the value for the syncPositionConceptual record component
      syncPositionLogical - the value for the syncPositionLogical record component
      syncPositionPhysical - the value for the syncPositionPhysical record component
      syncSelectionPositionPrevious - the value for the syncSelectionPositionPrevious record component
      syncSelectionPositionConceptual - the value for the syncSelectionPositionConceptual record component
      syncSelectionPositionLogical - the value for the syncSelectionPositionLogical record component
      syncSelectionPositionPhysical - the value for the syncSelectionPositionPhysical record component
      editFieldTags - the value for the editFieldTags record component
      toggleFieldPrimaryKey - the value for the toggleFieldPrimaryKey record component
      toggleFieldUnique - the value for the toggleFieldUnique record component
      toggleFieldNonNull - the value for the toggleFieldNonNull 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. 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
    • copySelectionSpecial

      public Runnable copySelectionSpecial()
      Returns the value of the copySelectionSpecial record component.
      Returns:
      the value of the copySelectionSpecial record component
    • cutSelectionSpecial

      public Runnable cutSelectionSpecial()
      Returns the value of the cutSelectionSpecial record component.
      Returns:
      the value of the cutSelectionSpecial record component
    • pasteSelectionSpecial

      public Runnable pasteSelectionSpecial()
      Returns the value of the pasteSelectionSpecial record component.
      Returns:
      the value of the pasteSelectionSpecial record component
    • duplicateSelectionSpecial

      public Runnable duplicateSelectionSpecial()
      Returns the value of the duplicateSelectionSpecial record component.
      Returns:
      the value of the duplicateSelectionSpecial 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
    • syncPositionPrevious

      public Runnable syncPositionPrevious()
      Returns the value of the syncPositionPrevious record component.
      Returns:
      the value of the syncPositionPrevious record component
    • syncPositionConceptual

      public Runnable syncPositionConceptual()
      Returns the value of the syncPositionConceptual record component.
      Returns:
      the value of the syncPositionConceptual record component
    • syncPositionLogical

      public Runnable syncPositionLogical()
      Returns the value of the syncPositionLogical record component.
      Returns:
      the value of the syncPositionLogical record component
    • syncPositionPhysical

      public Runnable syncPositionPhysical()
      Returns the value of the syncPositionPhysical record component.
      Returns:
      the value of the syncPositionPhysical record component
    • syncSelectionPositionPrevious

      public Runnable syncSelectionPositionPrevious()
      Returns the value of the syncSelectionPositionPrevious record component.
      Returns:
      the value of the syncSelectionPositionPrevious record component
    • syncSelectionPositionConceptual

      public Runnable syncSelectionPositionConceptual()
      Returns the value of the syncSelectionPositionConceptual record component.
      Returns:
      the value of the syncSelectionPositionConceptual record component
    • syncSelectionPositionLogical

      public Runnable syncSelectionPositionLogical()
      Returns the value of the syncSelectionPositionLogical record component.
      Returns:
      the value of the syncSelectionPositionLogical record component
    • syncSelectionPositionPhysical

      public Runnable syncSelectionPositionPhysical()
      Returns the value of the syncSelectionPositionPhysical record component.
      Returns:
      the value of the syncSelectionPositionPhysical record component
    • editFieldTags

      public Runnable editFieldTags()
      Returns the value of the editFieldTags record component.
      Returns:
      the value of the editFieldTags record component
    • toggleFieldPrimaryKey

      public Runnable toggleFieldPrimaryKey()
      Returns the value of the toggleFieldPrimaryKey record component.
      Returns:
      the value of the toggleFieldPrimaryKey record component
    • toggleFieldUnique

      public Runnable toggleFieldUnique()
      Returns the value of the toggleFieldUnique record component.
      Returns:
      the value of the toggleFieldUnique record component
    • toggleFieldNonNull

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