Class Location.RelativeToAvoiding

  • All Implemented Interfaces:
    Location
    Enclosing interface:
    Location

    public static class Location.RelativeToAvoiding
    extends java.lang.Object
    implements Location
    Class to set locations relative to other components.
    • Constructor Summary

      Constructors 
      Constructor Description
      RelativeToAvoiding​(java.awt.Component c, java.awt.Rectangle avoidr)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setLocation​(java.awt.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

      • RelativeToAvoiding

        public RelativeToAvoiding​(java.awt.Component c,
                                  java.awt.Rectangle avoidr)
        Constructor.
        Parameters:
        c - the component that serves as a reference.
        avoidr - the component to avoid.
    • Method Detail

      • setLocation

        public void setLocation​(java.awt.Window w)
        Set the location of the given window.
        Specified by:
        setLocation in interface Location
        Parameters:
        w - the window to locate.