public Shape createTransformedShape(AffineTransform t) { GeneralPath p = (GeneralPath)clone(); if (t != null) { p.transform(t); } return(p); }
public Object clone() { try { GeneralPath p = (GeneralPath)base.MemberwiseClone(); byte [] newTypes = new byte[this.types.Length]; java.lang.SystemJ.arraycopy(this.types, 0, newTypes, 0, newTypes.Length); //p.types = types.clone(); float [] newPoints = new float[this.points.Length]; java.lang.SystemJ.arraycopy(this.points, 0, newTypes, 0, newPoints.Length); //p.points = points.clone(); return(p); } catch (java.lang.CloneNotSupportedException) { throw new java.lang.InternalError(); } }
public Shape createTransformedShape(Shape src) { if (src == null) { return(null); } if (src is GeneralPath) { return(((GeneralPath)src).createTransformedShape(this)); } PathIterator path = src.getPathIterator(this); GeneralPath dst = new GeneralPath(path.getWindingRule()); dst.append(path, false); return(dst); }
/** * Constructs a new GeneralPath.Iterator for given general path * @param path - the source GeneralPath object */ Iterator(GeneralPath path) : this(path, null) { }
/** * Constructs a new GeneralPath.Iterator for given general path and transformation * @param path - the source GeneralPath object * @param at - the AffineTransform object to apply rectangle path */ internal Iterator(GeneralPath path, AffineTransform at) { this.p = path; this.t = at; }
public Shape createTransformedShape(Shape src) { if (src == null) { return null; } if (src is GeneralPath) { return ((GeneralPath)src).createTransformedShape(this); } PathIterator path = src.getPathIterator(this); GeneralPath dst = new GeneralPath(path.getWindingRule()); dst.append(path, false); return dst; }