public class ClippedIcon extends MalisisIcon
MalisisIcon registered and stiched into a TextureMap. The
clipping will occur when the icon its based of is stiched.| Modifier and Type | Field and Description |
|---|---|
protected float |
clipHeight |
protected float |
clipWidth |
protected float |
clipX |
protected float |
clipY |
dependants, flippedU, flippedV, missing, rotation, sheetHeight, sheetWidth| Constructor and Description |
|---|
ClippedIcon(MalisisIcon parent,
float clipX,
float clipY,
float clipWidth,
float clipHeight) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initIcon(MalisisIcon baseIcon,
int width,
int height,
int x,
int y,
boolean rotated)
Initializes this
ClippedIcon and clips it based on the clipping set. |
void |
setClipping(float clipX,
float clipY,
float clipWidth,
float clipHeight)
Sets the clipping for this
ClippedIcon. |
addDependant, clip, clip, copy, copyFrom, flip, getMaxU, getMaxV, getMinU, getMinV, getRotation, initSprite, isFlippedU, isFlippedV, isRotated, offset, register, setRotation, setSize, setUVsclearFramesTextureData, generateMipmaps, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getOriginX, getOriginY, hasAnimationMetadata, hasCustomLoader, load, loadSprite, makeAtlasSprite, setFramesTextureData, setIconHeight, setIconWidth, setLocationNameClock, setLocationNameCompass, toString, updateAnimationprotected float clipX
protected float clipY
protected float clipWidth
protected float clipHeight
public ClippedIcon(MalisisIcon parent, float clipX, float clipY, float clipWidth, float clipHeight)
public void setClipping(float clipX,
float clipY,
float clipWidth,
float clipHeight)
ClippedIcon. Has no effect after the parent icon has been stiched.clipX - x offsetclipY - y offsetclipWidth - the clip widthclipHeight - the clip heightprotected void initIcon(MalisisIcon baseIcon, int width, int height, int x, int y, boolean rotated)
ClippedIcon and clips it based on the clipping set.initIcon in class MalisisIconbaseIcon - the base iconwidth - the widthheight - the heightx - the xy - the yrotated - the rotated