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