bibliothek.gui.dock.station.stack.tab
Class AbstractTabPaneComponent

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
All Implemented Interfaces:
TabPaneComponent
Direct Known Subclasses:
AbstractCombinedMenu, AbstractTab, EclipseTabInfo

public abstract class AbstractTabPaneComponent
extends Object
implements TabPaneComponent

A TabPaneComponent that really represents a Component.

Author:
Benjamin Sigg

Constructor Summary
AbstractTabPaneComponent(TabPane parent)
          Creates a new object.
 
Method Summary
 Rectangle getBounds()
          Gets the current location and size of this component.
abstract  Component getComponent()
          Gets the Component which is wrapped into this AbstractTabPaneComponent.
 Dimension getMaximumSize()
          Gets the maximal size this component should have
 Dimension getMinimumSize()
          Gets the minimal size this component should have
 TabPlacement getOrientation()
          Gets the orientation of this component.
 Insets getOverlap(TabPaneComponent other)
          Tells how much of this component may be overlapped by another component other.
 Dimension getPreferredSize()
          Gets the preferred size of this component
 TabPane getTabParent()
          Gets the parent of this component.
 void setBounds(Rectangle bounds)
          Sets the current location and size of this component.
 void setOrientation(TabPlacement orientation)
          Tells this component how to paint itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent
getZOrder, isPaneVisible, setPaneVisible, setZOrder
 

Constructor Detail

AbstractTabPaneComponent

public AbstractTabPaneComponent(TabPane parent)
Creates a new object.

Parameters:
parent - the owner of this object, not null
Method Detail

getComponent

public abstract Component getComponent()
Gets the Component which is wrapped into this AbstractTabPaneComponent. This method is not called from the constructor.

Returns:
the wrapped Component, not null

getBounds

public Rectangle getBounds()
Description copied from interface: TabPaneComponent
Gets the current location and size of this component.

Specified by:
getBounds in interface TabPaneComponent
Returns:
the size and location

getMaximumSize

public Dimension getMaximumSize()
Description copied from interface: TabPaneComponent
Gets the maximal size this component should have

Specified by:
getMaximumSize in interface TabPaneComponent
Returns:
the maximal size

getMinimumSize

public Dimension getMinimumSize()
Description copied from interface: TabPaneComponent
Gets the minimal size this component should have

Specified by:
getMinimumSize in interface TabPaneComponent
Returns:
the minimal size

getPreferredSize

public Dimension getPreferredSize()
Description copied from interface: TabPaneComponent
Gets the preferred size of this component

Specified by:
getPreferredSize in interface TabPaneComponent
Returns:
the preferred size

getTabParent

public TabPane getTabParent()
Description copied from interface: TabPaneComponent
Gets the parent of this component.

Specified by:
getTabParent in interface TabPaneComponent
Returns:
the parent

setBounds

public void setBounds(Rectangle bounds)
Description copied from interface: TabPaneComponent
Sets the current location and size of this component.

Specified by:
setBounds in interface TabPaneComponent
Parameters:
bounds - the size and location

getOverlap

public Insets getOverlap(TabPaneComponent other)
Description copied from interface: TabPaneComponent
Tells how much of this component may be overlapped by another component other.

Specified by:
getOverlap in interface TabPaneComponent
Parameters:
other - another component which may be painted over this component
Returns:
the border of this component that may not be visible, not null

setOrientation

public void setOrientation(TabPlacement orientation)
Description copied from interface: TabPaneComponent
Tells this component how to paint itself.

Specified by:
setOrientation in interface TabPaneComponent
Parameters:
orientation - the orientation, not null

getOrientation

public TabPlacement getOrientation()
Gets the orientation of this component.

Returns:
the orientation, never null
See Also:
setOrientation(TabPlacement)