bibliothek.gui.dock.title
Interface OrientationToRotationStrategy


public interface OrientationToRotationStrategy

Converter for telling the framework how to render text given the orientation of a DockTitle.

Author:
Benjamin Sigg

Field Summary
static OrientationToRotationStrategy DEFAULT
          Default implementation of OrientationToRotationStrategy
 
Method Summary
 void addListener(OrientationToRotationStrategyListener listener)
          Adds the listener listener to this strategy.
 Rotation convert(DockTitle.Orientation orientation, DockTitle title)
          Tells how to render the text of title.
 void install(DockTitle title)
          Informs this strategy that from now on it will be used for title.
 void removeListener(OrientationToRotationStrategyListener listener)
          Removes listener from this strategy.
 void uninstall(DockTitle title)
          Informs this strategy that from now on it will not be used for title.
 

Field Detail

DEFAULT

static final OrientationToRotationStrategy DEFAULT
Default implementation of OrientationToRotationStrategy

Method Detail

convert

Rotation convert(DockTitle.Orientation orientation,
                 DockTitle title)
Tells how to render the text of title.

Parameters:
orientation - the orientation that is or will be used by title.
title - the title whose text gets rendered
Returns:
the rotation for the text of title, not null

install

void install(DockTitle title)
Informs this strategy that from now on it will be used for title.

Parameters:
title - the title that uses this strategy

uninstall

void uninstall(DockTitle title)
Informs this strategy that from now on it will not be used for title.

Parameters:
title - the title that was using this strategy

addListener

void addListener(OrientationToRotationStrategyListener listener)
Adds the listener listener to this strategy.

Parameters:
listener - a new listener, not null

removeListener

void removeListener(OrientationToRotationStrategyListener listener)
Removes listener from this strategy.

Parameters:
listener - the listener to remove