本文整理匯總了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;
}