private static class SwingAnimatorBuilder.MyPainter extends java.lang.Object implements SwingAnimatorPainter
Modifier and Type | Class and Description |
---|---|
private static class |
SwingAnimatorBuilder.MyPainter.Element<T>
Pair of a model element
x and a translator t . |
Modifier and Type | Field and Description |
---|---|
private java.util.List<SwingAnimatorBuilder.MyPainter.Element<Light>> |
lightElements |
private java.util.List<SwingAnimatorBuilder.MyPainter.Element<Road>> |
roadElements |
Constructor and Description |
---|
MyPainter() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addLight(Light x,
Translator t) |
(package private) void |
addRoad(Road x,
Translator t) |
void |
paint(java.awt.Graphics g) |
private java.util.List<SwingAnimatorBuilder.MyPainter.Element<Road>> roadElements
private java.util.List<SwingAnimatorBuilder.MyPainter.Element<Light>> lightElements
MyPainter()
void addLight(Light x, Translator t)
void addRoad(Road x, Translator t)
public void paint(java.awt.Graphics g)
paint
in interface SwingAnimatorPainter