Back to index

moin  1.9.0~rc2
BorderTool.java
Go to the documentation of this file.
00001 /*
00002  * @(#)BorderTool.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.figures;
00007 
00008 import CH.ifa.draw.standard.*;
00009 import CH.ifa.draw.framework.*;
00010 
00016 public  class BorderTool extends ActionTool {
00017 
00018     public BorderTool(DrawingView view) {
00019         super(view);
00020     }
00021 
00025     public void action(Figure figure) {
00026         drawing().replace(figure, new BorderDecorator(figure));
00027     }
00028 }