private double getGraphicWidth(Map<String, Object> map, MapTransform mt) throws ParameterException, IOException { RelativeOrientation rOrient = this.getRelativeOrientation(); Rectangle2D bounds = graphic.getBounds(map, false, mt); double gWidth = bounds.getWidth(); double gHeight = bounds.getHeight(); switch (rOrient) { case LINE: return gHeight; case NORMAL: case NORMAL_UP: case PORTRAYAL: default: return gWidth; } }