com.jme3.ui
クラス Picture

java.lang.Object
  上位を拡張 com.jme3.scene.Spatial
      上位を拡張 com.jme3.scene.Geometry
          上位を拡張 com.jme3.ui.Picture
すべての実装されたインタフェース:
Asset, Collidable, Savable, java.lang.Cloneable

public class Picture
extends Geometry

A Picture represents a 2D image drawn on the screen. It can be used to represent sprites or other background elements.


入れ子のクラスの概要
 
クラス com.jme3.scene.Spatial から継承された入れ子のクラス/インタフェース
Spatial.CullHint
 
フィールドの概要
 
クラス com.jme3.scene.Spatial から継承されたフィールド
queueDistance
 
コンストラクタの概要
Picture()
           
Picture(java.lang.String name)
          Creates a named picture.
Picture(java.lang.String name, boolean flipY)
          Create a named picture.
 
メソッドの概要
 void setHeight(float height)
          Set the height in pixels of the picture, if the height does not match the texture's height, then the texture will be scaled to fit the picture.
 void setImage(AssetManager assetManager, java.lang.String imgName, boolean useAlpha)
          Set the image to put on the picture.
 void setPosition(float x, float y)
          Set the position of the picture in pixels.
 void setTexture(AssetManager assetManager, Texture2D tex, boolean useAlpha)
          Set the texture to put on the picture.
 void setWidth(float width)
          Set the width in pixels of the picture, if the width does not match the texture's width, then the texture will be scaled to fit the picture.
 
クラス com.jme3.scene.Geometry から継承されたメソッド
clone, clone, collideWith, computeWorldMatrix, deepClone, depthFirstTraversal, getLodLevel, getMaterial, getMesh, getModelBound, getTriangleCount, getVertexCount, getWorldMatrix, isIgnoreTransform, read, setIgnoreTransform, setLodLevel, setMaterial, setMesh, setModelBound, updateModelBound, write
 
クラス com.jme3.scene.Spatial から継承されたメソッド
addControl, addLight, breadthFirstTraversal, center, checkCulling, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, toString, updateGeometricState, updateLogicalState, worldToLocal
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Picture

public Picture(java.lang.String name,
               boolean flipY)
Create a named picture. By default a picture's width and height are 1 and its position is 0, 0.

パラメータ:
name - the name of the picture in the scene graph
flipY - If true, the Y coordinates of the texture will be flipped.

Picture

public Picture(java.lang.String name)
Creates a named picture. By default a picture's width and height are 1 and its position is 0, 0. The image texture coordinates will not be flipped.

パラメータ:
name - the name of the picture in the scene graph

Picture

public Picture()
メソッドの詳細

setWidth

public void setWidth(float width)
Set the width in pixels of the picture, if the width does not match the texture's width, then the texture will be scaled to fit the picture.

パラメータ:
width - the width to set.

setHeight

public void setHeight(float height)
Set the height in pixels of the picture, if the height does not match the texture's height, then the texture will be scaled to fit the picture.

パラメータ:
height - the height to set.

setPosition

public void setPosition(float x,
                        float y)
Set the position of the picture in pixels. The origin (0, 0) is at the bottom-left of the screen.

パラメータ:
x - The x coordinate
y - The y coordinate

setImage

public void setImage(AssetManager assetManager,
                     java.lang.String imgName,
                     boolean useAlpha)
Set the image to put on the picture.

パラメータ:
assetManager - The AssetManager to use to load the image.
imgName - The image name.
useAlpha - If true, the picture will appear transparent and allow objects behind it to appear through. If false, the transparent portions will be the image's color at that pixel.

setTexture

public void setTexture(AssetManager assetManager,
                       Texture2D tex,
                       boolean useAlpha)
Set the texture to put on the picture.

パラメータ:
assetManager - The AssetManager to use to load the material.
tex - The texture
useAlpha - If true, the picture will appear transparent and allow objects behind it to appear through. If false, the transparent portions will be the image's color at that pixel.