com.ihr.xbrl.gui.basic
Class MainWindowTools

java.lang.Object
  extended by 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
MainWindowTools()
           
 
Method Summary
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 -
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


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa