Record Class SyEmbossedRectangle<T extends SySpaceType>
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.rendering.SyEmbossedRectangle<T>
- Type Parameters:
T- The coordinate space- Record Components:
fillNorth- The north paintshapeNorth- The north shapefillEast- The east paintshapeEast- The east shapefillSouth- The south paintshapeSouth- The south shapefillWest- The west paintshapeWest- The west shape
public record SyEmbossedRectangle<T extends SySpaceType>(SyPaintFillType fillNorth, SyShapePolygon<T extends SySpaceType> shapeNorth, SyPaintFillType fillEast, SyShapePolygon<T extends SySpaceType> shapeEast, SyPaintFillType fillSouth, SyShapePolygon<T extends SySpaceType> shapeSouth, SyPaintFillType fillWest, SyShapePolygon<T extends SySpaceType> shapeWest)
extends Record
The embossed parts of an embossed rectangle.
-
Constructor Summary
ConstructorsConstructorDescriptionSyEmbossedRectangle(SyPaintFillType fillNorth, SyShapePolygon<T> shapeNorth, SyPaintFillType fillEast, SyShapePolygon<T> shapeEast, SyPaintFillType fillSouth, SyShapePolygon<T> shapeSouth, SyPaintFillType fillWest, SyShapePolygon<T> shapeWest) The embossed parts of an embossed rectangle. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends SySpaceType>
SyEmbossedRectangle<T> emboss(com.io7m.jregions.core.parameterized.areas.PAreaI<T> area, SyPaintFillType fillNorth, SyPaintFillType fillEast, SyPaintFillType fillSouth, SyPaintFillType fillWest, int edgeOffset, int embossThickness) Emboss a rectangle.final booleanIndicates whether some other object is "equal to" this one.fillEast()Returns the value of thefillEastrecord component.Returns the value of thefillNorthrecord component.Returns the value of thefillSouthrecord component.fillWest()Returns the value of thefillWestrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theshapeEastrecord component.Returns the value of theshapeNorthrecord component.Returns the value of theshapeSouthrecord component.Returns the value of theshapeWestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyEmbossedRectangle
public SyEmbossedRectangle(SyPaintFillType fillNorth, SyShapePolygon<T> shapeNorth, SyPaintFillType fillEast, SyShapePolygon<T> shapeEast, SyPaintFillType fillSouth, SyShapePolygon<T> shapeSouth, SyPaintFillType fillWest, SyShapePolygon<T> shapeWest) The embossed parts of an embossed rectangle.- Parameters:
fillNorth- The north paintshapeNorth- The north shapefillEast- The east paintshapeEast- The east shapefillSouth- The south paintshapeSouth- The south shapefillWest- The west paintshapeWest- The west shape
-
-
Method Details
-
emboss
public static <T extends SySpaceType> SyEmbossedRectangle<T> emboss(com.io7m.jregions.core.parameterized.areas.PAreaI<T> area, SyPaintFillType fillNorth, SyPaintFillType fillEast, SyPaintFillType fillSouth, SyPaintFillType fillWest, int edgeOffset, int embossThickness) Emboss a rectangle.- Type Parameters:
T- The coordinate space- Parameters:
area- The rectangle areafillNorth- The north paintfillEast- The east paintfillSouth- The south paintfillWest- The west paintedgeOffset- The edge offset for the embossed partsembossThickness- The thickness of the embossed parts- Returns:
- An embossed rectangle
-
toString
-
hashCode
-
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). -
fillNorth
-
shapeNorth
Returns the value of theshapeNorthrecord component.- Returns:
- the value of the
shapeNorthrecord component
-
fillEast
-
shapeEast
-
fillSouth
-
shapeSouth
Returns the value of theshapeSouthrecord component.- Returns:
- the value of the
shapeSouthrecord component
-
fillWest
-
shapeWest
-