Package net.sf.gridarta.action.exportmap
Class LayoutInfo
- java.lang.Object
-
- net.sf.gridarta.action.exportmap.LayoutInfo
-
public class LayoutInfo extends java.lang.ObjectStores layout information for maps.
-
-
Constructor Summary
Constructors Constructor Description LayoutInfo(@NotNull MapFile mapFile, int x, int y)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MapFilegetMapFile()Returns theMapFilethat identifies the map.intgetX()Returns the x coordinate of the left border of the map within the final image.intgetY()Returns the y coordinate of the top border of the map within the final image.@NotNull java.lang.StringtoString()
-
-
-
Constructor Detail
-
LayoutInfo
public LayoutInfo(@NotNull @NotNull MapFile mapFile, int x, int y)Creates a new instance.- Parameters:
mapFile- the map file that identifies the mapx- the x coordinate of the left border of the map within the final image; may be negativey- the y coordinate of the top border of the map within the final image; may be negative
-
-
Method Detail
-
getMapFile
@NotNull public @NotNull MapFile getMapFile()
Returns theMapFilethat identifies the map.- Returns:
- the map file
-
getX
public int getX()
Returns the x coordinate of the left border of the map within the final image. The origin of the final image is an arbitrary point, therefore this x coordinate may be negative.- Returns:
- the x coordinate; may be negative
-
getY
public int getY()
Returns the y coordinate of the top border of the map within the final image. The origin of the final image is an arbitrary point, therefore this y coordinate may be negative.- Returns:
- the y coordinate; may be negative
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-