Newer
Older
PureATN_M / src / main / java / cit / PureATN / PPPath.java
@motoki miura motoki miura on 3 Jun 2022 704 bytes コメント追加
package cit.PureATN;

import java.awt.Shape;
import java.awt.geom.Path2D;

import org.piccolo2d.nodes.PPath;

/**
 * 以前のPiccolo PPathとの互換性をとるためのクラス
 */
public class PPPath extends PPath.Double {
    public PPPath(){
        super(new Path2D.Float());
        // setStrokePaint(DEFAULT_STROKE_PAINT);
        // setStroke(DEFAULT_STROKE);
        setPaint(null);
    }
    public void setPathTo(final Shape aShape) {
        this.getPath().reset();
        append(aShape, false);
    }
    // public PInterpolatingActivity animateToStrokeColor(final Color destColor, final long duration) {
    //     return super.animateToColor(destColor, duration);
        
    // }
}