Back to project page unknown-pleasures.
The source code is released under:
Creative Commons Attribution NonCommercial NoDerivs (CC-NC-ND) THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTE...
If you think the Android project unknown-pleasures listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * LineRenderer.java//from w w w. j ava 2s. c o m * Author: marek.brodziak@gmail.com * Created: May 6, 2014 * Copyright 2014 by miniti */ package pl.miniti.android.pleasures.line; import android.graphics.Canvas; import android.graphics.Path; import android.graphics.Rect; /** * Interface for classes implementing functionality to render a given path */ public interface LineRenderer { /** * Render a single path on the canvas * * @param canvas * canvas to render the path on * @param rectangle * destination rectangle on the canvas * @param line * path to be rendered * @param index * index of the path in the collection * @param of * total number of lines * @param fColor * color of the rendered path * @param bColor * color of the background */ void render(Canvas canvas, Rect rectangle, Path line, int index, int of, int fColor, int bColor); /** * Render stronger lines * * @param strong * true if the lines should be stronger */ void setStrong(boolean strong); }