Package dk.gtz.graphedit.events
Record Class EdgeMouseEvent
java.lang.Object
java.lang.Record
dk.gtz.graphedit.events.EdgeMouseEvent
- Record Components:
event- The javafxMouseEventthat ocurededgeId- The id of the edge that was interacted withedge- The edge object 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 EdgeMouseEvent(javafx.scene.input.MouseEvent event, UUID edgeId, ViewModelEdge edge, javafx.scene.transform.Affine viewportAffine, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings)
extends Record
When a
MouseEvent occurs on an ViewModelEdge.-
Constructor Summary
ConstructorsConstructorDescriptionEdgeMouseEvent(javafx.scene.input.MouseEvent event, UUID edgeId, ViewModelEdge edge, javafx.scene.transform.Affine viewportAffine, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aEdgeMouseEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbufferId()Returns the value of thebufferIdrecord component.edge()Returns the value of theedgerecord component.edgeId()Returns the value of theedgeIdrecord 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.javafx.scene.transform.AffineReturns the value of theviewportAffinerecord component.
-
Constructor Details
-
EdgeMouseEvent
public EdgeMouseEvent(javafx.scene.input.MouseEvent event, UUID edgeId, ViewModelEdge edge, javafx.scene.transform.Affine viewportAffine, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aEdgeMouseEventrecord class.- Parameters:
event- the value for theeventrecord componentedgeId- the value for theedgeIdrecord componentedge- the value for theedgerecord 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
-
edgeId
Returns the value of theedgeIdrecord component.- Returns:
- the value of the
edgeIdrecord component
-
edge
Returns the value of theedgerecord component.- Returns:
- the value of the
edgerecord 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
-