All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xdev.ui.XdevContainer Maven / Gradle / Ivy

package xdev.ui;

/*-
 * #%L
 * XDEV Application Framework
 * %%
 * Copyright (C) 2003 - 2020 XDEV Software
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * .
 * #L%
 */


import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.LayoutManager;

import javax.swing.JPanel;


/**
 * The {@link XdevContainer} is the basic GUI container component in XDEV. Based
 * on {@link JPanel}.
 * 
 * @see JPanel
 * 
 * @author XDEV Software
 * 
 * @since 2.0
 */
@BeanSettings(acceptChildren = true, useXdevCustomizer = true)
public class XdevContainer extends XdevComponent
{
	/**
	 * Create a new {@link XdevContainer} with no layout manager.
	 * 
	 * 

* Alias for XdevContainer(null) *

* * @see #XdevContainer(LayoutManager) * */ public XdevContainer() { super(); } /** * Create a new {@link XdevContainer} with the specified layout manager. * * @param layout * the LayoutManager to use */ public XdevContainer(LayoutManager layout) { super(layout); } /** * {@inheritDoc} */ @Override protected void paintImage(Graphics2D g) { paintBackground(g,0,0,getWidth(),getHeight()); drawTexture(g,0,0,getWidth(),getHeight()); } /** * {@inheritDoc} */ @BeanProperty(category = DefaultBeanCategories.MISC) @Override public void setForeground(Color fg) { super.setForeground(fg); } /** * {@inheritDoc} */ @BeanProperty(category = DefaultBeanCategories.MISC) @Override public void setFont(Font font) { super.setFont(font); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy