public class QuadBackgroundComponent extends AbstractGuiComponent implements java.lang.Cloneable, ColoredComponent
| Constructor and Description |
|---|
QuadBackgroundComponent() |
QuadBackgroundComponent(com.jme3.math.ColorRGBA color) |
QuadBackgroundComponent(com.jme3.math.ColorRGBA color,
float xMargin,
float yMargin) |
QuadBackgroundComponent(com.jme3.math.ColorRGBA color,
float xMargin,
float yMargin,
float zOffset,
boolean lit) |
QuadBackgroundComponent(com.jme3.texture.Texture texture) |
QuadBackgroundComponent(com.jme3.texture.Texture texture,
float xMargin,
float yMargin) |
QuadBackgroundComponent(com.jme3.texture.Texture texture,
float xMargin,
float yMargin,
float zOffset,
boolean lit) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(GuiControl parent) |
void |
calculatePreferredSize(com.jme3.math.Vector3f size) |
QuadBackgroundComponent |
clone() |
protected void |
createMaterial() |
void |
detach(GuiControl parent) |
float |
getAlpha()
Returns the current alpha multiplier that is applied
to the color when set to the actual visuals.
|
float |
getAlphaDiscard() |
com.jme3.math.ColorRGBA |
getColor()
Returns the current color of this component.
|
com.jme3.math.Vector2f |
getMargin() |
GuiMaterial |
getMaterial() |
com.jme3.texture.Texture |
getTexture() |
com.jme3.math.Vector2f |
getTextureCoordinateScale() |
float |
getZOffset() |
protected void |
refreshBackground(com.jme3.math.Vector3f size) |
protected void |
resetColor() |
void |
reshape(com.jme3.math.Vector3f pos,
com.jme3.math.Vector3f size) |
void |
setAlpha(float f)
Sets an alpha multiplier that will be applied to the
color when set to the actual visuals.
|
void |
setAlphaDiscard(float alphaDiscard)
Sets the alphaDiscardThreshold for the image material.
|
void |
setColor(com.jme3.math.ColorRGBA c)
Sets the color for this component.
|
void |
setMargin(float x,
float y) |
void |
setMargin(com.jme3.math.Vector2f margin) |
void |
setTexture(com.jme3.texture.Texture t) |
void |
setTextureCoordinateScale(com.jme3.math.Vector2f scale) |
void |
setZOffset(float z) |
getGuiControl, getNode, invalidate, isAttachedpublic QuadBackgroundComponent()
public QuadBackgroundComponent(com.jme3.math.ColorRGBA color)
public QuadBackgroundComponent(com.jme3.math.ColorRGBA color,
float xMargin,
float yMargin)
public QuadBackgroundComponent(com.jme3.math.ColorRGBA color,
float xMargin,
float yMargin,
float zOffset,
boolean lit)
public QuadBackgroundComponent(com.jme3.texture.Texture texture)
public QuadBackgroundComponent(com.jme3.texture.Texture texture,
float xMargin,
float yMargin)
public QuadBackgroundComponent(com.jme3.texture.Texture texture,
float xMargin,
float yMargin,
float zOffset,
boolean lit)
public QuadBackgroundComponent clone()
clone in interface GuiComponentclone in class AbstractGuiComponentpublic void attach(GuiControl parent)
attach in interface GuiComponentattach in class AbstractGuiComponentpublic void detach(GuiControl parent)
detach in interface GuiComponentdetach in class AbstractGuiComponentpublic void setColor(com.jme3.math.ColorRGBA c)
ColoredComponentsetColor in interface ColoredComponentprotected void resetColor()
public com.jme3.math.ColorRGBA getColor()
ColoredComponentgetColor in interface ColoredComponentpublic void setAlpha(float f)
ColoredComponentsetAlpha in interface ColoredComponentpublic float getAlpha()
ColoredComponentgetAlpha in interface ColoredComponentpublic void setTexture(com.jme3.texture.Texture t)
public com.jme3.texture.Texture getTexture()
public void setTextureCoordinateScale(com.jme3.math.Vector2f scale)
public com.jme3.math.Vector2f getTextureCoordinateScale()
public void setMargin(float x,
float y)
public void setMargin(com.jme3.math.Vector2f margin)
public com.jme3.math.Vector2f getMargin()
public void setZOffset(float z)
public float getZOffset()
public void setAlphaDiscard(float alphaDiscard)
Note: for 2D UIs this threshold is not necessary as 2D GUIs will always sort purely back-to-front on Z. For 3D UIs, this setting may prevent visual artifacts from certain directions for very transparent pixels (background showing through, etc.))
public float getAlphaDiscard()
public GuiMaterial getMaterial()
public void calculatePreferredSize(com.jme3.math.Vector3f size)
calculatePreferredSize in interface GuiComponentpublic void reshape(com.jme3.math.Vector3f pos,
com.jme3.math.Vector3f size)
reshape in interface GuiComponentprotected void createMaterial()
protected void refreshBackground(com.jme3.math.Vector3f size)