java.lang.Object
org.mbari.jcommons.awt.AwtUtil
-
Constructor Details
-
AwtUtil
public AwtUtil()
-
-
Method Details
-
toPoint
- Parameters:
p2- The Point2D object to convert- Returns:
- the Point object closes to the Point2D object
-
toPoint2D
- Parameters:
p- The Point object to convert- Returns:
- the Point2D.Double object containing the infromation from the point you supplied.
-
getWindow
Returns the Window that contains the given component. If it's not contained in window then null is returned.- Parameters:
component- The component whose containing window we want to find.- Returns:
- The containing window or None if not in a containing window
-
getFrame
Returns the Frame that contains the given component. If it's not contained in a Frame (for example if it's in a Dialog, which is a Window but not a Frame) then None is returned
-