本文整理匯總了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;
}
}
示例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;
}
示例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;
}
}
示例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;
}
示例5: Stroke
public Stroke(int color)
{
mCap = Cap.BUTT;
mJoin = Join.MITER;
mMiter = 4;
mIntervals = null;
this.color = color == 0 ? 0xFF49AEBE : color;
}
示例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;
}
}
示例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?
}
示例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;
}