Package dk.gtz.graphedit.events
Record Class ViewportKeyEvent
java.lang.Object
java.lang.Record
dk.gtz.graphedit.events.ViewportKeyEvent
- Record Components:
event
- The javafxKeyEvent
that ocuredviewportAffine
- TheAffine
that controls where the viewport is lookingisTargetDrawpane
- If true, then this event is targeting the drawpane. Useful for filtering unwanted eventssyntax
- The syntax factory associated with the current modelgraph
- The current model graphbufferId
- The related buffer keyeditorSettings
- The current editor settings
public record ViewportKeyEvent(javafx.scene.input.KeyEvent event, javafx.scene.transform.Affine viewportAffine, boolean isTargetDrawpane, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings)
extends Record
When a
KeyEvent
occurs on the model editor viewport-
Constructor Summary
ConstructorsConstructorDescriptionViewportKeyEvent
(javafx.scene.input.KeyEvent event, javafx.scene.transform.Affine viewportAffine, boolean isTargetDrawpane, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aViewportKeyEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionbufferId()
Returns the value of thebufferId
record component.Returns the value of theeditorSettings
record component.final boolean
Indicates whether some other object is "equal to" this one.javafx.scene.input.KeyEvent
event()
Returns the value of theevent
record component.graph()
Returns the value of thegraph
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisTargetDrawpane
record component.syntax()
Returns the value of thesyntax
record component.final String
toString()
Returns a string representation of this record class.javafx.scene.transform.Affine
Returns the value of theviewportAffine
record component.
-
Constructor Details
-
ViewportKeyEvent
public ViewportKeyEvent(javafx.scene.input.KeyEvent event, javafx.scene.transform.Affine viewportAffine, boolean isTargetDrawpane, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aViewportKeyEvent
record class.- Parameters:
event
- the value for theevent
record componentviewportAffine
- the value for theviewportAffine
record componentisTargetDrawpane
- the value for theisTargetDrawpane
record componentsyntax
- the value for thesyntax
record componentgraph
- the value for thegraph
record componentbufferId
- the value for thebufferId
record componenteditorSettings
- the value for theeditorSettings
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
event
public javafx.scene.input.KeyEvent event()Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-
viewportAffine
public javafx.scene.transform.Affine viewportAffine()Returns the value of theviewportAffine
record component.- Returns:
- the value of the
viewportAffine
record component
-
isTargetDrawpane
public boolean isTargetDrawpane()Returns the value of theisTargetDrawpane
record component.- Returns:
- the value of the
isTargetDrawpane
record component
-
syntax
Returns the value of thesyntax
record component.- Returns:
- the value of the
syntax
record component
-
graph
Returns the value of thegraph
record component.- Returns:
- the value of the
graph
record component
-
bufferId
Returns the value of thebufferId
record component.- Returns:
- the value of the
bufferId
record component
-
editorSettings
Returns the value of theeditorSettings
record component.- Returns:
- the value of the
editorSettings
record component
-