public class ComponentRendererLayer extends Object implements ComponentRenderable, HandlerListener, LayerableListener
Renderable
objects with Layerable
support to order
rendering.Constructor and Description |
---|
ComponentRendererLayer()
Create a renderer component.
|
Modifier and Type | Method and Description |
---|---|
void |
notifyLayerChanged(ObjectGame object,
Integer oldLayer,
Integer newLayer)
Notify when layer value changed.
|
void |
notifyObjectAdded(ObjectGame object)
Notify when object as been added.
|
void |
notifyObjectRemoved(ObjectGame object)
Notify when an object has been removed.
|
void |
render(Graphic g,
HandledObjects objects)
Render the current objects.
|
public ComponentRendererLayer()
public void render(Graphic g, HandledObjects objects)
ComponentRenderable
render
in interface ComponentRenderable
g
- The graphic output.objects
- The objects reference.public void notifyObjectAdded(ObjectGame object)
HandlerListener
notifyObjectAdded
in interface HandlerListener
object
- The added object.public void notifyObjectRemoved(ObjectGame object)
HandlerListener
notifyObjectRemoved
in interface HandlerListener
object
- The removed object.public void notifyLayerChanged(ObjectGame object, Integer oldLayer, Integer newLayer)
LayerableListener
notifyLayerChanged
in interface LayerableListener
object
- The object reference.oldLayer
- The old layer value.newLayer
- The new layer value.Copyright © 2016 Byron 3D Games Studio. All rights reserved.