本文整理匯總了Java中tonegod.gui.controls.windows.Panel類的典型用法代碼示例。如果您正苦於以下問題:Java Panel類的具體用法?Java Panel怎麽用?Java Panel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Panel類屬於tonegod.gui.controls.windows包,在下文中一共展示了Panel類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: LayoutParser
import tonegod.gui.controls.windows.Panel; //導入依賴的package包/類
public LayoutParser(Screen screen) {
this.screen = screen;
controls.add(OSRViewPort.class);
controls.add(Indicator.class);
controls.add(Slider.class);
controls.add(Dial.class);
controls.add(CheckBox.class);
controls.add(RadioButton.class);
controls.add(Button.class);
controls.add(ChatBox.class);
controls.add(ChatBoxExt.class);
controls.add(Panel.class);
controls.add(ColorWheel.class);
controls.add(LoginBox.class);
controls.add(AlertBox.class);
controls.add(DialogBox.class);
controls.add(Window.class);
controls.add(TabControl.class);
controls.add(SelectBox.class);
controls.add(ComboBox.class);
controls.add(Menu.class);
controls.add(SelectList.class);
controls.add(ScrollArea.class);
controls.add(SlideTray.class);
controls.add(Spinner.class);
controls.add(Label.class);
controls.add(Password.class);
controls.add(TextField.class);
}
示例2: initializePanel
import tonegod.gui.controls.windows.Panel; //導入依賴的package包/類
private void initializePanel() {
ArrayList<String> text = getInputList();
Layout.reset();
Layout.dim.set(100, 100);
helperMain = new Panel(screen, Vector2f.ZERO);
Layout.x = Layout.pad;
Layout.y = Layout.pad;
Layout.pos.set(Layout.x, Layout.y);
Layout.dim.set(290, 25);
for (Iterator<String> it = text.iterator(); it.hasNext();) {
String s = it.next();
LabelElement label = new LabelElement(screen, Layout.pos, Layout.dim);
label.setText(s);
Layout.y += label.getHeight();
Layout.pos.set(Layout.x, Layout.y);
helperMain.addChild(label);
}
helperMain.sizeToContent();
helperMain.setIsResizable(false);
helperMain.setIsMovable(false);
screen.addElement(helperMain);
}