public class DefaultAxisConversion extends Object implements AxisConversion
AxisConversion assumes:
| Constructor and Description |
|---|
DefaultAxisConversion(Rectangle space,
TabPlacement side)
Creates a new axis converter
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public DefaultAxisConversion(Rectangle space, TabPlacement side)
space - the space available for the view, not nullside - the side of the available space at which the
view hangs, not null.public Dimension modelToView(Dimension size)
AxisConversionsize from model to view.modelToView in interface AxisConversionsize - some dimension in the model, not nullnull
nor sizepublic Rectangle modelToView(Rectangle bounds)
AxisConversionbounds from model to view.modelToView in interface AxisConversionbounds - some boundaries given in the model, not nullnull
nor boundspublic Dimension viewToModel(Dimension size)
AxisConversionsize from view to model.viewToModel in interface AxisConversionsize - some dimension in the view, not nullnull nor sizepublic Rectangle viewToModel(Rectangle bounds)
AxisConversionbounds from view to model.viewToModel in interface AxisConversionbounds - some boundaries given in the view, not nullnull
nor boundsCopyright © 2017 Docking Frames. All rights reserved.