com.ihr.xbrl.gui.basic

## Class MainWindowTools

- java.lang.Object
- - com.ihr.xbrl.gui.basic.MainWindowTools

-     public class MainWindowTools
      extends java.lang.Object

  The idea is to put in this class useful methods and things that can be shared between applications.
  Author:
    Ignacio

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MainWindowTools()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.awt.Point` | `checkVisible(java.awt.Point mainWndPosition)` Checks if the point received as a parameter is in a physical screen.
    `static java.awt.Dimension` | `maxDimension(java.awt.Dimension[] dimensions)` Returns a rectangle that contains the maximum width and maximum height found in the array of dimensions received as parameters

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MainWindowTools

          public MainWindowTools()

  - ### Method Detail

    - #### checkVisible

          public static java.awt.Point checkVisible(java.awt.Point mainWndPosition)

      Checks if the point received as a parameter is in a physical screen. If the point is not visible (because that screen is not connected) then the point (0,0) is returned
      Parameters:
        `mainWndPosition` - the main wnd position
      Returns:
        the same or a new point

    - #### maxDimension

          public static java.awt.Dimension maxDimension(java.awt.Dimension[] dimensions)

      Returns a rectangle that contains the maximum width and maximum height found in the array of dimensions received as parameters
      Parameters:
        `dimensions` - array of Dimension instances
      Returns:
        one new Dimension instance