bibliothek.gui.dock.station.stack.tab
Interface AxisConversion

All Known Implementing Classes:
DefaultAxisConversion

public interface AxisConversion

An axis conversion transforms coordinates and sizes from one to another system. In general:

Author:
Benjamin Sigg

Method Summary
 Dimension modelToView(Dimension size)
          Converts size from model to view.
 Rectangle modelToView(Rectangle bounds)
          Converts bounds from model to view.
 Dimension viewToModel(Dimension size)
          Converts size from view to model.
 Rectangle viewToModel(Rectangle bounds)
          Converts bounds from view to model.
 

Method Detail

modelToView

Dimension modelToView(Dimension size)
Converts size from model to view.

Parameters:
size - some dimension in the model, not null
Returns:
the converted dimension in the view, must not be null nor size

viewToModel

Dimension viewToModel(Dimension size)
Converts size from view to model.

Parameters:
size - some dimension in the view, not null
Returns:
the converted dimension in the model, must not be null nor size

modelToView

Rectangle modelToView(Rectangle bounds)
Converts bounds from model to view.

Parameters:
bounds - some boundaries given in the model, not null
Returns:
the converted boundaries in the view, must not be null nor bounds

viewToModel

Rectangle viewToModel(Rectangle bounds)
Converts bounds from view to model.

Parameters:
bounds - some boundaries given in the view, not null
Returns:
the converted boundaries in the model, must not be null nor bounds