Package com.ardor3d.extension.ui.layout

Examples of com.ardor3d.extension.ui.layout.BorderLayout


        pLogin.add(btLogin);
        return pLogin;
    }

    private UIPanel makeChatPanel() {
        final UIPanel chatPanel = new UIPanel(new BorderLayout());
        final UIPanel bottomPanel = new UIPanel(new BorderLayout());
        bottomPanel.setLayoutData(BorderLayoutData.SOUTH);
        final UILabel dirLabel = new UILabel("Sample chat.  Try using markup like [b]text[/b]:");
        dirLabel.setLayoutData(BorderLayoutData.NORTH);
        final UITextArea historyArea = new UITextArea();
        historyArea.setStyledText(true);
View Full Code Here


    private UIPanel makeWidgetPanel() {

        final UIPanel panel = new UIPanel();
        panel.setForegroundColor(ColorRGBA.DARK_GRAY);
        panel.setLayout(new BorderLayout());

        final UIButton button = new UIButton("Button A");
        final Texture tex = TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear,
                false);
        button.setIcon(new SubTex(tex));
View Full Code Here

    public UIComboBox() {
        this(new DefaultComboBoxModel());
    }

    public UIComboBox(final ComboBoxModel model) {
        super(new BorderLayout());
        if (model == null) {
            throw new IllegalArgumentException("model can not be null.");
        }
        _model = model;
View Full Code Here

     *            the text to display on the title bar of this frame
     * @param buttons
     *            which buttons we should show in the frame bar.
     */
    public UIFrame(final String title, final EnumSet<FrameButtons> buttons) {
        setLayout(new BorderLayout());

        _basePanel = new UIPanel(new BorderLayout());
        _basePanel.setBackdrop(new SolidBackdrop(ColorRGBA.LIGHT_GRAY));
        _basePanel.setLayoutData(BorderLayoutData.CENTER);
        _basePanel.setConsumeMouseEvents(true);
        add(_basePanel);

View Full Code Here

     *            text to show next to the progress bar
     * @param horizontal
     *            true for horizontal bar, false for vertical.
     */
    public UIProgressBar(final String labelText, final boolean horizontal) {
        super(new BorderLayout());
        setHorizontal(horizontal);

        _textLabel = new UILabel("");
        _textLabel.setBorder(new EmptyBorder());
        _textLabel.setMargin(new Insets(0, 0, 0, 0));
        _textLabel.setPadding(new Insets(0, 0, 0, 0));
        _textLabel.setLayoutData(BorderLayoutData.WEST);
        setLabelText(labelText);
        add(_textLabel);

        _mainPanel = new UIPanel(new BorderLayout());
        _mainPanel.setLayoutData(BorderLayoutData.CENTER);
        add(_mainPanel);

        _bar = new UIPanel(new BorderLayout());
        _bar.setLayoutData(BorderLayoutData.CENTER);
        _mainPanel.add(_bar);

        _barLabel = new UILabel("");
        _barLabel.setLayoutData(BorderLayoutData.CENTER);
View Full Code Here

    /**
     * Construct a new status bar
     */
    public UIFrameStatusBar() {
        super(new BorderLayout());

        _statusLabel = new UILabel("");
        _statusLabel.setLayoutData(BorderLayoutData.CENTER);
        add(_statusLabel);

View Full Code Here

    public UIScrollPanel() {
        this(null);
    }

    public UIScrollPanel(final UIComponent view) {
        setLayout(new BorderLayout());
        if (view != null) {
            this.view = view;
            view.setLayoutData(BorderLayoutData.CENTER);
            add(view);
        }
View Full Code Here

    private int sliderLength;
    /** List of action listeners notified when this scrollbar is changed. */
    private final List<ActionListener> _listeners = new ArrayList<ActionListener>();

    public UIScrollBar(final Orientation orientation) {
        setLayout(new BorderLayout());
        this.orientation = orientation;
        slider = new UISlider(orientation);
        slider.setLayoutData(BorderLayoutData.CENTER);
        btTopLeft = new UIButton(orientation == Orientation.Vertical ? "^" : "<");
        btBottomRight = new UIButton(orientation == Orientation.Vertical ? "v" : ">");
View Full Code Here

     *
     * @param placement
     *            which edge to place the tab buttons on
     */
    public UITabbedPane(final TabPlacement placement) {
        super(new BorderLayout());

        _placement = placement;

        // Setup our center content panel
        _center.setLayoutData(BorderLayoutData.CENTER);
View Full Code Here

        pLogin.add(btLogin);
        return pLogin;
    }

    private UIPanel makeChatPanel() {
        final UIPanel chatPanel = new UIPanel(new BorderLayout());
        final UIPanel bottomPanel = new UIPanel(new BorderLayout());
        bottomPanel.setLayoutData(BorderLayoutData.SOUTH);
        final UILabel dirLabel = new UILabel("Sample chat.  Try using markup like [b]text[/b]:");
        dirLabel.setLayoutData(BorderLayoutData.NORTH);
        final UITextArea historyArea = new UITextArea();
        historyArea.setStyledText(true);
View Full Code Here

TOP

Related Classes of com.ardor3d.extension.ui.layout.BorderLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.