public interface OrientationToRotationStrategy
DockTitle
.Modifier and Type | Field and Description |
---|---|
static OrientationToRotationStrategy |
DEFAULT
Default implementation of
OrientationToRotationStrategy |
Modifier and Type | Method and Description |
---|---|
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 . |
static final OrientationToRotationStrategy DEFAULT
OrientationToRotationStrategy
Rotation convert(DockTitle.Orientation orientation, DockTitle title)
title
.orientation
- the orientation that is or will be used by title
.title
- the title whose text gets renderedtitle
, not null
void install(DockTitle title)
title
.title
- the title that uses this strategyvoid uninstall(DockTitle title)
title
.title
- the title that was using this strategyvoid addListener(OrientationToRotationStrategyListener listener)
listener
to this strategy.listener
- a new listener, not null
void removeListener(OrientationToRotationStrategyListener listener)
listener
from this strategy.listener
- the listener to remove