Ejemplo n.º 1
0
 /**
  * Transforms all coords of the figure by the current TRANSFORM attribute and then sets the
  * TRANSFORM attribute to null.
  */
 public void flattenTransform() {
   if (get(TRANSFORM) != null) {
     path.transform(get(TRANSFORM));
     set(TRANSFORM, null);
   }
   invalidate();
 }
Ejemplo n.º 2
0
 @Override
 public void transform(AffineTransform tx) {
   if (get(TRANSFORM) != null
       || (tx.getType() & (AffineTransform.TYPE_TRANSLATION)) != tx.getType()) {
     if (get(TRANSFORM) == null) {
       TRANSFORM.setClone(this, tx);
     } else {
       AffineTransform t = TRANSFORM.getClone(this);
       t.preConcatenate(tx);
       set(TRANSFORM, t);
     }
   } else {
     super.transform(tx);
   }
 }
Ejemplo n.º 3
0
 public SVGBezierFigure(boolean isClosed) {
   super(isClosed);
   set(UNCLOSED_PATH_FILLED, true);
 }