|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscenic.Util
public class Util
This class contains utility methods.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
combine(java.awt.Rectangle a,
int x,
int y)
Combines the given rectangle with the given point. |
static void |
combine(java.awt.Rectangle a,
java.awt.Rectangle b)
Combines the two rectangles. |
static void |
common(java.awt.Rectangle a,
java.awt.Rectangle b)
Calculates the common area shared by the rectangles. |
static boolean |
hasCommonArea(java.awt.Rectangle a,
java.awt.Rectangle b)
|
static java.awt.geom.AffineTransform |
linearTransform(java.awt.geom.AffineTransform a)
|
static java.awt.geom.AffineTransform |
multiply(java.awt.geom.AffineTransform a,
java.awt.geom.AffineTransform b)
|
static int |
toPowerOfTwo(int size)
Returns a power of two that is larger or equal to the given value. |
static java.awt.Rectangle |
transform(java.awt.geom.AffineTransform a,
java.awt.Rectangle b)
Returns a rectangle that contains the area of the given rectangle transformed by the given transform. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static void combine(java.awt.Rectangle a,
int x,
int y)
a - the rectangle.x - the x coordinate of the pointy - the y coodrinate of the point
public static void combine(java.awt.Rectangle a,
java.awt.Rectangle b)
a - the first rectangle.b - the second rectangle.
public static void common(java.awt.Rectangle a,
java.awt.Rectangle b)
a - the first rectangle.b - the second rectangle.
public static boolean hasCommonArea(java.awt.Rectangle a,
java.awt.Rectangle b)
public static int toPowerOfTwo(int size)
size - the value.
public static java.awt.Rectangle transform(java.awt.geom.AffineTransform a,
java.awt.Rectangle b)
a - the transform.b - the rectangle.
public static java.awt.geom.AffineTransform multiply(java.awt.geom.AffineTransform a,
java.awt.geom.AffineTransform b)
public static java.awt.geom.AffineTransform linearTransform(java.awt.geom.AffineTransform a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||