Package | Description |
---|---|
org.cell2d | |
org.cell2d.space | |
org.cell2d.space.map |
Modifier and Type | Class and Description |
---|---|
class |
ColorFilter
A ColorFilter is a Filter that blends the RGB value of each pixel in the
original image with that of a single Color that it uses.
|
class |
ColorMapFilter
A ColorMapFilter is a Filter that uses a Map<Color,Color> to replace
some RGB values with others in the filtered image.
|
class |
ColorMultiplyFilter
A ColorMultiplyFilter is a Filter that multiplies the red, green, blue,
and alpha values of each pixel in the original image with those of a single
Color that it uses.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Filter> |
Sprite.getFilters()
Returns an unmodifiable Set view of the Filters that will have an effect
on this Sprite when applied to it with draw().
|
java.util.Set<Filter> |
SpriteSheet.getFilters()
Returns an unmodifiable Set view of the Filters that will have an effect
on this SpriteSheet's Sprites when applied to them with draw().
|
Modifier and Type | Method and Description |
---|---|
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter)
Draws this Drawable's image to the specified Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter)
Draws this Drawable's image to the specified Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter)
Draws a rectangular region of this Drawable's image to the specified
Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter)
Draws a rectangular region of this Drawable's image to the specified
Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
Animatable |
Animatable.getFilteredCopy(Filter filter,
boolean load)
Returns a new Animatable created by applying a Filter to all of the
Sprites of which this Animatable is ultimately composed.
|
Animation |
Animation.getFilteredCopy(Filter filter,
boolean load) |
Sprite |
Sprite.getFilteredCopy(Filter filter,
boolean load) |
Constructor and Description |
---|
Sprite(Image image,
Filter... filters)
Constructs a Sprite from a
Celick
Image.
|
Sprite(java.lang.String path,
int originX,
int originY,
boolean load,
Filter... filters)
Constructs a Sprite from an image file.
|
Sprite(java.lang.String path,
int originX,
int originY,
Color transColor,
boolean load,
Filter... filters)
Constructs a Sprite from an image file.
|
Sprite(java.lang.String path,
int originX,
int originY,
int transR,
int transG,
int transB,
boolean load,
Filter... filters)
Constructs a Sprite from an image file.
|
SpriteSheet(SpriteSheet spriteSheet,
Filter filter,
boolean load)
Constructs a SpriteSheet from an existing SpriteSheet with a Filter
applied to it.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spacing,
int margin,
int originX,
int originY,
boolean load,
Filter... filters)
Constructs a SpriteSheet from an image file.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spacing,
int margin,
int originX,
int originY,
Color transColor,
boolean load,
Filter... filters)
Constructs a SpriteSheet from an image file.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spacing,
int margin,
int originX,
int originY,
int transR,
int transG,
int transB,
boolean load,
Filter... filters)
Constructs a SpriteSheet from an image file.
|
Modifier and Type | Method and Description |
---|---|
Filter |
SpaceObject.getFilter()
Returns this SpaceObject's Filter, or null if it has none.
|
Modifier and Type | Method and Description |
---|---|
void |
SpaceObject.setFilter(Filter filter)
Sets this SpaceObject's Filter to the specified Filter, or to "no Filter"
if the specified Filter is null.
|
Modifier and Type | Method and Description |
---|---|
void |
TileGrid.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
TileGrid.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
TileGrid.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
TileGrid.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
Animatable |
TiledConverter.getAnimatable(org.tiledreader.TiledTile tile,
boolean load,
Filter... filters)
Converts the TiledTileset to which the specified TiledTile belongs, if it
has not already been converted, and returns the Animatable representation
of the specified TiledTile.
|
java.lang.Iterable<Sprite> |
TiledConverter.getSprites(org.tiledreader.TiledTileset tileset,
boolean load,
Filter... filters)
Converts the specified TiledTileset, if it has not already been
converted, and returns an Iterable of the Sprites corresponding to all of
the TiledTileset's TiledTiles.
|