當前位置: 首頁>>代碼示例>>Java>>正文


Java Cap.BUTT屬性代碼示例

本文整理匯總了Java中android.graphics.Paint.Cap.BUTT屬性的典型用法代碼示例。如果您正苦於以下問題:Java Cap.BUTT屬性的具體用法?Java Cap.BUTT怎麽用?Java Cap.BUTT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.graphics.Paint.Cap的用法示例。


在下文中一共展示了Cap.BUTT屬性的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getStrokeLineCap

private Cap getStrokeLineCap(int id, Cap defValue) {
    switch (id) {
        case 0:
            return Cap.BUTT;
        case 1:
            return Cap.ROUND;
        case 2:
            return Cap.SQUARE;
        default:
            return defValue;
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:12,代碼來源:VectorDrawableCompat.java

示例2: C0015o

public C0015o() {
    this.f34a = 0;
    this.f35b = 0.0f;
    this.f36c = 0;
    this.f37d = 1.0f;
    this.f39f = 1.0f;
    this.f40g = 0.0f;
    this.f41h = 1.0f;
    this.f42i = 0.0f;
    this.f43j = Cap.BUTT;
    this.f44k = Join.MITER;
    this.f45l = 4.0f;
}
 
開發者ID:Qwaz,項目名稱:solved-hacking-problem,代碼行數:13,代碼來源:C0015o.java

示例3: m41a

private Cap m41a(int i, Cap cap) {
    switch (i) {
        case C0243l.View_android_theme /*0*/:
            return Cap.BUTT;
        case C0243l.View_android_focusable /*1*/:
            return Cap.ROUND;
        case C0243l.View_paddingStart /*2*/:
            return Cap.SQUARE;
        default:
            return cap;
    }
}
 
開發者ID:Qwaz,項目名稱:solved-hacking-problem,代碼行數:12,代碼來源:C0015o.java

示例4: convertCap

private Cap convertCap(Canvas.LineCap cap) {
  switch (cap) {
    case BUTT:
      return Cap.BUTT;
    case ROUND:
      return Cap.ROUND;
    case SQUARE:
      return Cap.SQUARE;
  }
  return Cap.BUTT;
}
 
開發者ID:playn,項目名稱:playn,代碼行數:11,代碼來源:AndroidCanvasState.java

示例5: Stroke

public Stroke(int color)
{
    mCap = Cap.BUTT;
    mJoin = Join.MITER;
    mMiter = 4;
    mIntervals = null;
    this.color = color == 0 ? 0xFF49AEBE : color;
}
 
開發者ID:vniu,項目名稱:Android-SmartChart,代碼行數:8,代碼來源:Stroke.java

示例6: parseLinecap

private Cap parseLinecap(String strokeLinecap) {
    if (strokeLinecap == null) {
        return Cap.BUTT;
    } else if (strokeLinecap.equals("butt")) {
        return Cap.BUTT;
    } else if (strokeLinecap.equals("round")) {
        return Cap.ROUND;
    } else if (strokeLinecap.equals("square")) {
        return Cap.SQUARE;
    } else {
        return Cap.BUTT;
    }
}
 
開發者ID:interoberlin,項目名稱:sauvignon,代碼行數:13,代碼來源:SvgParser.java

示例7: PXStroke

/**
 * Constructs a new PX stroke.
 */
public PXStroke() {
    this.type = PXStrokeType.CENTER;
    this.width = 1.0f;
    this.dashOffset = 0;
    this.lineCap = Cap.BUTT;
    this.lineJoin = Join.MITER;
    this.miterLimit = 4.0f; // What is a reasonable default here?
}
 
開發者ID:Pixate,項目名稱:pixate-freestyle-android,代碼行數:11,代碼來源:PXStroke.java

示例8: lineCapFromString

private static Cap lineCapFromString(String value) {
    if (value == null) {
        return Cap.BUTT;
    }
    Cap cap = Cap.valueOf(value.toUpperCase(Locale.US));
    if (cap == null) {
        PXLog.e(TAG, "Unrecognized line cap: " + value);
    }
    return cap;
}
 
開發者ID:Pixate,項目名稱:pixate-freestyle-android,代碼行數:10,代碼來源:PXSVGLoader.java


注:本文中的android.graphics.Paint.Cap.BUTT屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。