Android Open Source - android-ui Line Segment






From Project

Back to project page android-ui.

License

The source code is released under:

Apache License

If you think the Android project android-ui 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 at.markushi.ui.action;
/*from  w  w  w  .  j  av  a2  s. c o  m*/
import android.os.Parcel;
import android.os.Parcelable;

/**
 * A LineSegment describes which lines within an Action are linked together
 */
public class LineSegment implements Parcelable {

  public int[] indexes;

  public LineSegment(int... indexes) {
    this.indexes = indexes;
  }

  public int getStartIdx() {
    return indexes[0];
  }

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeIntArray(this.indexes);
  }

  private LineSegment(Parcel in) {
    this.indexes = in.createIntArray();
  }

  public static final Parcelable.Creator<LineSegment> CREATOR = new Parcelable.Creator<LineSegment>() {
    public LineSegment createFromParcel(Parcel source) {
      return new LineSegment(source);
    }

    public LineSegment[] newArray(int size) {
      return new LineSegment[size];
    }
  };
}




Java Source Code List

at.markushi.ui.ActionView.java
at.markushi.ui.RevealColorView.java
at.markushi.ui.action.Action.java
at.markushi.ui.action.BackAction.java
at.markushi.ui.action.CloseAction.java
at.markushi.ui.action.DrawerAction.java
at.markushi.ui.action.LineSegment.java
at.markushi.ui.action.PlusAction.java
at.markushi.ui.util.BakedBezierInterpolator.java
at.markushi.ui.util.UiHelper.java