Package dk.gtz.graphedit.events
Record Class ViewportMouseEvent
java.lang.Object
java.lang.Record
dk.gtz.graphedit.events.ViewportMouseEvent
- Record Components:
event- The javafxMouseEventthat ocuredviewportAffine- TheAffinethat 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 ViewportMouseEvent(javafx.scene.input.MouseEvent event, javafx.scene.transform.Affine viewportAffine, boolean isTargetDrawPane, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings)
extends Record
When a
MouseEvent occurs on the model editor viewport-
Constructor Summary
ConstructorsConstructorDescriptionViewportMouseEvent(javafx.scene.input.MouseEvent event, javafx.scene.transform.Affine viewportAffine, boolean isTargetDrawPane, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aViewportMouseEventrecord 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.booleanReturns the value of theisTargetDrawPanerecord component.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
-
ViewportMouseEvent
public ViewportMouseEvent(javafx.scene.input.MouseEvent event, javafx.scene.transform.Affine viewportAffine, boolean isTargetDrawPane, ISyntaxFactory syntax, ViewModelGraph graph, String bufferId, ViewModelEditorSettings editorSettings) Creates an instance of aViewportMouseEventrecord class.- Parameters:
event- the value for theeventrecord componentviewportAffine- the value for theviewportAffinerecord componentisTargetDrawPane- the value for theisTargetDrawPanerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
event
public javafx.scene.input.MouseEvent event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
viewportAffine
public javafx.scene.transform.Affine viewportAffine()Returns the value of theviewportAffinerecord component.- Returns:
- the value of the
viewportAffinerecord component
-
isTargetDrawPane
public boolean isTargetDrawPane()Returns the value of theisTargetDrawPanerecord component.- Returns:
- the value of the
isTargetDrawPanerecord 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
-