ca.sqlpower.architect.swingui.olap
Class UsageComponentUI
java.lang.Object
ca.sqlpower.architect.swingui.olap.UsageComponentUI
- All Implemented Interfaces:
- PlayPenComponentUI
public class UsageComponentUI
- extends java.lang.Object
- implements PlayPenComponentUI
|
Method Summary |
protected java.awt.Point |
centreOf(java.awt.Rectangle r)
|
boolean |
contains(java.awt.Point p)
|
java.awt.Dimension |
getPreferredSize()
|
void |
installUI(PlayPenComponent c)
|
boolean |
intersects(java.awt.Rectangle rubberBand)
|
void |
paint(java.awt.Graphics2D g2)
|
void |
revalidate()
|
void |
uninstallUI(PlayPenComponent c)
|
static int |
x(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2,
double y)
Finds the X coordinate where the line through points (p1,p2)
passes through Y. |
static int |
y(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2,
double x)
Finds the Y coordinate where the line through points (p1,p2)
passes through X. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsageComponentUI
public UsageComponentUI()
intersects
public boolean intersects(java.awt.Rectangle rubberBand)
contains
public boolean contains(java.awt.Point p)
- Specified by:
contains in interface PlayPenComponentUI
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Specified by:
getPreferredSize in interface PlayPenComponentUI
paint
public void paint(java.awt.Graphics2D g2)
- Specified by:
paint in interface PlayPenComponentUI
revalidate
public void revalidate()
- Specified by:
revalidate in interface PlayPenComponentUI
y
public static int y(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2,
double x)
- Finds the Y coordinate where the line through points (p1,p2)
passes through X.
- Parameters:
p1 - One point on the linep2 - The other point on the linex - The x coordinate to find Y for
- Returns:
- The y coordinate of the line at x
x
public static int x(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2,
double y)
- Finds the X coordinate where the line through points (p1,p2)
passes through Y.
- Parameters:
p1 - One point on the linep2 - The other point on the liney - The y coordinate to find X for
- Returns:
- The x coordinate of the line at y
centreOf
protected java.awt.Point centreOf(java.awt.Rectangle r)
uninstallUI
public void uninstallUI(PlayPenComponent c)
- Specified by:
uninstallUI in interface PlayPenComponentUI
installUI
public void installUI(PlayPenComponent c)
- Specified by:
installUI in interface PlayPenComponentUI
Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca