本文整理汇总了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;
}