本文整理汇总了Java中com.codename1.ui.plaf.Border.createEtchedLowered方法的典型用法代码示例。如果您正苦于以下问题:Java Border.createEtchedLowered方法的具体用法?Java Border.createEtchedLowered怎么用?Java Border.createEtchedLowered使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.codename1.ui.plaf.Border
的用法示例。
在下文中一共展示了Border.createEtchedLowered方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createBorder
import com.codename1.ui.plaf.Border; //导入方法依赖的package包/类
private Object createBorder(DataInputStream input, int type) throws IOException {
switch(type) {
// empty border
case 0xff01:
return Border.getEmpty();
// Line border
case 0xff02:
// use theme colors?
if(input.readBoolean()) {
return Border.createLineBorder(input.readByte());
} else {
return Border.createLineBorder(input.readByte(), input.readInt());
}
// Rounded border
case 0xff03:
// use theme colors?
if(input.readBoolean()) {
return Border.createRoundBorder(input.readByte(), input.readByte());
} else {
return Border.createRoundBorder(input.readByte(), input.readByte(), input.readInt());
}
// Etched Lowered border
case 0xff04:
// use theme colors?
if(input.readBoolean()) {
return Border.createEtchedLowered();
} else {
return Border.createEtchedLowered(input.readInt(), input.readInt());
}
// Etched raised border
case 0xff05:
// use theme colors?
if(input.readBoolean()) {
return Border.createEtchedRaised();
} else {
return Border.createEtchedRaised(input.readInt(), input.readInt());
}
// Bevel raised
case 0xff07:
// use theme colors?
if(input.readBoolean()) {
return Border.createBevelRaised();
} else {
return Border.createBevelRaised(input.readInt(), input.readInt(), input.readInt(), input.readInt());
}
// Bevel lowered
case 0xff06:
// use theme colors?
if(input.readBoolean()) {
return Border.createBevelLowered();
} else {
return Border.createBevelLowered(input.readInt(), input.readInt(), input.readInt(), input.readInt());
}
// Image border
case 0xff08:
Object[] imageBorder = readImageBorder(input);
return imageBorder;
// horizontal Image border
case 0xff09:
return readImageBorder(input, "h");
// vertical Image border
case 0xff10:
return readImageBorder(input, "v");
// scaled Image border
case 0xff11:
return readScaledImageBorder(input);
}
return null;
}