public class CachedNinePatchImageSceneObject extends NinePatchImageSceneObject
NinePatchImageSceneObject
. Only if the SceneObject
is
resized the backed NinePatchImage
will be repainted.ORIGIN_TOP_LEFT
Constructor and Description |
---|
CachedNinePatchImageSceneObject(BufferedImage image) |
CachedNinePatchImageSceneObject(Image image) |
CachedNinePatchImageSceneObject(NinePatchImage image) |
Modifier and Type | Method and Description |
---|---|
protected void |
paint(Graphics2D g,
long elapsedTime)
Paint this SceneObject.
|
void |
setSize(int width,
int height) |
void |
setSize(Size size)
Set the size of this
SceneObject |
getInsets, setQuality
collides, collidesBoundingBox, collidesExactly, consumes, consumesBoundingBox, consumesExactly, getHeight, getOrigin, getPosition, getPreciseHeight, getPreciseWidth, getPreciseX, getPreciseY, getRectangle, getRenderingOptions, getSize, getTopLeftPosition, getWidth, getX, getY, isDrawBoundingBox, paintAbsoluteOnScene, paintOnScene, paintOnScene, paintOnScene, paintOnScene, setDrawBoundingBox, setPosition, setPosition, setRenderingOptions, setTopLeftPosition
public CachedNinePatchImageSceneObject(BufferedImage image)
public CachedNinePatchImageSceneObject(NinePatchImage image)
public CachedNinePatchImageSceneObject(Image image)
protected void paint(Graphics2D g, long elapsedTime)
SceneObject
SceneObject
it is
important, that the object is drawn in it's actual state.paint
in class NinePatchImageSceneObject
g
- Graphics Object for paintingelapsedTime
- Elapsed time since the last call to this methodpublic void setSize(int width, int height)
setSize
in class SceneObject
width
- Width of this ScreenObjectheight
- Height of this ScreenObjectSceneObject.setSize(Size)
public void setSize(Size size)
SceneObject
SceneObject
setSize
in class SceneObject
size
- Size of this ScreenObjectCopyright © 2017. All rights reserved.