package net.sf.jtikz;

import java.awt.Shape;

public class GraphicsCommand {
    Object command;
    Shape clip;
    
    public boolean verbose = false;
    
    public GraphicsCommand(Object command, AbstractGraphicsInterface creator) {
        this.command = command;
        clip = creator.getClip();
        AbstractGraphicsInterface t = creator;
        while(clip == null && t.parent != null) {
            t = t.parent;
            clip = t.getClip();
        }
        if (verbose) System.err.println("Clip: " + clip); // change by av
    }
    public Object getCommand() {
        return command;
    }
    public Shape getClip() {
        return clip;
    }
}

 

Ads help maintain this website.