java.lang.Object
java.lang.Record
org.jhotdraw8.svg.figure.SvgStop
public record SvgStop(double offset, org.jhotdraw8.svg.css.SvgDefaultablePaint<CssColor> color, org.jhotdraw8.css.value.CssDefaultableValue<org.jhotdraw8.css.value.CssSize> opacity)
extends Record
CssStop.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jhotdraw8.svg.css.SvgDefaultablePaint<CssColor> color()Returns the value of thecolorrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.doubleoffset()Returns the value of theoffsetrecord component.org.jhotdraw8.css.value.CssDefaultableValue<org.jhotdraw8.css.value.CssSize> opacity()Returns the value of theopacityrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SvgStop
public SvgStop(double offset, org.jhotdraw8.svg.css.SvgDefaultablePaint<CssColor> color, org.jhotdraw8.css.value.CssDefaultableValue<org.jhotdraw8.css.value.CssSize> opacity) Creates an instance of aSvgStoprecord class.- Parameters:
offset- the value for theoffsetrecord componentcolor- the value for thecolorrecord componentopacity- the value for theopacityrecord component
-
-
Method Details
-
hashCode
public 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 '=='. -
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. -
offset
public double offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
opacity
public org.jhotdraw8.css.value.CssDefaultableValue<org.jhotdraw8.css.value.CssSize> opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-