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 undo, Runnable redo, Runnable editStyle, Runnable editStyleAlt, Runnable focusSelection, Runnable focusAll)
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 undo, Runnable redo, Runnable editStyle, Runnable editStyleAlt, Runnable focusSelection, Runnable focusAll) 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 thecutSelectionrecord component.Returns the value of thedeleteSelectionrecord component.Returns the value of theduplicateSelectionrecord component.edit()Returns the value of theeditrecord 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.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.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 undo, Runnable redo, Runnable editStyle, Runnable editStyleAlt, Runnable focusSelection, Runnable focusAll) 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 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 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
-
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
-