Back to project page AnkiStats.
The source code is released under:
GNU General Public License
If you think the Android project AnkiStats listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * /*from www . j a v a 2 s. c om*/ */ package com.wildplot.android.rendering.interfaces; import com.wildplot.android.rendering.graphics.wrapper.Graphics; /** * Classes that implement the Drawable interface have the ability to draw with a provided Graphics object onto * a PlotSheet. * * @see wildPlot.rendering.PlotSheet */ public interface Drawable { /** * Paint the drawable object * @param g */ public void paint(Graphics g); /** * Returns true if this Drawable can draw on the outer frame of the plot * this is necessary because normally everything drawn over the border will be whited out by the PlotSheet object. * If a legend or descriptions shall be drawn onto the outer frame this method of the corresponding Drawables has * to return true. For all other cases it is highly recommended to return false. * @return */ public boolean isOnFrame(); /** * let the drawable interrupt and abort its drawing to give free the associated threads, * may only be used in time consuming drawables */ public void abortAndReset(); public boolean isClusterable(); public boolean isCritical(); }