public static class LLVisualizer.ObstaclePainter extends java.lang.Object implements ObjectPainter
Modifier and Type | Field and Description |
---|---|
protected LunarLanderDomain.LLPhysicsParams |
lld |
Constructor and Description |
---|
ObstaclePainter(LunarLanderDomain.LLPhysicsParams lld) |
Modifier and Type | Method and Description |
---|---|
void |
paintObject(java.awt.Graphics2D g2,
OOState s,
ObjectInstance ob,
float cWidth,
float cHeight)
Paints object instance ob to graphics context g2
|
protected LunarLanderDomain.LLPhysicsParams lld
public ObstaclePainter(LunarLanderDomain.LLPhysicsParams lld)
public void paintObject(java.awt.Graphics2D g2, OOState s, ObjectInstance ob, float cWidth, float cHeight)
ObjectPainter
paintObject
in interface ObjectPainter
g2
- graphics context to which the object should be painteds
- the state of the object to be paintedob
- the instantiated object to be paintedcWidth
- width of the canvas sizecHeight
- height of the canvas size