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

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

package org.mapfish.print.map.geotools.grid;

/**
 * Represents text, position and rotation of a label.
 *
 * @author Jesse on 8/6/2015.
 */
class GridLabel {
    // CSOFF: VisibilityModifier
    final String text;
    final int x, y;
    final Side side;
    // CSON: VisibilityModifier

    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