ca.aura.ui.swt.actions
Class WhiteBoardEngine

java.lang.Object
  |
  +--ca.aura.ui.swt.actions.WhiteBoardEngine

public class WhiteBoardEngine
extends java.lang.Object

Author:
aforward

Constructor Summary
WhiteBoardEngine(WhiteBoardView wb, Graph g)
          default
 
Method Summary
protected  Rectangle getBounds(Point midPoint, Point dimensions)
          get the bounds based on the midpoint and the dimennsions of an object
protected  Point getMidPoint(Control control)
          get the midpoint of a control
protected  double getRotationDegree(java.lang.Object obj, Graph g)
          get the rotation degree
 void layout(java.lang.Object obj)
           
protected  double length(Point p1, double x2, double y2)
          length between two points
protected  double offsetX(double x, double rad, double amount)
          get the x offset
protected  double offsetY(double y, double rad, double amount)
          get the y offset
protected  Point rotate(Point midpoint, double radian, double radius)
          rotate a point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteBoardEngine

public WhiteBoardEngine(WhiteBoardView wb,
                        Graph g)
default

Method Detail

layout

public void layout(java.lang.Object obj)

getRotationDegree

protected double getRotationDegree(java.lang.Object obj,
                                   Graph g)
get the rotation degree


getBounds

protected Rectangle getBounds(Point midPoint,
                              Point dimensions)
get the bounds based on the midpoint and the dimennsions of an object


getMidPoint

protected Point getMidPoint(Control control)
get the midpoint of a control


rotate

protected Point rotate(Point midpoint,
                       double radian,
                       double radius)
rotate a point


length

protected double length(Point p1,
                        double x2,
                        double y2)
length between two points


offsetX

protected double offsetX(double x,
                         double rad,
                         double amount)
get the x offset


offsetY

protected double offsetY(double y,
                         double rad,
                         double amount)
get the y offset



Copyright © 2002 University of Ottawa. All Rights Reserved.