Package com.anylogic.engine.markup
- java.lang.Object
- java.lang.Record
- com.anylogic.engine.markup.DensityMap.GridBasedDensityMapPreparationSettings
- All Implemented Interfaces:
DensityMap.DensityMapPreparationSettings
- Enclosing class:
- DensityMap
@AnyLogicInternalLibraryAPI public static record DensityMap.GridBasedDensityMapPreparationSettings(Level level, double xUpperLeftPx, double yUpperLeftPx, int xCellCount, int yCellCount, double cellSizePx) extends Record implements DensityMap.DensityMapPreparationSettings
| Constructor | Description |
|---|---|
GridBasedDensityMapPreparationSettings |
Creates an instance of a
GridBasedDensityMapPreparationSettings record class. |
| Modifier and Type | Method | Description |
|---|---|---|
double | cellSizePx() |
Returns the value of the
cellSizePx record component. |
final boolean | equals |
Indicates whether some other object is "equal to" this one.
|
DensityMapBasisType | getBasisType() | |
final int | hashCode() |
Returns a hash code value for this object.
|
Level | level() |
Returns the value of the
level record component. |
final String | toString() |
Returns a string representation of this record class.
|
int | xCellCount() |
Returns the value of the
xCellCount record component. |
double | xUpperLeftPx() |
Returns the value of the
xUpperLeftPx record component. |
int | yCellCount() |
Returns the value of the
yCellCount record component. |
double | yUpperLeftPx() |
Returns the value of the
yUpperLeftPx record component. |
public GridBasedDensityMapPreparationSettings(Level level, double xUpperLeftPx, double yUpperLeftPx, int xCellCount, int yCellCount, double cellSizePx)
Creates an instance of a
GridBasedDensityMapPreparationSettings record class.- Parameters:
level- the value for thelevelrecord componentxUpperLeftPx- the value for thexUpperLeftPxrecord componentyUpperLeftPx- the value for theyUpperLeftPxrecord componentxCellCount- the value for thexCellCountrecord componentyCellCount- the value for theyCellCountrecord componentcellSizePx- the value for thecellSizePxrecord component
public DensityMapBasisType getBasisType()
- Specified by:
getBasisTypein interfaceDensityMap.DensityMapPreparationSettings
public final String 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.
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.
public final boolean equals(Object o)
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 with
Objects::equals(Object,Object); primitive components are compared with '=='.public Level level()
Returns the value of the
level record component.- Specified by:
levelin interfaceDensityMap.DensityMapPreparationSettings- Returns:
- the value of the
levelrecord component
public double xUpperLeftPx()
Returns the value of the
xUpperLeftPx record component.- Returns:
- the value of the
xUpperLeftPxrecord component
public double yUpperLeftPx()
Returns the value of the
yUpperLeftPx record component.- Returns:
- the value of the
yUpperLeftPxrecord component
public int xCellCount()
Returns the value of the
xCellCount record component.- Returns:
- the value of the
xCellCountrecord component
public int yCellCount()
Returns the value of the
yCellCount record component.- Returns:
- the value of the
yCellCountrecord component
public double cellSizePx()
Returns the value of the
cellSizePx record component.- Returns:
- the value of the
cellSizePxrecord component