public static class MountainCarVisualizer.AgentPainter extends java.lang.Object implements ObjectPainter
| Constructor and Description |
|---|
MountainCarVisualizer.AgentPainter(MountainCar.MCPhysicsParams physParams)
Initializes with the mountain car physics used
|
| Modifier and Type | Method and Description |
|---|---|
void |
paintObject(java.awt.Graphics2D g2,
State s,
ObjectInstance ob,
float cWidth,
float cHeight)
Paints object instance ob to graphics context g2
|
public MountainCarVisualizer.AgentPainter(MountainCar.MCPhysicsParams physParams)
physParams - the mountain car physics usedpublic void paintObject(java.awt.Graphics2D g2,
State s,
ObjectInstance ob,
float cWidth,
float cHeight)
ObjectPainterpaintObject in interface ObjectPainterg2 - 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