|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xith.java3d.overlay.OverlayUtilities
Copyright: Copyright (c) 2000,2001 Company: Teseract Software, LLP
Constructor Summary | |
OverlayUtilities()
|
Method Summary | |
static javax.media.j3d.Shape3D |
buildShape(javax.media.j3d.Appearance appearance,
java.awt.Rectangle bounds)
Builds a Shape3D with the specified appearanace covering the specified rectangle. |
static java.util.Vector |
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)
Return an appropriate buffered image for the size and format. |
static java.awt.image.BufferedImage[] |
loadImages(java.net.URL[] filename,
java.awt.Component observer,
boolean alphaInImage)
Loads an array of image filenames into an array of BufferedImages. |
static java.awt.image.BufferedImage[] |
loadImages(java.net.URL[] filename,
java.awt.Component observer,
boolean alphaInImage,
java.awt.Dimension maxSize)
Returns the maximum width and height in maxSize |
static int |
optimalPower(int value,
int threshhold,
int max)
Returns an optimal power of two for the value given. |
static void |
repositonBounds(java.awt.Rectangle bounds,
int[] relativePosition,
java.awt.Dimension canvasSize,
java.awt.Dimension offset)
Will offset the rectangle within the dimension according to the criteria in the array. |
static void |
setBackgroundColor(OverlayBase[] overlay,
java.awt.Color backgroundColor)
Will update the background color on a set of Overlays and not allow and of them to update until all have been set. |
static int |
smallestPower(int value)
Return the smallest power of 2 greater than value |
static java.util.Vector |
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. |
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)
public static java.awt.image.BufferedImage[] loadImages(java.net.URL[] filename, java.awt.Component observer, boolean alphaInImage)
public static java.awt.image.BufferedImage[] loadImages(java.net.URL[] filename, java.awt.Component observer, boolean alphaInImage, java.awt.Dimension maxSize)
public static void setBackgroundColor(OverlayBase[] overlay, java.awt.Color backgroundColor)
public static java.util.Vector subdivide(java.awt.Dimension dimension, int threshhold, int max)
public static java.util.Vector components(int value, int threshhold, int max)
public static int optimalPower(int value, int threshhold, int max)
public static int smallestPower(int value)
public static javax.media.j3d.Shape3D buildShape(javax.media.j3d.Appearance appearance, java.awt.Rectangle bounds)
public static void repositonBounds(java.awt.Rectangle bounds, int[] relativePosition, java.awt.Dimension canvasSize, java.awt.Dimension offset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |