bibliothek.gui.dock.station.toolbar.layout
Class ToolbarGridLayoutManager.Wrapper

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.layout.ToolbarGridLayoutManager.Wrapper
Enclosing class:
ToolbarGridLayoutManager<P extends bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>>

protected class ToolbarGridLayoutManager.Wrapper
extends Object

A wrapper around one Component, caches minimal, maximal or preferred size.

Author:
Benjamin Sigg

Field Summary
 Component component
           
 Dimension required
           
 
Constructor Summary
ToolbarGridLayoutManager.Wrapper(Component component)
           
 
Method Summary
 Rectangle getBounds()
          Gets the current boundaries of this cell.
 Rectangle getScreenBounds()
          Gets the current boundaries of this cell in the screen coordinates
 void reset(bibliothek.gui.dock.station.toolbar.layout.ToolbarGridLayoutManager.Size size)
          Resets the size constraints of this item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

public Component component

required

public Dimension required
Constructor Detail

ToolbarGridLayoutManager.Wrapper

public ToolbarGridLayoutManager.Wrapper(Component component)
Method Detail

reset

public void reset(bibliothek.gui.dock.station.toolbar.layout.ToolbarGridLayoutManager.Size size)
Resets the size constraints of this item.

Parameters:
size - the kind of size that should be used as constraint

getBounds

public Rectangle getBounds()
Gets the current boundaries of this cell.

Returns:
the current boundaries, never null

getScreenBounds

public Rectangle getScreenBounds()
Gets the current boundaries of this cell in the screen coordinates

Returns:
the current boundaries, never null