Exemplo n.º 1
0
 private void drawRectangle(double x, double y, URectangle shape) {
   xslot.addSlot(x, x + shape.getWidth());
   yslot.addSlot(y, y + shape.getHeight());
 }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 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());
 }
Exemplo n.º 4
0
 private void drawEllipse(double x, double y, UEllipse shape) {
   xslot.addSlot(x, x + shape.getWidth());
   yslot.addSlot(y, y + shape.getHeight());
 }
Exemplo n.º 5
0
 public CompressionTransform(SlotSet slotSet) {
   this.all = slotSet.getSlots();
 }