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 operationrenameSelectionAlt- rename selection alt value used by the operationmoveFieldSelection- move field selection value used by the operationmoveSelectedFieldInList- list to read or updateaddTable- add table value used by the operationaddField- add field value used by the operationaddComment- add comment value used by the operationdeleteSelection- delete selection value used by the operationduplicateSelection- duplicate selection value used by the operationclearSelection- clear selection value used by the operationaddLink- add link value used by the operationselectAll- select all value used by the operationedit- edit value used by the operationcopySelection- copy selection value used by the operationcutSelection- cut selection value used by the operationpasteSelection- paste selection value used by the operationundo- undo value used by the operationredo- redo value used by the operationeditStyle- edit style value used by the operationeditStyleAlt- edit style alt value used by the operationfocusSelection- 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 Summary
ConstructorsConstructorDescriptionDiagramCanvasActions(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 aDiagramCanvasActionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddCommentrecord component.addField()Returns the value of theaddFieldrecord component.addLink()Returns the value of theaddLinkrecord component.addTable()Returns the value of theaddTablerecord component.Returns the value of theclearSelectionrecord component.Returns the value of thecopySelectionrecord component.Returns the value of thecopySelectionSpecialrecord component.Returns the value of thecutSelectionrecord component.Returns the value of thecutSelectionSpecialrecord component.Returns the value of thedeleteSelectionrecord component.Returns the value of theduplicateSelectionrecord component.Returns the value of theduplicateSelectionSpecialrecord component.edit()Returns the value of theeditrecord component.Returns the value of theeditFieldTagsrecord component.Returns the value of theeditStylerecord component.Returns the value of theeditStyleAltrecord component.final booleanIndicates whether some other object is "equal to" this one.focusAll()Returns the value of thefocusAllrecord component.Returns the value of thefocusSelectionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoveFieldSelectionrecord component.Returns the value of themoveSelectedFieldInListrecord component.Returns the value of thepasteSelectionrecord component.Returns the value of thepasteSelectionSpecialrecord component.redo()Returns the value of theredorecord component.Returns the value of therenameSelectionrecord component.Returns the value of therenameSelectionAltrecord component.Returns the value of theselectAllrecord component.Returns the value of thesyncPositionConceptualrecord component.Returns the value of thesyncPositionLogicalrecord component.Returns the value of thesyncPositionPhysicalrecord component.Returns the value of thesyncPositionPreviousrecord component.Returns the value of thesyncSelectionPositionConceptualrecord component.Returns the value of thesyncSelectionPositionLogicalrecord component.Returns the value of thesyncSelectionPositionPhysicalrecord component.Returns the value of thesyncSelectionPositionPreviousrecord component.Returns the value of thetoggleFieldNonNullrecord component.Returns the value of thetoggleFieldPrimaryKeyrecord component.Returns the value of thetoggleFieldUniquerecord component.final StringtoString()Returns a string representation of this record class.undo()Returns the value of theundorecord component.
-
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 aDiagramCanvasActionsrecord class.- Parameters:
renameSelection- the value for therenameSelectionrecord componentrenameSelectionAlt- the value for therenameSelectionAltrecord componentmoveFieldSelection- the value for themoveFieldSelectionrecord componentmoveSelectedFieldInList- the value for themoveSelectedFieldInListrecord componentaddTable- the value for theaddTablerecord componentaddField- the value for theaddFieldrecord componentaddComment- the value for theaddCommentrecord componentdeleteSelection- the value for thedeleteSelectionrecord componentduplicateSelection- the value for theduplicateSelectionrecord componentclearSelection- the value for theclearSelectionrecord componentaddLink- the value for theaddLinkrecord componentselectAll- the value for theselectAllrecord componentedit- the value for theeditrecord componentcopySelection- the value for thecopySelectionrecord componentcutSelection- the value for thecutSelectionrecord componentpasteSelection- the value for thepasteSelectionrecord componentcopySelectionSpecial- the value for thecopySelectionSpecialrecord componentcutSelectionSpecial- the value for thecutSelectionSpecialrecord componentpasteSelectionSpecial- the value for thepasteSelectionSpecialrecord componentduplicateSelectionSpecial- the value for theduplicateSelectionSpecialrecord componentundo- the value for theundorecord componentredo- the value for theredorecord componenteditStyle- the value for theeditStylerecord componenteditStyleAlt- the value for theeditStyleAltrecord componentfocusSelection- the value for thefocusSelectionrecord componentfocusAll- the value for thefocusAllrecord componentsyncPositionPrevious- the value for thesyncPositionPreviousrecord componentsyncPositionConceptual- the value for thesyncPositionConceptualrecord componentsyncPositionLogical- the value for thesyncPositionLogicalrecord componentsyncPositionPhysical- the value for thesyncPositionPhysicalrecord componentsyncSelectionPositionPrevious- the value for thesyncSelectionPositionPreviousrecord componentsyncSelectionPositionConceptual- the value for thesyncSelectionPositionConceptualrecord componentsyncSelectionPositionLogical- the value for thesyncSelectionPositionLogicalrecord componentsyncSelectionPositionPhysical- the value for thesyncSelectionPositionPhysicalrecord componenteditFieldTags- the value for theeditFieldTagsrecord componenttoggleFieldPrimaryKey- the value for thetoggleFieldPrimaryKeyrecord componenttoggleFieldUnique- the value for thetoggleFieldUniquerecord componenttoggleFieldNonNull- the value for thetoggleFieldNonNullrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
renameSelection
Returns the value of therenameSelectionrecord component.- Returns:
- the value of the
renameSelectionrecord component
-
renameSelectionAlt
Returns the value of therenameSelectionAltrecord component.- Returns:
- the value of the
renameSelectionAltrecord component
-
moveFieldSelection
Returns the value of themoveFieldSelectionrecord component.- Returns:
- the value of the
moveFieldSelectionrecord component
-
moveSelectedFieldInList
Returns the value of themoveSelectedFieldInListrecord component.- Returns:
- the value of the
moveSelectedFieldInListrecord component
-
addTable
Returns the value of theaddTablerecord component.- Returns:
- the value of the
addTablerecord component
-
addField
Returns the value of theaddFieldrecord component.- Returns:
- the value of the
addFieldrecord component
-
addComment
Returns the value of theaddCommentrecord component.- Returns:
- the value of the
addCommentrecord component
-
deleteSelection
Returns the value of thedeleteSelectionrecord component.- Returns:
- the value of the
deleteSelectionrecord component
-
duplicateSelection
Returns the value of theduplicateSelectionrecord component.- Returns:
- the value of the
duplicateSelectionrecord component
-
clearSelection
Returns the value of theclearSelectionrecord component.- Returns:
- the value of the
clearSelectionrecord component
-
addLink
Returns the value of theaddLinkrecord component.- Returns:
- the value of the
addLinkrecord component
-
selectAll
Returns the value of theselectAllrecord component.- Returns:
- the value of the
selectAllrecord component
-
edit
Returns the value of theeditrecord component.- Returns:
- the value of the
editrecord component
-
copySelection
Returns the value of thecopySelectionrecord component.- Returns:
- the value of the
copySelectionrecord component
-
cutSelection
Returns the value of thecutSelectionrecord component.- Returns:
- the value of the
cutSelectionrecord component
-
pasteSelection
Returns the value of thepasteSelectionrecord component.- Returns:
- the value of the
pasteSelectionrecord component
-
copySelectionSpecial
Returns the value of thecopySelectionSpecialrecord component.- Returns:
- the value of the
copySelectionSpecialrecord component
-
cutSelectionSpecial
Returns the value of thecutSelectionSpecialrecord component.- Returns:
- the value of the
cutSelectionSpecialrecord component
-
pasteSelectionSpecial
Returns the value of thepasteSelectionSpecialrecord component.- Returns:
- the value of the
pasteSelectionSpecialrecord component
-
duplicateSelectionSpecial
Returns the value of theduplicateSelectionSpecialrecord component.- Returns:
- the value of the
duplicateSelectionSpecialrecord component
-
undo
Returns the value of theundorecord component.- Returns:
- the value of the
undorecord component
-
redo
Returns the value of theredorecord component.- Returns:
- the value of the
redorecord component
-
editStyle
Returns the value of theeditStylerecord component.- Returns:
- the value of the
editStylerecord component
-
editStyleAlt
Returns the value of theeditStyleAltrecord component.- Returns:
- the value of the
editStyleAltrecord component
-
focusSelection
Returns the value of thefocusSelectionrecord component.- Returns:
- the value of the
focusSelectionrecord component
-
focusAll
Returns the value of thefocusAllrecord component.- Returns:
- the value of the
focusAllrecord component
-
syncPositionPrevious
Returns the value of thesyncPositionPreviousrecord component.- Returns:
- the value of the
syncPositionPreviousrecord component
-
syncPositionConceptual
Returns the value of thesyncPositionConceptualrecord component.- Returns:
- the value of the
syncPositionConceptualrecord component
-
syncPositionLogical
Returns the value of thesyncPositionLogicalrecord component.- Returns:
- the value of the
syncPositionLogicalrecord component
-
syncPositionPhysical
Returns the value of thesyncPositionPhysicalrecord component.- Returns:
- the value of the
syncPositionPhysicalrecord component
-
syncSelectionPositionPrevious
Returns the value of thesyncSelectionPositionPreviousrecord component.- Returns:
- the value of the
syncSelectionPositionPreviousrecord component
-
syncSelectionPositionConceptual
Returns the value of thesyncSelectionPositionConceptualrecord component.- Returns:
- the value of the
syncSelectionPositionConceptualrecord component
-
syncSelectionPositionLogical
Returns the value of thesyncSelectionPositionLogicalrecord component.- Returns:
- the value of the
syncSelectionPositionLogicalrecord component
-
syncSelectionPositionPhysical
Returns the value of thesyncSelectionPositionPhysicalrecord component.- Returns:
- the value of the
syncSelectionPositionPhysicalrecord component
-
editFieldTags
Returns the value of theeditFieldTagsrecord component.- Returns:
- the value of the
editFieldTagsrecord component
-
toggleFieldPrimaryKey
Returns the value of thetoggleFieldPrimaryKeyrecord component.- Returns:
- the value of the
toggleFieldPrimaryKeyrecord component
-
toggleFieldUnique
Returns the value of thetoggleFieldUniquerecord component.- Returns:
- the value of the
toggleFieldUniquerecord component
-
toggleFieldNonNull
Returns the value of thetoggleFieldNonNullrecord component.- Returns:
- the value of the
toggleFieldNonNullrecord component
-