Drawable, scaled various way within the widgets bounds. The preferred size is the min size of the drawable.
Only when using a TextureRegionDrawable will the actor's scale, rotation, and origin be used when drawing.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Drawable | |
| private float | |
| private float | |
| private float | |
| private float | |
| private Scaling |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | draw(Batch batch, float parentAlpha)
Overrides com. If this method is overridden, the super method or |
| public int | |
| public Drawable | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public void | layout()
Overrides com. Implements com. Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child,
calls |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides com. Returns a string representation of the object. |
| align | back to summary |
|---|---|
| private int align | |
| drawable | back to summary |
|---|---|
| private Drawable drawable | |
| imageHeight | back to summary |
|---|---|
| private float imageHeight | |
| imageWidth | back to summary |
|---|---|
| private float imageWidth | |
| imageX | back to summary |
|---|---|
| private float imageX | |
| imageY | back to summary |
|---|---|
| private float imageY | |
| scaling | back to summary |
|---|---|
| private Scaling scaling | |
| Image | back to summary |
|---|---|
| public Image() Creates an image with no drawable, stretched, and aligned center. | |
| Image | back to summary |
|---|---|
| public Image(NinePatch patch) Creates an image stretched, and aligned center.
| |
| Image | back to summary |
|---|---|
| public Image(TextureRegion region) Creates an image stretched, and aligned center.
| |
| Image | back to summary |
|---|---|
| public Image(Texture texture) Creates an image stretched, and aligned center. | |
| Image | back to summary |
|---|---|
| public Image(Skin skin, String drawableName) Creates an image stretched, and aligned center. | |
| Image | back to summary |
|---|---|
| public Image(Drawable drawable) Creates an image stretched, and aligned center.
| |
| Image | back to summary |
|---|---|
| public Image(Drawable drawable, Scaling scaling) Creates an image aligned center.
| |
| Image | back to summary |
|---|---|
public Image(Drawable drawable, Scaling scaling, int align)
| |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float parentAlpha) Overrides com. Doc from com. If this method is overridden, the super method or | |
| getAlign | back to summary |
|---|---|
| public int getAlign() | |
| getDrawable | back to summary |
|---|---|
| public Drawable getDrawable() | |
| getImageHeight | back to summary |
|---|---|
| public float getImageHeight() | |
| getImageWidth | back to summary |
|---|---|
| public float getImageWidth() | |
| getImageX | back to summary |
|---|---|
| public float getImageX() | |
| getImageY | back to summary |
|---|---|
| public float getImageY() | |
| getMinHeight | back to summary |
|---|---|
| public float getMinHeight() Overrides com. Implements com. | |
| getMinWidth | back to summary |
|---|---|
| public float getMinWidth() Overrides com. Implements com. | |
| getPrefHeight | back to summary |
|---|---|
| public float getPrefHeight() Overrides com. Implements com. | |
| getPrefWidth | back to summary |
|---|---|
| public float getPrefWidth() Overrides com. Implements com. | |
| layout | back to summary |
|---|---|
| public void layout() Overrides com. Implements com. Doc from com. Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child,
calls | |
| setAlign | back to summary |
|---|---|
| public void setAlign(int align) | |
| setDrawable | back to summary |
|---|---|
| public void setDrawable(Skin skin, String drawableName) | |
| setDrawable | back to summary |
|---|---|
| public void setDrawable(Drawable drawable) Sets a new drawable for the image. The image's pref size is the drawable's min size. If using the image actor's size rather
than the pref size,
| |
| setScaling | back to summary |
|---|---|
| public void setScaling(Scaling scaling) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |