|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.NodeComponent | +--javax.media.j3d.Texture | +--javax.media.j3d.Texture2D | +--com.klg.jclass.chart3d.j3d.JCTexture2D
Field Summary |
Fields inherited from class javax.media.j3d.Texture |
ALLOW_BOUNDARY_COLOR_READ, ALLOW_BOUNDARY_MODE_READ, ALLOW_ENABLE_READ, ALLOW_ENABLE_WRITE, ALLOW_FILTER_READ, ALLOW_FORMAT_READ, ALLOW_IMAGE_READ, ALLOW_IMAGE_WRITE, ALLOW_MIPMAP_MODE_READ, ALLOW_SIZE_READ, ALPHA, BASE_LEVEL, BASE_LEVEL_LINEAR, BASE_LEVEL_POINT, CLAMP, FASTEST, INTENSITY, LUMINANCE, LUMINANCE_ALPHA, MULTI_LEVEL_LINEAR, MULTI_LEVEL_MIPMAP, MULTI_LEVEL_POINT, NICEST, RGB, RGBA, WRAP |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
protected |
JCTexture2D(ImageComponent2D texture,
int imageXOffset,
int imageYOffset,
int imageWidth,
int imageHeight,
int format)
Constructs a JCTexture2D object with the specified ImageComponent2D. |
Method Summary | |
static com.klg.jclass.chart3d.j3d.JCTexture2D |
createTexture(BufferedImage image,
boolean square,
int hAlignment,
int vAlignment,
Color fill)
Constructs a JCTexture2D object from the specified image which must be non-null. |
static com.klg.jclass.chart3d.j3d.JCTexture2D |
createTexture(String filename,
boolean square,
int hAlignment,
int vAlignment,
Color fill)
Constructs a JCTexture2D object from an image file specified by filename. |
static com.klg.jclass.chart3d.j3d.JCTexture2D |
createTexture(String filename,
Color fill)
Constructs a JCTexture2D object from an image file specified by filename. |
int |
getImageHeight()
Returns the height in pixels of the source image used to construct this JCTexture2D object. |
int |
getImageWidth()
Returns the width in pixels of the source image used to construct this JCTexture2D object. |
int |
getImageXOffset()
Returns the x offset - measured in pixels relative to the top left corner of this JCTexture2D object - of the source image's top left corner. |
int |
getImageYOffest()
Returns the y offset - measured in pixels relative to the top left corner of this JCTexture2D object - of the source image's top left corner. |
float |
toAlphaX(int x)
Converts the specified texel x coordinate location to the texture coordinate system, ie returns the equivalent of x / getImageWidth(). |
float |
toAlphaY(int y)
Converts the specified texel y coordinate location to the texture coordinate system, ie returns the equivalent of y / getImageHeight(). |
Methods inherited from class javax.media.j3d.Texture2D |
cloneNodeComponent, duplicateNodeComponent |
Methods inherited from class javax.media.j3d.Texture |
getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getEnable, getFormat, getHeight, getImage, getImages, getMagFilter, getMinFilter, getMipMapMode, getWidth, numMipMapLevels, setBoundaryColor, setBoundaryColor, setBoundaryModeS, setBoundaryModeT, setEnable, setImage, setImages, setMagFilter, setMinFilter, setMipMapMode |
Methods inherited from class javax.media.j3d.NodeComponent |
cloneNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, duplicateSceneGraphObject, getCapability, getUserData, isCompiled, isLive, setCapability, setUserData, updateNodeReferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected JCTexture2D(ImageComponent2D texture, int imageXOffset, int imageYOffset, int imageWidth, int imageHeight, int format)
Method Detail |
public static com.klg.jclass.chart3d.j3d.JCTexture2D createTexture(String filename, Color fill)
filename
- - image file used to construct the JCTexture2D objectfill
- - color to use fill in the background if the loaded image
does not have width and height equal to a power of twopublic static com.klg.jclass.chart3d.j3d.JCTexture2D createTexture(String filename, boolean square, int hAlignment, int vAlignment, Color fill)
filename
- - image file used to construct the JCTexture2D objectsquare
- - a flag to indicate wheteher the texture should havehAlignment
- - horizontal alignment of the image within the
texture - one of SwingConstants.LEFT, CENTER, or RIGHTvAlignment
- - vertical alignment of the image within the
texture - one of SwingConstants.TOP, CENTER, or BOTTOMfill
- - color to use fill in the background if the loaded image
does not have width and height equal to a power of twopublic static com.klg.jclass.chart3d.j3d.JCTexture2D createTexture(BufferedImage image, boolean square, int hAlignment, int vAlignment, Color fill)
image
- - non-null image used to construct this JCTexture2D objectsquare
- - a flag to indicate wheteher the texture should havehAlignment
- - horizontal alignment of the image within the
texture - one of SwingConstants.LEFT, CENTER, or RIGHTvAlignment
- - vertical alignment of the image within the
texture - one of SwingConstants.TOP, CENTER, or BOTTOMfill
- - color to use fill in the background if the loaded image
does not have width and height equal to a power of twopublic float toAlphaX(int x)
public float toAlphaY(int y)
public int getImageXOffset()
public int getImageYOffest()
public int getImageWidth()
public int getImageHeight()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |