Package dk.gtz.graphedit.events
Record Class VertexMouseEvent
java.lang.Object
java.lang.Record
dk.gtz.graphedit.events.VertexMouseEvent
- Record Components:
event- The javafxMouseEventthat ocuredvertexId- The id of the vertex that was interacted withvertex- The vertex that was interacted withviewportAffine- TheAffinethat controls where the viewport is lookingsyntax- The syntax factory associated with the current modelgraph- The current model graphbufferId- The related buffer keyeditorSettings- The current editor settings
public record VertexMouseEvent(javafx.scene.input.MouseEvent event, UUID vertexId, ViewModelVertex vertex, javafx.scene.transform.Affine viewportAffine, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings)
extends Record
When a
MouseEvent occurs on an ViewModelVertex.-
Constructor Summary
ConstructorsConstructorDescriptionVertexMouseEvent(javafx.scene.input.MouseEvent event, UUID vertexId, ViewModelVertex vertex, javafx.scene.transform.Affine viewportAffine, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aVertexMouseEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbufferId()Returns the value of thebufferIdrecord component.Returns the value of theeditorSettingsrecord component.final booleanIndicates whether some other object is "equal to" this one.javafx.scene.input.MouseEventevent()Returns the value of theeventrecord component.graph()Returns the value of thegraphrecord component.final inthashCode()Returns a hash code value for this object.syntax()Returns the value of thesyntaxrecord component.final StringtoString()Returns a string representation of this record class.vertex()Returns the value of thevertexrecord component.vertexId()Returns the value of thevertexIdrecord component.javafx.scene.transform.AffineReturns the value of theviewportAffinerecord component.
-
Constructor Details
-
VertexMouseEvent
public VertexMouseEvent(javafx.scene.input.MouseEvent event, UUID vertexId, ViewModelVertex vertex, javafx.scene.transform.Affine viewportAffine, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aVertexMouseEventrecord class.- Parameters:
event- the value for theeventrecord componentvertexId- the value for thevertexIdrecord componentvertex- the value for thevertexrecord componentviewportAffine- the value for theviewportAffinerecord componentsyntax- the value for thesyntaxrecord componentgraph- the value for thegraphrecord componentbufferId- the value for thebufferIdrecord componenteditorSettings- the value for theeditorSettingsrecord 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). -
event
public javafx.scene.input.MouseEvent event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
vertexId
Returns the value of thevertexIdrecord component.- Returns:
- the value of the
vertexIdrecord component
-
vertex
Returns the value of thevertexrecord component.- Returns:
- the value of the
vertexrecord component
-
viewportAffine
public javafx.scene.transform.Affine viewportAffine()Returns the value of theviewportAffinerecord component.- Returns:
- the value of the
viewportAffinerecord component
-
syntax
Returns the value of thesyntaxrecord component.- Returns:
- the value of the
syntaxrecord component
-
graph
Returns the value of thegraphrecord component.- Returns:
- the value of the
graphrecord component
-
bufferId
Returns the value of thebufferIdrecord component.- Returns:
- the value of the
bufferIdrecord component
-
editorSettings
Returns the value of theeditorSettingsrecord component.- Returns:
- the value of the
editorSettingsrecord component
-