bibliothek.gui.dock.station.split
Class DefaultSplitDividerStrategy

java.lang.Object
  extended by bibliothek.gui.dock.station.split.DefaultSplitDividerStrategy
All Implemented Interfaces:
SplitDividerStrategy

public class DefaultSplitDividerStrategy
extends Object
implements SplitDividerStrategy

The default implementation of SplitDividerStrategy

Author:
Benjamin Sigg

Nested Class Summary
static class DefaultSplitDividerStrategy.Handler
          A DefaultSplitDividerStrategy.Handler is responsible for handling the needs of one SplitDockStation.
 
Constructor Summary
DefaultSplitDividerStrategy()
           
 
Method Summary
protected  DefaultSplitDividerStrategy.Handler createHandlerFor(SplitDockStation station)
          Creates a new DefaultSplitDividerStrategy.Handler for station.
 void install(SplitDockStation station, Component container)
          Informs this strategy that station is going to use it and that container must be monitored in order to receive MouseEvents.
 void paint(SplitDockStation station, Graphics g)
          Allows this strategy to paint onto the SplitDockStation.
 void uninstall(SplitDockStation station)
          Informs this strategy that it will no lonver be used by station.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSplitDividerStrategy

public DefaultSplitDividerStrategy()
Method Detail

install

public void install(SplitDockStation station,
                    Component container)
Description copied from interface: SplitDividerStrategy
Informs this strategy that station is going to use it and that container must be monitored in order to receive MouseEvents.

Specified by:
install in interface SplitDividerStrategy
Parameters:
station - the station whose children are resized by this strategy
container - the component to monitor

uninstall

public void uninstall(SplitDockStation station)
Description copied from interface: SplitDividerStrategy
Informs this strategy that it will no lonver be used by station.

Specified by:
uninstall in interface SplitDividerStrategy
Parameters:
station - the station that is no longer using this

paint

public void paint(SplitDockStation station,
                  Graphics g)
Description copied from interface: SplitDividerStrategy
Allows this strategy to paint onto the SplitDockStation.

Specified by:
paint in interface SplitDividerStrategy
Parameters:
station - the station which is painted
g - the graphics context to use

createHandlerFor

protected DefaultSplitDividerStrategy.Handler createHandlerFor(SplitDockStation station)
Creates a new DefaultSplitDividerStrategy.Handler for station.

Parameters:
station - the station which is to be monitored
Returns:
the new handler, not null