Package org.mapfish.print.map.tiled
Record Class TilePreparationInfo
java.lang.Object
java.lang.Record
org.mapfish.print.map.tiled.TilePreparationInfo
- Record Components:
singleTiles
- tilesimageWidth
- image widthimageHeight
- image heightgridCoverageOrigin
- grid coverage origingridCoverageMaxX
- grid coverage max xgridCoverageMaxY
- grid coverage max ymapProjection
- map projection
public record TilePreparationInfo(List<TilePreparationInfo.SingleTilePreparationInfo> singleTiles, int imageWidth, int imageHeight, org.locationtech.jts.geom.Coordinate gridCoverageOrigin, double gridCoverageMaxX, double gridCoverageMaxY, org.geotools.api.referencing.crs.CoordinateReferenceSystem mapProjection)
extends Record
Tile Preparation Task Result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Information per tile (x, y and request). -
Constructor Summary
ConstructorsConstructorDescriptionTilePreparationInfo
(List<TilePreparationInfo.SingleTilePreparationInfo> singleTiles, int imageWidth, int imageHeight, org.locationtech.jts.geom.Coordinate gridCoverageOrigin, double gridCoverageMaxX, double gridCoverageMaxY, org.geotools.api.referencing.crs.CoordinateReferenceSystem mapProjection) Creates an instance of aTilePreparationInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.double
Returns the value of thegridCoverageMaxX
record component.double
Returns the value of thegridCoverageMaxY
record component.org.locationtech.jts.geom.Coordinate
Returns the value of thegridCoverageOrigin
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theimageHeight
record component.int
Returns the value of theimageWidth
record component.org.geotools.api.referencing.crs.CoordinateReferenceSystem
Returns the value of themapProjection
record component.Returns the value of thesingleTiles
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TilePreparationInfo
public TilePreparationInfo(List<TilePreparationInfo.SingleTilePreparationInfo> singleTiles, int imageWidth, int imageHeight, org.locationtech.jts.geom.Coordinate gridCoverageOrigin, double gridCoverageMaxX, double gridCoverageMaxY, org.geotools.api.referencing.crs.CoordinateReferenceSystem mapProjection) Creates an instance of aTilePreparationInfo
record class.- Parameters:
singleTiles
- the value for thesingleTiles
record componentimageWidth
- the value for theimageWidth
record componentimageHeight
- the value for theimageHeight
record componentgridCoverageOrigin
- the value for thegridCoverageOrigin
record componentgridCoverageMaxX
- the value for thegridCoverageMaxX
record componentgridCoverageMaxY
- the value for thegridCoverageMaxY
record componentmapProjection
- the value for themapProjection
record 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 '=='. -
singleTiles
Returns the value of thesingleTiles
record component.- Returns:
- the value of the
singleTiles
record component
-
imageWidth
public int imageWidth()Returns the value of theimageWidth
record component.- Returns:
- the value of the
imageWidth
record component
-
imageHeight
public int imageHeight()Returns the value of theimageHeight
record component.- Returns:
- the value of the
imageHeight
record component
-
gridCoverageOrigin
public org.locationtech.jts.geom.Coordinate gridCoverageOrigin()Returns the value of thegridCoverageOrigin
record component.- Returns:
- the value of the
gridCoverageOrigin
record component
-
gridCoverageMaxX
public double gridCoverageMaxX()Returns the value of thegridCoverageMaxX
record component.- Returns:
- the value of the
gridCoverageMaxX
record component
-
gridCoverageMaxY
public double gridCoverageMaxY()Returns the value of thegridCoverageMaxY
record component.- Returns:
- the value of the
gridCoverageMaxY
record component
-
mapProjection
public org.geotools.api.referencing.crs.CoordinateReferenceSystem mapProjection()Returns the value of themapProjection
record component.- Returns:
- the value of the
mapProjection
record component
-