net.sf.jaxodraw.util
Class Location.RelativeToAvoiding

java.lang.Object
  extended by net.sf.jaxodraw.util.Location.RelativeToAvoiding
All Implemented Interfaces:
Location
Enclosing interface:
Location

public static class Location.RelativeToAvoiding
extends Object
implements Location

Class to set locations relative to other components.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.jaxodraw.util.Location
Location.RelativeTo, Location.RelativeToAvoiding
 
Constructor Summary
Location.RelativeToAvoiding(Component c, Rectangle avoidr)
          Constructor.
 
Method Summary
 void setLocation(Window w)
          Set the location of the given window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location.RelativeToAvoiding

public Location.RelativeToAvoiding(Component c,
                                   Rectangle avoidr)
Constructor.

Parameters:
c - the component that serves as a reference.
avoidr - the component to avoid.
Method Detail

setLocation

public void setLocation(Window w)
Set the location of the given window.

Specified by:
setLocation in interface Location
Parameters:
w - the window to locate.


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.