bibliothek.gui.dock.station.split
Interface SplitDividerStrategy

All Known Implementing Classes:
DefaultSplitDividerStrategy

public interface SplitDividerStrategy

The SplitDividerStrategy is responsible for resizing the children of a SplitDockStation. How exactly a SplitDividerStrategy accomplishes that goal is not defined, but usually that involves:

A strategy may offer additional services like changing the Cursor, or a strategy may not do anything at all.
Implementations should (but are not enforced to) respect some properties:
Clients usually do not need to implement this interface, and the framework offers only one default implementation. The interface will however remain, ready for clients with unforseen needs.

Author:
Benjamin Sigg

Method Summary
 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.
 

Method Detail

install

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.

Parameters:
station - the station whose children are resized by this strategy
container - the component to monitor

uninstall

void uninstall(SplitDockStation station)
Informs this strategy that it will no lonver be used by station.

Parameters:
station - the station that is no longer using this

paint

void paint(SplitDockStation station,
           Graphics g)
Allows this strategy to paint onto the SplitDockStation.

Parameters:
station - the station which is painted
g - the graphics context to use