Back to project page physics.
The source code is released under:
GNU General Public License
If you think the Android project physics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// Copyright 2003-2013 Adobe Systems Inc. All Rights Reserved. // This software is proprietary; use is subject to license terms. package com.nuaavee.physics.model.layer; /* w w w. j av a 2 s .co m*/ import android.graphics.Canvas; import android.graphics.Paint; /** * @author Adobe Systems Inc */ public class BackgroundLayer extends Layer { private final Paint paint; public BackgroundLayer(int color) { paint = new Paint(); paint.setColor(color); paint.setStyle(Paint.Style.FILL); } @Override public void draw(Canvas canvas) { canvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), paint); } }