Module org.jhotdraw8.draw
Package org.jhotdraw8.draw.figure
Record Class TextEditableFigure.TextEditorData
java.lang.Object
java.lang.Record
org.jhotdraw8.draw.figure.TextEditableFigure.TextEditorData
- Enclosing interface:
TextEditableFigure
public static record TextEditableFigure.TextEditorData(TextEditableFigure figure, javafx.geometry.Bounds boundsInLocal, MapAccessor<String> textKey)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextEditorData(TextEditableFigure figure, javafx.geometry.Bounds boundsInLocal, MapAccessor<String> textKey) Creates an instance of aTextEditorDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.geometry.BoundsReturns the value of theboundsInLocalrecord component.final booleanIndicates whether some other object is "equal to" this one.figure()Returns the value of thefigurerecord component.final inthashCode()Returns a hash code value for this object.textKey()Returns the value of thetextKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextEditorData
public TextEditorData(TextEditableFigure figure, javafx.geometry.Bounds boundsInLocal, MapAccessor<String> textKey) Creates an instance of aTextEditorDatarecord class.- Parameters:
figure- the value for thefigurerecord componentboundsInLocal- the value for theboundsInLocalrecord componenttextKey- the value for thetextKeyrecord 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). -
figure
Returns the value of thefigurerecord component.- Returns:
- the value of the
figurerecord component
-
boundsInLocal
public javafx.geometry.Bounds boundsInLocal()Returns the value of theboundsInLocalrecord component.- Returns:
- the value of the
boundsInLocalrecord component
-
textKey
Returns the value of thetextKeyrecord component.- Returns:
- the value of the
textKeyrecord component
-