Package com.ardor3d.extension.ui.backdrop

Examples of com.ardor3d.extension.ui.backdrop.SolidBackdrop


     */
    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);

        _contentPanel = new UIPanel();
View Full Code Here


        border.setLeftColor(ColorRGBA.GRAY);
        border.setTopColor(ColorRGBA.GRAY);
        border.setRightColor(ColorRGBA.LIGHT_GRAY);
        border.setBottomColor(ColorRGBA.LIGHT_GRAY);

        final SolidBackdrop backdrop = new SolidBackdrop(ColorRGBA.WHITE);

        component.setPadding(new Insets(1, 1, 1, 1));

        for (final UIState state : component.getStates()) {
            state.setBorder(border);
View Full Code Here

        border.setLeftColor(ColorRGBA.GRAY);
        border.setTopColor(ColorRGBA.GRAY);
        border.setRightColor(ColorRGBA.LIGHT_GRAY);
        border.setBottomColor(ColorRGBA.LIGHT_GRAY);

        final SolidBackdrop backdrop = new SolidBackdrop(ColorRGBA.WHITE);

        component.setPadding(new Insets(1, 1, 1, 1));

        for (final UIState state : component.getStates()) {
            state.setBorder(border);
View Full Code Here

        }
    }

    @Override
    protected void applyToTooltip(final UITooltip component) {
        component.setBackdrop(new SolidBackdrop(ColorRGBA.LIGHT_GRAY));
        component.setBorder(new SolidBorder(1, 1, 1, 1));
        component.setForegroundColor(ColorRGBA.BLACK);
        component.setOpacity(1.0f);
    }
View Full Code Here

                    new SubTex(_sharedTex, 80, 117, 5, 4));
            back.setBorder(border);
            back.setMinimumContentSize(8, 1);
        }
        back.setLayout(null);
        back.setBackdrop(new SolidBackdrop(ColorRGBA.WHITE));
    }
View Full Code Here

        // skin for menuitems
        {
            final EmptyBorder itemBorder = new EmptyBorder();
            final EmptyBackdrop itemBackdrop = new EmptyBackdrop();
            final SolidBackdrop overBackdrop = new SolidBackdrop(new ColorRGBA(50 / 255f, 50 / 255f, 200 / 255f, 1));
            component.setItemSkinCallback(new SkinningTask() {
                @Override
                public void skinComponent(final UIComponent c) {
                    c.setBorder(itemBorder);
                    c.setBackdrop(itemBackdrop);
View Full Code Here

        _ballFrame.setHudXY(5, 5);
        _ballFrame.setUseStandin(false);
        hud.add(_ballFrame);

        // Add background
        _ballFrame.getContentPanel().setBackdrop(new SolidBackdrop(ColorRGBA.WHITE));

        // Add Frame for config
        buildConfigFrame(width, height);
        hud.add(_configFrame);
View Full Code Here

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

        final UILabel staticLabel = new UILabel("Hello World");
        staticLabel.setBackdrop(new SolidBackdrop(ColorRGBA.CYAN));
        staticLabel.setLayoutData(BorderLayoutData.CENTER);
        panel.add(staticLabel);

        final UICheckBox rotatingLabel = new UICheckBox("Look at me! :)");
        rotatingLabel.setBackdrop(new SolidBackdrop(ColorRGBA.GREEN));
        rotatingLabel.setRotation(new Matrix3().fromAngleNormalAxis(45 * MathUtils.DEG_TO_RAD, new Vector3(0, 0, 1)));
        panel.add(rotatingLabel);

        final Matrix3 rotate = new Matrix3();
        final Vector3 axis = new Vector3(0, 0, 1);
View Full Code Here

TOP

Related Classes of com.ardor3d.extension.ui.backdrop.SolidBackdrop

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.