/** * 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(); }
@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); } }
public SVGBezierFigure(boolean isClosed) { super(isClosed); set(UNCLOSED_PATH_FILLED, true); }