edu.byu.deg.OntologyEditor.shapes
Class PointUtilities

java.lang.Object
  extended byedu.byu.deg.OntologyEditor.shapes.PointUtilities

public abstract class PointUtilities
extends Object


Constructor Summary
PointUtilities()
           
 
Method Summary
static Point2D.Double convertPoint(Component source, Point2D.Double aPoint, Component destination)
           
static void convertPointFromScreen(Point2D.Double p, Component c)
          Convert a point from a screen coordinates to a component's coordinate system
static void convertPointToScreen(Point2D.Double p, Component c)
           
static Point2D.Double hiResPoint(Point pt)
           
static Point lowResPoint(Point2D.Double pt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointUtilities

public PointUtilities()
Method Detail

hiResPoint

public static Point2D.Double hiResPoint(Point pt)

lowResPoint

public static Point lowResPoint(Point2D.Double pt)

convertPoint

public static Point2D.Double convertPoint(Component source,
                                          Point2D.Double aPoint,
                                          Component destination)

convertPointToScreen

public static void convertPointToScreen(Point2D.Double p,
                                        Component c)

convertPointFromScreen

public static void convertPointFromScreen(Point2D.Double p,
                                          Component c)
Convert a point from a screen coordinates to a component's coordinate system

Parameters:
p - a Point object (converted to the new coordinate system)
c - a Component object