Back to index

moin  1.9.0~rc2
ElbowTextLocator.java
Go to the documentation of this file.
00001 /*
00002  * @(#)ElbowTextLocator.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.figures;
00007 
00008 import java.awt.*;
00009 import java.util.*;
00010 import java.io.IOException;
00011 import CH.ifa.draw.framework.*;
00012 import CH.ifa.draw.standard.*;
00013 import CH.ifa.draw.util.*;
00014 
00015 public class ElbowTextLocator extends AbstractLocator {
00016     public Point locate(Figure owner) {
00017         Point p = owner.center();
00018         Rectangle r = owner.displayBox();
00019         return new Point(p.x, p.y-10); // hack
00020     }
00021 }