/*
* @(#)BorderTool.java 5.2
*
*/
package CH.ifa.draw.figures;
import CH.ifa.draw.standard.*;
import CH.ifa.draw.framework.*;
/**
* BorderTool decorates the clicked figure with a BorderDecorator.
*
* @see BorderDecorator
*/
public class BorderTool extends ActionTool {
public BorderTool(DrawingView view) {
super(view);
}
/**
* Decorates the clicked figure with a border.
*/
public void action(Figure figure) {
drawing().replace(figure, new BorderDecorator(figure));
}
}
Ads help maintain this website.