Coding the component interfaces
Each component will implement an interface so that although they behave differently, they can be used the same way as one another because of polymorphism.
GraphicsComponent
Add the GraphicsComponent
interface:
import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; interface GraphicsComponent { void initialize(Context c, ObjectSpec s, PointF screensize); void draw(Canvas canvas, Paint paint, Transform...