public class CharacterDescriptor extends Object
| Constructor and Description |
|---|
CharacterDescriptor(int[] components,
Colorization[][] zations)
Constructs a character descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Colorization[][] |
getColorizations()
Returns an array of colorization arrays to be applied to the
components when compositing action images (one array per
component).
|
int[] |
getComponentIds()
Returns an array of the component identifiers comprising the
character described by this descriptor.
|
Point[] |
getTranslations()
Returns the array of translations to be applied to the components
when compositing action images.
|
int |
hashCode() |
void |
setColorizations(Colorization[][] zations)
Updates the colorizations to be used by this character descriptor.
|
void |
setTranslations(Point[] xlations)
Updates the translations to be used by this character descriptor.
|
String |
toString() |
public CharacterDescriptor(int[] components,
Colorization[][] zations)
components - the component ids of the individual components
that make up this character.zations - the colorizations to apply to each of the character
component images when compositing actions (an array of
colorizations for each component, elements of which can be null to
make it easier to support per-component specialized colorizations).
This can be null if image recolorization is not desired.public int[] getComponentIds()
public Colorization[][] getColorizations()
public void setColorizations(Colorization[][] zations)
public Point[] getTranslations()
public void setTranslations(Point[] xlations)
Copyright © 2015. All rights reserved.