Android Open Source - 24hAnalogWidget Dial Overlay






From Project

Back to project page 24hAnalogWidget.

License

The source code is released under:

GNU General Public License

If you think the Android project 24hAnalogWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package info.staticfree.android.twentyfourhour.overlay;
//w  ww. ja v a 2  s .  c  om
import java.util.Calendar;

import android.graphics.Canvas;

/**
 *
 * An overlay for a clock dial.
 *
 * @author <a href="mailto:steve@staticfree.info">Steve Pomeroy</a>
 *
 */
public interface DialOverlay {

  /**
   * Subclasses should implement this to draw the overlay.
   *
   * @param canvas
   *            the canvas onto which you must draw
   * @param cX
   *            the x coordinate of the center
   * @param cY
   *            the y coordinate of the center
   * @param w
   *            the width of the canvas
   * @param h
   *            the height of the canvas
   * @param calendar
   *            the desired date/time
   */
  public abstract void onDraw(Canvas canvas, int cX, int cY, int w, int h, Calendar calendar,
      boolean sizeChanged);

}




Java Source Code List

info.staticfree.android.twentyfourhour.Analog24HClock.java
info.staticfree.android.twentyfourhour.AnalogClockApplication.java
info.staticfree.android.twentyfourhour.ClockUtil.java
info.staticfree.android.twentyfourhour.TwentyFourHourClockWidget3x.java
info.staticfree.android.twentyfourhour.TwentyFourHourClockWidgetResizable.java
info.staticfree.android.twentyfourhour.TwentyFourHourClockWidget.java
info.staticfree.android.twentyfourhour.WearFace.java
info.staticfree.android.twentyfourhour.WidgetDemo.java
info.staticfree.android.twentyfourhour.overlay.DateOverlay.java
info.staticfree.android.twentyfourhour.overlay.DebugOverlay.java
info.staticfree.android.twentyfourhour.overlay.DialOverlay.java
info.staticfree.android.twentyfourhour.overlay.HandsOverlay.java
info.staticfree.android.twentyfourhour.overlay.SunPositionOverlay.java
twentyfourhour.WearFaceDemoActivity.java