本文整理汇总了Java中com.zzhoujay.richtext.ImageHolder.BorderHolder方法的典型用法代码示例。如果您正苦于以下问题:Java ImageHolder.BorderHolder方法的具体用法?Java ImageHolder.BorderHolder怎么用?Java ImageHolder.BorderHolder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.zzhoujay.richtext.ImageHolder
的用法示例。
在下文中一共展示了ImageHolder.BorderHolder方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import com.zzhoujay.richtext.ImageHolder; //导入方法依赖的package包/类
private static SizeCacheHolder read(InputStream fis, String name) {
try {
int left = readInt(fis);
int top = readInt(fis);
int right = readInt(fis);
int bottom = readInt(fis);
int scaleType = readInt(fis);
boolean showBorder = readBoolean(fis);
int color = readInt(fis);
float borderSize = readFloat(fis);
float borderRadius = readFloat(fis);
fis.close();
Rect rect = new Rect(left, top, right, bottom);
ImageHolder.BorderHolder borderHolder = new ImageHolder.BorderHolder(showBorder, borderSize, color, borderRadius);
return new SizeCacheHolder(name, rect, getScaleType(scaleType), borderHolder);
} catch (IOException e) {
Debug.e(e);
}
return null;
}
示例2: setBorderHolder
import com.zzhoujay.richtext.ImageHolder; //导入方法依赖的package包/类
public void setBorderHolder(ImageHolder.BorderHolder borderHolder) {
this.borderHolder = borderHolder;
if (borderHolder != null) {
paint.setColor(borderHolder.getBorderColor());
paint.setStrokeWidth(borderHolder.getBorderSize());
paint.setStyle(Paint.Style.STROKE);
}
}
示例3: getBorderHolder
import com.zzhoujay.richtext.ImageHolder; //导入方法依赖的package包/类
public ImageHolder.BorderHolder getBorderHolder() {
return borderHolder;
}
示例4: BitmapWrapper
import com.zzhoujay.richtext.ImageHolder; //导入方法依赖的package包/类
BitmapWrapper(String name, Bitmap bitmap, Rect rect, @ImageHolder.ScaleType int scaleType, ImageHolder.BorderHolder borderHolder) {
this.name = name;
this.bitmap = bitmap;
this.sizeCacheHolder = new SizeCacheHolder(name, rect, scaleType, borderHolder);
}
示例5: SizeCacheHolder
import com.zzhoujay.richtext.ImageHolder; //导入方法依赖的package包/类
SizeCacheHolder(String name, Rect rect, @ImageHolder.ScaleType int scaleType, ImageHolder.BorderHolder borderHolder) {
this.rect = rect;
this.scaleType = scaleType;
this.name = name;
this.borderHolder = borderHolder;
}