Class BoxTransformer.BBoxes

  • Enclosing class:

    public static class BoxTransformer.BBoxes
    extends java.lang.Object
    A set of boxes for several layers.
    • Constructor Detail

      • BBoxes

        public BBoxes​(MapMetric metric)
        Creates an empty set of boxes suited for the given metric.
    • Method Detail

      • setBoxX

        public BoxTransformer.BBox setBoxX​(int layer,
                                           int minx,
                                           int maxx)
        Adjusts the x-dimensions of a box.
      • setBoxY

        public BoxTransformer.BBox setBoxY​(int layer,
                                           int miny,
                                           int maxy)
        Adjusts the y-dimension of a box.
      • getBox

        public BoxTransformer.BBox getBox​(int layer)
        Returns the box for the specified layer or null if it has not been set.
      • getLayers

        public java.util.Collection<java.lang.Integer> getLayers()
        Returns all layers for which boxes have been set.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object