|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.renderer.java3d.overlay.OverlayUtilities
Utility functionality for creating parts of the overlay system.
Although designed mainly for internal use, this could be useful for end users too.
| Constructor Summary | |
OverlayUtilities()
|
|
| Method Summary | |
static java.util.List |
components(int value,
int threshhold,
int max)
Breaks an integer into powers of 2. |
static java.awt.image.BufferedImage |
createBufferedImage(java.awt.Dimension size,
boolean hasAlpha)
Create a buffered image that uses a 3 component colour model with the option of adding an alpha component. |
static int |
optimalPower(int value,
int threshhold,
int max)
Returns an optimal power of two for the value given. |
static int |
smallestPower(int value)
Return the smallest power of 2 greater than value |
static java.util.List |
subdivide(java.awt.Dimension dimension,
int threshhold,
int max)
Subdivides an area into a closest fit set of Rectangle with sides that are powers of 2. |
static java.util.List |
subdivide(int width,
int height,
int threshhold,
int max)
Subdivides an area into a closest fit set of Rectangle with sides that are powers of 2. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OverlayUtilities()
| Method Detail |
public static java.awt.image.BufferedImage createBufferedImage(java.awt.Dimension size,
boolean hasAlpha)
size - The overall size of the image in pixelshasAlpha - true if the image should contain an alpha channel
public static java.util.List subdivide(java.awt.Dimension dimension,
int threshhold,
int max)
dimension - The required total sizemax - The maximum required size
public static java.util.List subdivide(int width,
int height,
int threshhold,
int max)
max - The maximum required size
public static java.util.List components(int value,
int threshhold,
int max)
value - The target value to achievemax - The maximum required size
public static int optimalPower(int value,
int threshhold,
int max)
public static int smallestPower(int value)
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||