|
PulpCore | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpulpcore.sprite.Sprite
pulpcore.sprite.FilledSprite
public class FilledSprite
Solid-colored rectangular shaped sprite.
| Field Summary | |
|---|---|
Color |
borderColor
Border color |
Color |
fillColor
Fill color |
| Fields inherited from class pulpcore.sprite.Sprite |
|---|
alpha, anchorX, anchorY, angle, CENTER, DEFAULT, EAST, enabled, height, NORTH, NORTH_EAST, NORTH_WEST, pixelSnapping, SOUTH, SOUTH_EAST, SOUTH_WEST, visible, WEST, width, x, y |
| Constructor Summary | |
|---|---|
FilledSprite(double x,
double y,
double w,
double h,
int fillColor)
|
|
FilledSprite(int fillColor)
|
|
FilledSprite(int x,
int y,
int w,
int h,
int fillColor)
|
|
| Method Summary | |
|---|---|
protected void |
drawSprite(CoreGraphics g)
Draws the sprite. |
void |
propertyChange(Property p)
On a property change this Sprite is marked as dirty. |
void |
setBorderSize(int borderSize)
|
void |
setBorderSize(int top,
int left,
int bottom,
int right)
|
void |
update(int elapsedTime)
Updates all of this Sprite's properties. |
| Methods inherited from class pulpcore.sprite.Sprite |
|---|
bindLocationTo, bindSizeTo, clearCursor, clearDirtyRect, contains, draw, getBlendMode, getCursor, getDirtyRect, getFilter, getLocalX, getLocalY, getNaturalHeight, getNaturalWidth, getParent, getPixelLevelChecks, getRoot, getScene2D, getTag, getViewX, getViewX, getViewY, getViewY, intersects, isDirty, isEnabled, isEnabledAndVisible, isMouseDoubleClicked, isMouseDown, isMouseHover, isMouseOver, isMousePressed, isMouseReleased, isMouseTripleClicked, isMouseWheelRotated, isOpaque, isPick, isPickEnabledAndVisible, isTransparent, move, move, move, move, move, move, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, removeFromParent, scale, scale, scale, scale, scale, scale, scaleTo, scaleTo, scaleTo, scaleTo, scaleTo, scaleTo, setAnchor, setAnchor, setBlendMode, setCursor, setDirty, setFilter, setLocation, setLocation, setSize, setSize, setTag, translate, translate, updateDirtyRect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Color fillColor
public final Color borderColor
| Constructor Detail |
|---|
public FilledSprite(int fillColor)
public FilledSprite(int x,
int y,
int w,
int h,
int fillColor)
fillColor - Color of the FilledSprite in the ARGB format.
public FilledSprite(double x,
double y,
double w,
double h,
int fillColor)
| Method Detail |
|---|
public void propertyChange(Property p)
Sprite
propertyChange in interface PropertyListenerpropertyChange in class Spritep - the property whose value has changed.public final void setBorderSize(int borderSize)
public void setBorderSize(int top,
int left,
int bottom,
int right)
public void update(int elapsedTime)
Sprite
update in class Spriteprotected void drawSprite(CoreGraphics g)
SpriteThis method may be called multiple times for each dirty rectangle. The clip of the graphics context will be set to the current dirty rectangle.
When the contents of this sprite change (in another words, the graphic output of this method
will be different from the last time it is called), subclasses should call
setDirty(true).
Implementors should not save a reference to the graphics context as it can change between calls to this method.
drawSprite in class Sprite
|
PulpCore | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||