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.
|
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 |
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, isAttached
public 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 GuiComponent
clone
in class AbstractGuiComponent
public void attach(GuiControl parent)
attach
in interface GuiComponent
attach
in class AbstractGuiComponent
public void detach(GuiControl parent)
detach
in interface GuiComponent
detach
in class AbstractGuiComponent
public void setColor(com.jme3.math.ColorRGBA c)
ColoredComponent
setColor
in interface ColoredComponent
protected void resetColor()
public com.jme3.math.ColorRGBA getColor()
ColoredComponent
getColor
in interface ColoredComponent
public void setAlpha(float f)
ColoredComponent
setAlpha
in interface ColoredComponent
public float getAlpha()
ColoredComponent
getAlpha
in interface ColoredComponent
public 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 GuiMaterial getMaterial()
public void calculatePreferredSize(com.jme3.math.Vector3f size)
calculatePreferredSize
in interface GuiComponent
public void reshape(com.jme3.math.Vector3f pos, com.jme3.math.Vector3f size)
reshape
in interface GuiComponent
protected void createMaterial()
protected void refreshBackground(com.jme3.math.Vector3f size)