Back to index

moin  1.9.0~rc2
NullHandle.java
Go to the documentation of this file.
00001 /*
00002  * @(#)NullHandle.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.standard;
00007 
00008 import java.awt.*;
00009 import CH.ifa.draw.framework.*;
00010 
00022 public class NullHandle extends LocatorHandle {
00023 
00027     protected Locator fLocator;
00028 
00029     public NullHandle(Figure owner, Locator locator) {
00030         super(owner, locator);
00031     }
00032 
00037     public void draw(Graphics g) {
00038         Rectangle r = displayBox();
00039 
00040         g.setColor(Color.black);
00041         g.drawRect(r.x, r.y, r.width, r.height);
00042     }
00043 }