Class Location.RelativeTo

java.lang.Object
net.sf.jaxodraw.util.Location.RelativeTo
All Implemented Interfaces:
Location
Enclosing interface:
Location

public static class Location.RelativeTo extends Object implements Location
Class to set locations relative to other components.
  • Constructor Details

    • RelativeTo

      public RelativeTo(Component c)
      Constructor.
      Parameters:
      c - the component that serves as a reference point.
  • Method Details

    • 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.