private void drawRectangle(double x, double y, URectangle shape) { xslot.addSlot(x, x + shape.getWidth()); yslot.addSlot(y, y + shape.getHeight()); }
private void drawEllipse(double x, double y, UEllipse shape) { xslot.addSlot(x, x + shape.getWidth()); yslot.addSlot(y, y + shape.getHeight()); }
private void drawPolygon(double x, double y, UPolygon shape) { xslot.addSlot(x + shape.getMinX(), x + shape.getMaxX()); yslot.addSlot(y + shape.getMinY(), y + shape.getMaxY()); }
private void drawText(double x, double y, UText shape) { final TextLimitFinder finder = new TextLimitFinder(stringBounder, false); finder.apply(new UTranslate(x, y)).draw(shape); xslot.addSlot(finder.getMinX(), finder.getMaxX()); yslot.addSlot(finder.getMinY(), finder.getMaxY()); }