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

bibliothek.gui.dock.station.split.GridNode Maven / Gradle / Ivy

The newest version!
/*
 * Bibliothek - DockingFrames
 * Library built on Java/Swing, allows the user to "drag and drop"
 * panels containing any Swing-Component the developer likes to add.
 * 
 * Copyright (C) 2013 Benjamin Sigg
 * 
 * This library 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 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 * 
 * Benjamin Sigg
 * [email protected]
 * CH - Switzerland
 */
package bibliothek.gui.dock.station.split;

import java.util.List;

import bibliothek.gui.Dockable;
import bibliothek.util.Path;

/**
 * A node of an {@link AbstractSplitDockGrid}, represents a stack of {@link Dockable}s
 * and their position.
 * @author Benjamin Sigg
 */
public interface GridNode{
	/**
	 * Gets the x-coordinate, relative to all the other nodes.
	 * @return the x-coordinate
	 */
	public double getX();
	
	/**
	 * Gets the y-coordinate, relative to all the other nodes.
	 * @return the y-coordinate
	 */
	public double getY();
	
	/**
	 * Gets the width, relative to all the other nodes.
	 * @return the width
	 */
	public double getWidth();
	
	/**
	 * Gets the height, relative to all the other nodes.
	 * @return the height
	 */
	public double getHeight();
	
	/**
	 * Gets an unmodifiable list containing all the {@link Dockable} of this node.
	 * @return the list of dockables, may be empty
	 */
	public List getDockables();
	
	/**
	 * Gets the one dockable that is selected, must be part of {@link #getDockables()}.
	 * @return the selected dockable or null
	 */
	public D getSelected();
	
	/**
	 * Gets all the placeholders associated with this node.
	 * @return the placeholders in an unmodifiable list
	 */
	public List getPlaceholders();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy