All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapfish.print.map.geotools.grid.GridLabel Maven / Gradle / Ivy

There is a newer version: 3.22.0
Show newest version
package org.mapfish.print.map.geotools.grid;

/**
 * Represents text, position and rotation of a label.
 */
class GridLabel {
    final String text;
    final int x, y;
    final Side side;

    GridLabel(final String text, final int x, final int y, final Side side) {
        this.text = text;
        this.x = x;
        this.y = y;
        this.side = side;
    }

    @Override
    public String toString() {
        return "GridLabel{" +
                "text='" + this.text + '\'' +
                ", x=" + this.x +
                ", y=" + this.y +
                ", side=" + this.side +
                '}';
    }

    enum Side {
        TOP, BOTTOM, LEFT, RIGHT
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy